Multi-Hop-Practice / README.md
Junhohan's picture
release v1
f4dc75d verified
|
Raw History Blame Contribute Delete
1.31 kB
metadata
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/.

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)