json-fix-25000x / README.md
kth8's picture
Upload folder using huggingface_hub
878a770 verified
metadata
license: apache-2.0
lang: en

Supervised finetuning dataset for training small LLMs to fix broken JSON.

Each instance follows this format:

{
  "messages": [
    {
      "role": "system",
      "content": "You are a JSON formatting specialist. Convert the provided JSON data into valid JSON format with 2 line indent and no additional commentary."
    },
    {
      "role": "user",
      "content": "Here you go:\n```json\n{\n  \"hospitals\": [\n   {\n     \"name\": \"Johns Hopkins Hospital\",\n      \"address\": {\n        \"street\": \"1800 Orleans St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21287\"\n      , },\n      \"phones\": [\n       {\n         \"label\": \"General Information\",\n          \"number\": \"410-955-5000\"\n       , },\n       {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-955-7777\"\n        , }\n      , ],\n      \"emergency_services\": [\n        {\n         \"name\": \"Trauma Care\",\n          \"description\": \"24/ma care services\"\n       , },\n       {\n          \"name\": \"Cardiovascular Surgery\",\n          \"description\": \"Minimally invasive cardiovascular surgery services\"\n        , }\n      , ]\n    , },\n    {\n      \"name\": \"University of Maryland Medical Center\",\n      \"address\": {\n        \"street\": \"22 S Greene St\",\n        \"city\": \"Baltimore\",,\n       \"state\": \"MD\",\n       \"zip\": \"21201\"\n      , },\n      \"phones\": [\n       {\n         \"label\": \"General Information\",\n          \"number\": \"410-328-8942\"\n        , },\n        {\n          \"label\":\"Emergency Services\",\n        \"number\": \"410-328-2345\"\n        , }\n      , ],\n      \"emergency_services\": [\n       {\n         \"name\": \"Pediatric Emergency Department\",\n         \"description\": \"24/7 pediatric emergency services\"\n       , },\n        {\n         \"name\": \"Burn Center\",\n         \"description\": \"Comprehensive burn care services\"\n        , }\n      , ]\n    , }\n  , ]\n\n```\nHope this helps!"
    },
    {
      "role": "assistant",
      "content": "{\n  \"hospitals\": [\n    {\n      \"name\": \"Johns Hopkins Hospital\",\n      \"address\": {\n        \"street\": \"1800 Orleans St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21287\"\n      },\n      \"phones\": [\n        {\n          \"label\": \"General Information\",\n          \"number\": \"410-955-5000\"\n        },\n        {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-955-7777\"\n        }\n      ],\n      \"emergency_services\": [\n        {\n          \"name\": \"Trauma Care\",\n          \"description\": \"24/7 trauma care services\"\n        },\n        {\n          \"name\": \"Cardiovascular Surgery\",\n          \"description\": \"Minimally invasive cardiovascular surgery services\"\n        }\n      ]\n    },\n    {\n      \"name\": \"University of Maryland Medical Center\",\n      \"address\": {\n        \"street\": \"22 S Greene St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21201\"\n      },\n      \"phones\": [\n        {\n          \"label\": \"General Information\",\n          \"number\": \"410-328-8942\"\n        },\n        {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-328-2345\"\n        }\n      ],\n      \"emergency_services\": [\n        {\n          \"name\": \"Pediatric Emergency Department\",\n          \"description\": \"24/7 pediatric emergency services\"\n        },\n        {\n          \"name\": \"Burn Center\",\n          \"description\": \"Comprehensive burn care services\"\n        }\n      ]\n    }\n  ]\n}"
    }
  ],
  "user": "Here you go:\n```json\n{\n  \"hospitals\": [\n   {\n     \"name\": \"Johns Hopkins Hospital\",\n      \"address\": {\n        \"street\": \"1800 Orleans St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21287\"\n      , },\n      \"phones\": [\n       {\n         \"label\": \"General Information\",\n          \"number\": \"410-955-5000\"\n       , },\n       {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-955-7777\"\n        , }\n      , ],\n      \"emergency_services\": [\n        {\n         \"name\": \"Trauma Care\",\n          \"description\": \"24/ma care services\"\n       , },\n       {\n          \"name\": \"Cardiovascular Surgery\",\n          \"description\": \"Minimally invasive cardiovascular surgery services\"\n        , }\n      , ]\n    , },\n    {\n      \"name\": \"University of Maryland Medical Center\",\n      \"address\": {\n        \"street\": \"22 S Greene St\",\n        \"city\": \"Baltimore\",,\n       \"state\": \"MD\",\n       \"zip\": \"21201\"\n      , },\n      \"phones\": [\n       {\n         \"label\": \"General Information\",\n          \"number\": \"410-328-8942\"\n        , },\n        {\n          \"label\":\"Emergency Services\",\n        \"number\": \"410-328-2345\"\n        , }\n      , ],\n      \"emergency_services\": [\n       {\n         \"name\": \"Pediatric Emergency Department\",\n         \"description\": \"24/7 pediatric emergency services\"\n       , },\n        {\n         \"name\": \"Burn Center\",\n         \"description\": \"Comprehensive burn care services\"\n        , }\n      , ]\n    , }\n  , ]\n\n```\nHope this helps!",
  "assistant": "{\n  \"hospitals\": [\n    {\n      \"name\": \"Johns Hopkins Hospital\",\n      \"address\": {\n        \"street\": \"1800 Orleans St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21287\"\n      },\n      \"phones\": [\n        {\n          \"label\": \"General Information\",\n          \"number\": \"410-955-5000\"\n        },\n        {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-955-7777\"\n        }\n      ],\n      \"emergency_services\": [\n        {\n          \"name\": \"Trauma Care\",\n          \"description\": \"24/7 trauma care services\"\n        },\n        {\n          \"name\": \"Cardiovascular Surgery\",\n          \"description\": \"Minimally invasive cardiovascular surgery services\"\n        }\n      ]\n    },\n    {\n      \"name\": \"University of Maryland Medical Center\",\n      \"address\": {\n        \"street\": \"22 S Greene St\",\n        \"city\": \"Baltimore\",\n        \"state\": \"MD\",\n        \"zip\": \"21201\"\n      },\n      \"phones\": [\n        {\n          \"label\": \"General Information\",\n          \"number\": \"410-328-8942\"\n        },\n        {\n          \"label\": \"Emergency Services\",\n          \"number\": \"410-328-2345\"\n        }\n      ],\n      \"emergency_services\": [\n        {\n          \"name\": \"Pediatric Emergency Department\",\n          \"description\": \"24/7 pediatric emergency services\"\n        },\n        {\n          \"name\": \"Burn Center\",\n          \"description\": \"Comprehensive burn care services\"\n        }\n      ]\n    }\n  ]\n}"
}