Extractive QA Dataset — SQuAD v2 Format (JSON)
An extractive question-answering dataset in the SQuAD v2.0 JSON structure — titled articles with context paragraphs, questions, character-offset answers, and one deliberately unanswerable question. Synthetic content; a fixture for QA model training and SQuAD-format loaders.
{
"version": "v2.0",
"data": [
{
"title": "Natural Processes",
"paragraphs": [
{
"context": "The water cycle describes how water moves through the environment. Evaporation turns liquid water into vapour, which rises and cools to form clouds through condensation. Precipitation then returns the water to the surface as rain or snow.",
"qas": [
{
"id": "wc-001",
"question": "What turns liquid water into vapour?",
"answers": [
{
"text": "Evaporation",
"answer_start": 67
}
],
"is_impossible": false
},
{
"id": "wc-002",
"question": "What process forms clouds?",
"answers": [
{
"text": "condensation",
"answer_start": 156
}
],
"is_impossible": false
},
{
"id": "wc-003",
"question": "Which ocean current is mentioned?",
"answers": [],
"is_impossible": true
}
]
},
{
"context": "Photosynthesis allows plants to make food. Using sunlight, chlorophyll in the leaves converts carbon dioxide and water into glucose, releasing oxygen as a by-product.",
"qas": [
{
"id": "ps-001",
"question": "What do plants release as a by-product?",
"answers": [
{
"text": "oxygen",
"answer_start": 143
}Specifications
- Version
- v2.0
- Questions
- 5
- Has Impossible
- true
- Task
- extractive question answering
What is a .json file?
JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.
How to use this file
Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.
Code examples
import json
with open("qa-squad.json") as f:
data = json.load(f)
print(type(data), len(data))Related files
- jsonlChat Fine-tuning Dataset — Anthropic Format (JSONL)The same synthetic conversations in the Anthropic Messages JSONL shape — a top-level system prompt plus a messages array of user and assistant turns. The format twin of the OpenAI file, for testing chat-format conversion.

- jsonlChat Fine-tuning Dataset — OpenAI Format (JSONL)A chat fine-tuning dataset in the OpenAI JSONL format — one conversation per line as a messages array with system, user, and assistant turns. Synthetic Q&A content. Paired with an Anthropic-format twin for testing format converters.

- jsonlInstruction-tuning Dataset — Alpaca Format (JSONL)An instruction-tuning dataset in the Alpaca JSONL format — 20 instruction / input / output triples covering small transformations, extraction, and factual answers. Fully synthetic; a fixture for supervised fine-tuning pipelines.

- jsonlNamed-Entity Recognition Dataset — BIO Tags (JSONL)A token-classification dataset in JSON Lines — 16 tokenized sentences with aligned BIO tags for person, organisation, and location entities. All names, companies, and places are fictional. A fixture for NER model training and sequence-labelling tooling.

- jsonlParallel Translation Corpus — EN↔ES (JSONL)An English↔Spanish parallel corpus in JSON Lines — 20 aligned sentence pairs of everyday phrases. A fixture for training and evaluating machine-translation models and for testing UTF-8 handling of accented characters.

- jsonlSentiment Classification Dataset (JSONL)A labelled sentiment-classification dataset in JSON Lines — 24 short product-review-style sentences balanced across positive, negative, and neutral. Fully synthetic; a fixture for testing text-classification loaders, tokenizers, and JSONL parsers.

Generated by generation/ai_datasets.py. Free for any use, no attribution required — license.