File size: 1,309 Bytes
f4dc75d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ---
language:
- en
task_categories:
- question-answering
pretty_name: Multi-hop RAG Assignment (HotpotQA)
viewer: false
---
# Multi-hop RAG Assignment Data
Data for the multi-hop RAG assignment (HotpotQA over Wikipedia).
A Wikipedia passage corpus, HotpotQA splits, and a prebuilt dense index.
## Files
| File | Rows | Format |
|---|---|---|
| `corpus.jsonl` | 21,015,324 | `{"pid", "text", "title"}` |
| `hotpotqa-train.jsonl` | 90,447 | `{"qid", "question", "answers"}` |
| `hotpotqa-validation.jsonl` | 7,405 | `{"qid", "question", "answers"}` |
| `hotpotqa-test.jsonl` | 7,405 | `{"qid", "question", "answers"}` (`answers` is `null`) |
| `index/dense/` | | FAISS `IndexFlatIP` + `dense_retriever_meta.json` |
- `answers` is a single string.
- Dense index: `sentence-transformers/all-MiniLM-L6-v2` (dim 384, normalized), document text = `"{title} {text}"`.
Use the same retriever model, or the index will not load.
- Sizes: corpus ~14GB, index ~31GB. Put them on an SSD.
## Download
Run from the repository root so the files land in `data/multihop/`.
```bash
hf auth login
hf download <org>/<repo> --repo-type dataset --local-dir data/multihop
```
## Source
- Passages: DPR Wikipedia split (`psgs_w100`, Dec. 2018 dump), Karpukhin et al., 2020
- Questions/answers: HotpotQA (Yang et al., 2018)
|