# HotpotQA (2018)

> 113,000 questions that need facts from two Wikipedia paragraphs, with the supporting sentences marked.

Page: https://mralbu.github.io/ai-datasets/d/hotpotqa

## Key facts

- Category: Text, Retrieval
- Task: Multi-hop question answering over Wikipedia
- Creators: Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, Christopher D. Manning (CMU, Stanford, Mila)
- Size: 112,779 questions in the paper (112,662 in the released splits)
- Splits: train 90,447, validation 7,405, test_distractor 7,405, test_fullwiki 7,405
- Input: A question, with ten paragraphs (distractor setting) or all of Wikipedia (fullwiki setting)
- Labels: A short answer, and the sentences needed to reach it
- License: CC BY-SA 4.0
- Paper: [HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering](https://arxiv.org/abs/1809.09600)
- Homepage: https://hotpotqa.github.io/
- Hugging Face: [hotpotqa/hotpot_qa](https://huggingface.co/datasets/hotpotqa/hotpot_qa)
- Sampled at Hub revision 1908d6afbbead072334abe2965f91bd2709910ab (2026-11-08)

## Why it matters

SQuAD questions can be answered from one paragraph, often from one sentence. HotpotQA's annotators were shown two linked Wikipedia paragraphs and asked for questions that need both: find the bridge entity in one, then the answer in the other, or compare two things. The supporting sentences are labeled, so models can be scored on why they answered, not only what. Its full-Wikipedia setting made it the benchmark for multi-step retrieval, and later for LLM agents that search, from ReAct to retrieval interleaved with chain-of-thought.

## Worth knowing

- In the distractor setting shown here, eight of the ten paragraphs are distractors retrieved by keyword similarity to the question.
- "Bridge" questions chain two facts (the wife of X → her nationality); "comparison" questions compare two entities (which band formed first?).
- Many questions turned out to be answerable with a single hop, by spotting the one entity that fits. Later datasets (2WikiMultiHopQA, MuSiQue) were built to close that shortcut.
- Click a paragraph to read it in full. "Show the answer" highlights the supporting sentences and fades the distractors.

## Get the data

```bash
# pip install -U huggingface_hub
hf download hotpotqa/hotpot_qa --repo-type dataset \
  --local-dir hotpotqa
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("hotpotqa/hotpot_qa", "distractor")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/hotpotqa/hotpot_qa@~parquet/distractor/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [SQuAD](https://huggingface.co/datasets/rajpurkar/squad): 2016, single-paragraph questions (on this site: https://mralbu.github.io/ai-datasets/d/squad)
- [Natural Questions](https://huggingface.co/datasets/google-research-datasets/natural_questions): 2019, real Google queries answered from Wikipedia (on this site: https://mralbu.github.io/ai-datasets/d/natural-questions)
- [MS MARCO](https://huggingface.co/datasets/microsoft/ms_marco): 2016, real Bing queries with web passages (on this site: https://mralbu.github.io/ai-datasets/d/ms-marco)
- [2WikiMultiHopQA](https://github.com/Alab-NII/2wikimultihop): 2020, multi-hop questions built from Wikidata relations
- [MuSiQue](https://github.com/StonyBrookNLP/musique): 2022, 2–4 hop questions built to resist shortcuts

## Landmark papers

- [Answering Complex Open-Domain Questions with Multi-Hop Dense Retrieval](https://arxiv.org/abs/2009.12756) (2020)
- [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629) (2022)
- [Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions (IRCoT)](https://arxiv.org/abs/2212.10509) (2022)

## Papers on this site that use it

- [ReAct (2022)](https://mralbu.github.io/ai-datasets/p/react.md): Prompt a language model to alternate thoughts with actions, read what each action returns, and keep going until the task is done.
- [Self-consistency (2022)](https://mralbu.github.io/ai-datasets/p/self-consistency.md): Sample many chains of thought instead of one, and take the most common final answer.
