Publish the source multi-hop QA corpora used by ToolForge
Browse files- README.md +119 -0
- original_data/2WikiMultihopQA/bridge_comparison_wiki.parquet +3 -0
- original_data/2WikiMultihopQA/comparison_wiki.parquet +3 -0
- original_data/2WikiMultihopQA/compositional_wiki.parquet +3 -0
- original_data/2WikiMultihopQA/inference_wiki.parquet +3 -0
- original_data/HotpotQA/bridge_hp.parquet +3 -0
- original_data/HotpotQA/comparison_hp.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- question-answering
|
| 5 |
+
- text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- multi-hop-qa
|
| 10 |
+
- tool-calling
|
| 11 |
+
- agent
|
| 12 |
+
- data-synthesis
|
| 13 |
+
pretty_name: ToolForge Source QA
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100K<n<1M
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: bridge_hp
|
| 18 |
+
data_files: original_data/HotpotQA/bridge_hp.parquet
|
| 19 |
+
- config_name: comparison_hp
|
| 20 |
+
data_files: original_data/HotpotQA/comparison_hp.parquet
|
| 21 |
+
- config_name: bridge_comparison_wiki
|
| 22 |
+
data_files: original_data/2WikiMultihopQA/bridge_comparison_wiki.parquet
|
| 23 |
+
- config_name: comparison_wiki
|
| 24 |
+
data_files: original_data/2WikiMultihopQA/comparison_wiki.parquet
|
| 25 |
+
- config_name: compositional_wiki
|
| 26 |
+
data_files: original_data/2WikiMultihopQA/compositional_wiki.parquet
|
| 27 |
+
- config_name: inference_wiki
|
| 28 |
+
data_files: original_data/2WikiMultihopQA/inference_wiki.parquet
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# ToolForge — Source QA
|
| 32 |
+
|
| 33 |
+
The multi-hop question answering corpora that **[ToolForge](https://github.com/Buycar-arb/ToolForge)**
|
| 34 |
+
takes as input, in the exact slices used in the paper.
|
| 35 |
+
|
| 36 |
+
📄 **Paper** — [arXiv:2512.16149](https://arxiv.org/abs/2512.16149)
|
| 37 |
+
💻 **Code** — [github.com/Buycar-arb/ToolForge](https://github.com/Buycar-arb/ToolForge)
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
git clone https://github.com/Buycar-arb/ToolForge.git && cd ToolForge
|
| 41 |
+
pip install -e ".[all]"
|
| 42 |
+
python download_data.py
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Contents
|
| 46 |
+
|
| 47 |
+
257,901 questions across six corpora, drawn from HotpotQA and 2WikiMultihopQA.
|
| 48 |
+
|
| 49 |
+
| corpus | questions | size | question shape |
|
| 50 |
+
|---|---:|---:|---|
|
| 51 |
+
| `HotpotQA/bridge_hp` | 72,991 | 246.5 MB | bridge: the answer to hop 1 identifies the subject of hop 2 |
|
| 52 |
+
| `HotpotQA/comparison_hp` | 17,456 | 52.5 MB | comparison: "which of X and Y…" |
|
| 53 |
+
| `2WikiMultihopQA/compositional_wiki` | 76,481 | 134.9 MB | compositional: "the Z of the Y of X" |
|
| 54 |
+
| `2WikiMultihopQA/comparison_wiki` | 51,963 | 92.4 MB | comparison |
|
| 55 |
+
| `2WikiMultihopQA/bridge_comparison_wiki` | 34,631 | 70.8 MB | bridge *and* comparison combined |
|
| 56 |
+
| `2WikiMultihopQA/inference_wiki` | 4,379 | 9.7 MB | inference over family relations |
|
| 57 |
+
|
| 58 |
+
## Record schema
|
| 59 |
+
|
| 60 |
+
```json
|
| 61 |
+
{
|
| 62 |
+
"_id": "5a8b57f25542995d1e6f1371",
|
| 63 |
+
"question": "Were Scott Derrickson and Ed Wood of the same nationality?",
|
| 64 |
+
"answer": "yes",
|
| 65 |
+
"type": "comparison",
|
| 66 |
+
"context": [
|
| 67 |
+
["Scott Derrickson", ["Scott Derrickson (born 1966) is an American director."]],
|
| 68 |
+
["Ed Wood", ["Edward Davis Wood Jr. was an American director and screenwriter."]]
|
| 69 |
+
],
|
| 70 |
+
"supporting_facts": [["Scott Derrickson", 0], ["Ed Wood", 0]]
|
| 71 |
+
}
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
`supporting_facts` is what makes the pipeline work: it splits `context` into the
|
| 75 |
+
passages that contain the answer and everything else. ToolForge treats the first
|
| 76 |
+
as the evidence a tool call should surface, and runs BM25 over the second to
|
| 77 |
+
produce realistic distractors — which is how a *failed* tool call in the
|
| 78 |
+
generated data can be genuinely, plausibly unhelpful.
|
| 79 |
+
|
| 80 |
+
Nested columns are stored as JSON strings so they fit in Parquet. Convert to the
|
| 81 |
+
JSONL the pipeline reads with:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
toolforge convert to-jsonl original_data/HotpotQA
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Which corpus for which dialogue shape
|
| 88 |
+
|
| 89 |
+
ToolForge generates 29 dialogue cases in four families, and a corpus can only
|
| 90 |
+
produce the families its questions are shaped for. Measured by sampling and
|
| 91 |
+
labelling each corpus:
|
| 92 |
+
|
| 93 |
+
| corpus | → A | → B | → C | → D | good for |
|
| 94 |
+
|---|---:|---:|---:|---:|---|
|
| 95 |
+
| `inference_wiki` | 93% | 7% | — | — | **A** |
|
| 96 |
+
| `comparison_wiki` | — | 100% | — | — | **B** |
|
| 97 |
+
| `comparison_hp` | 16% | 84% | — | — | A, **B** |
|
| 98 |
+
| `compositional_wiki` | 13% | — | 83% | 3% | **C** |
|
| 99 |
+
| `bridge_hp` | 76% | 4% | 20% | — | **A**, C |
|
| 100 |
+
| `bridge_comparison_wiki` | 4% | 44% | 36% | 16% | **B, C, D** |
|
| 101 |
+
|
| 102 |
+
`bridge_comparison_wiki` is the only corpus that reliably yields **D** — label
|
| 103 |
+
roughly six times as much of it to get a comparable number of D samples.
|
| 104 |
+
Details in [`docs/choosing-source-data.md`](https://github.com/Buycar-arb/ToolForge/blob/main/docs/choosing-source-data.md).
|
| 105 |
+
|
| 106 |
+
## Citation
|
| 107 |
+
|
| 108 |
+
```bibtex
|
| 109 |
+
@article{chen2025toolforge,
|
| 110 |
+
title={ToolForge: A Data Synthesis Pipeline for Multi-Hop Search without Real-World APIs},
|
| 111 |
+
author={Chen, Hao and Hu, Zhexin and Chai, Jiajun and Yang, Haocheng and He, Hang and Wang, Xiaohan and Lin, Wei and Wang, Luhang and Yin, Guojun and others},
|
| 112 |
+
journal={arXiv preprint arXiv:2512.16149},
|
| 113 |
+
year={2025}
|
| 114 |
+
}
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
Please also cite the original datasets:
|
| 118 |
+
[HotpotQA](https://arxiv.org/abs/1809.09600) ·
|
| 119 |
+
[2WikiMultihopQA](https://arxiv.org/abs/2011.01060)
|
original_data/2WikiMultihopQA/bridge_comparison_wiki.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:928861277b860534cb60d54db4162c4630dcfadfff78e5e38105e2d2a6e4e263
|
| 3 |
+
size 74233160
|
original_data/2WikiMultihopQA/comparison_wiki.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f1c727060f1e8114badf4853430d64ca89b567a32a4ae8891260edc1bc92284
|
| 3 |
+
size 96863610
|
original_data/2WikiMultihopQA/compositional_wiki.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d626641d33c3d1eac6faf28459744e5f3b24f3c1818d7d787630d880fb0d103f
|
| 3 |
+
size 141505220
|
original_data/2WikiMultihopQA/inference_wiki.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a02a80a680a5c2c118fbd56c049c693c0a9d09ee2f74d603beb7903d7602235
|
| 3 |
+
size 10122101
|
original_data/HotpotQA/bridge_hp.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3cced188d887b10af81e8ff2eecfda90d21d6de4fbedb151b60b1e338d8b834
|
| 3 |
+
size 258514252
|
original_data/HotpotQA/comparison_hp.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cac4b1dac6f684274312134ea6adc9c60bc074f4c71c19fc982ad96a38aae4d3
|
| 3 |
+
size 55087623
|