Datasets:
Update dataset card
Browse files
README.md
CHANGED
|
@@ -23,72 +23,6 @@ configs:
|
|
| 23 |
data_files:
|
| 24 |
- split: test
|
| 25 |
path: data/test-*
|
| 26 |
-
dataset_info:
|
| 27 |
-
features:
|
| 28 |
-
- name: id
|
| 29 |
-
dtype: string
|
| 30 |
-
- name: question
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: answer
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: reasoning_steps
|
| 35 |
-
list: string
|
| 36 |
-
- name: question_type
|
| 37 |
-
dtype: string
|
| 38 |
-
- name: hop_count
|
| 39 |
-
dtype: int32
|
| 40 |
-
- name: topology
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: motif
|
| 43 |
-
dtype: string
|
| 44 |
-
- name: pattern
|
| 45 |
-
dtype: string
|
| 46 |
-
- name: document_relationship
|
| 47 |
-
dtype: string
|
| 48 |
-
- name: sector
|
| 49 |
-
dtype: string
|
| 50 |
-
- name: sub_industry
|
| 51 |
-
dtype: string
|
| 52 |
-
- name: difficulty
|
| 53 |
-
dtype: string
|
| 54 |
-
- name: idf_score
|
| 55 |
-
dtype: float64
|
| 56 |
-
- name: quality_score
|
| 57 |
-
dtype: int32
|
| 58 |
-
- name: nodes
|
| 59 |
-
list:
|
| 60 |
-
- name: role
|
| 61 |
-
dtype: string
|
| 62 |
-
- name: id
|
| 63 |
-
dtype: string
|
| 64 |
-
- name: name
|
| 65 |
-
dtype: string
|
| 66 |
-
- name: type
|
| 67 |
-
dtype: string
|
| 68 |
-
- name: year
|
| 69 |
-
dtype: int32
|
| 70 |
-
- name: idf_score
|
| 71 |
-
dtype: float64
|
| 72 |
-
- name: hops
|
| 73 |
-
list:
|
| 74 |
-
- name: hop
|
| 75 |
-
dtype: int32
|
| 76 |
-
- name: relationship
|
| 77 |
-
dtype: string
|
| 78 |
-
- name: source_file
|
| 79 |
-
dtype: string
|
| 80 |
-
- name: page_id
|
| 81 |
-
dtype: string
|
| 82 |
-
- name: chunk_id
|
| 83 |
-
dtype: string
|
| 84 |
-
- name: chunk_text
|
| 85 |
-
dtype: string
|
| 86 |
-
splits:
|
| 87 |
-
- name: test
|
| 88 |
-
num_bytes: 166250550
|
| 89 |
-
num_examples: 15600
|
| 90 |
-
download_size: 63399776
|
| 91 |
-
dataset_size: 166250550
|
| 92 |
---
|
| 93 |
|
| 94 |
# Dataset Card for FinMultiHopQA
|
|
@@ -136,10 +70,10 @@ from datasets import load_dataset
|
|
| 136 |
|
| 137 |
ds = load_dataset("domyn/FinMultiHopQA", split="test") # 15,600 questions
|
| 138 |
|
| 139 |
-
# Filter by question type, hop count, topology, or
|
| 140 |
quant = ds.filter(lambda r: r["question_type"] == "quantitative")
|
| 141 |
three_hop = ds.filter(lambda r: r["hop_count"] == 3)
|
| 142 |
-
|
| 143 |
|
| 144 |
row = ds[0]
|
| 145 |
print(row["question"])
|
|
@@ -151,8 +85,8 @@ for hop in row["hops"]:
|
|
| 151 |
|
| 152 |
### Files and splits
|
| 153 |
|
| 154 |
-
The full benchmark is
|
| 155 |
-
`
|
| 156 |
|
| 157 |
### Statistics
|
| 158 |
|
|
@@ -178,7 +112,7 @@ Energy 853 · Utilities 853 · Real Estate 371 · Materials 168
|
|
| 178 |
|
| 179 |
### Partitions
|
| 180 |
|
| 181 |
-
Each partition keeps the top-N candidates by `quality_score` (descending), then
|
| 182 |
|
| 183 |
| Partition | Questions | Sampling | Quality score (min / max / mean) |
|
| 184 |
|---|---:|---|---|
|
|
@@ -206,7 +140,6 @@ Each partition keeps the top-N candidates by `quality_score` (descending), then
|
|
| 206 |
| Field | Type | Description |
|
| 207 |
|---|---|---|
|
| 208 |
| `id` | string | Unique key: `<partition>-<row index>` |
|
| 209 |
-
| `question_id` | int | Generator ID; **not unique** (repeats across generation runs) |
|
| 210 |
| `question` | string | The multi-hop question |
|
| 211 |
| `answer` | string | Reference answer grounded in the evidence chunks |
|
| 212 |
| `reasoning_steps` | list[string] | Step-by-step reasoning chain behind the reference answer |
|
|
@@ -214,22 +147,18 @@ Each partition keeps the top-N candidates by `quality_score` (descending), then
|
|
| 214 |
| `hop_count` | int | `2` or `3` |
|
| 215 |
| `topology` | string | `intra_doc`, `cross_year`, or `cross_company` (from the partition; use this for topology analysis) |
|
| 216 |
| `motif` | string | `chain` (2-hop and 3-hop `type1`) or `branch` (3-hop `type2`) |
|
| 217 |
-
| `partition` | string | Source partition (one of the 18 listed above) |
|
| 218 |
| `pattern` | string | Typed KG path, e.g. `ORG -[Invests_In]-> GPE <-[Operates_In]- ORG` |
|
| 219 |
-
| `document_relationship` | string |
|
| 220 |
| `sector` | string | GICS sector |
|
| 221 |
| `sub_industry` | string | GICS sub-industry (null when not resolved) |
|
| 222 |
| `difficulty` | string | IDF-based heuristic: `easy` / `medium` / `hard` |
|
| 223 |
| `idf_score` | float | Connector IDF score (higher = more specific connector) |
|
| 224 |
| `quality_score` | int | LLM-validator rubric total (0–50) |
|
| 225 |
-
| `temporal_change` | string | Present only on 2-hop inter-year rows; always `unknown` in this release |
|
| 226 |
-
| `entities` | list[struct] | Question anchors: `{role, name, type}` |
|
| 227 |
| `nodes` | list[struct] | KG path nodes: `{role, id, name, type, year, idf_score}` |
|
| 228 |
| `hops` | list[struct] | Evidence per hop: `{hop, relationship, source_file, page_id, chunk_id, chunk_text}` |
|
| 229 |
-
| `generation_file` | string | Generation-run file the pair came from |
|
| 230 |
|
| 231 |
Node roles: 2-hop paths use `start`, `intermediate`, `end`; 3-hop chains use `start`, `node_2`,
|
| 232 |
-
`node_3`, `end`; 3-hop branches use `start`, `connector` (the shared node
|
| 233 |
For every row, `hops[i].source_file` gives the filing behind hop *i*.
|
| 234 |
|
| 235 |
### Example
|
|
@@ -250,7 +179,8 @@ For every row, `hops[i].source_file` gives the filing behind hop *i*.
|
|
| 250 |
"quality_score": 48,
|
| 251 |
"nodes": [
|
| 252 |
{"role": "start", "id": "BA", "name": "BA", "type": "ORG", "year": 2024, "idf_score": null},
|
| 253 |
-
{"role": "connector", "id": "Asset_Allocation", "name": "Asset Allocation", "type": "ACCOUNTING_POLICY", "year": null, "idf_score": 4.01}
|
|
|
|
| 254 |
],
|
| 255 |
"hops": [
|
| 256 |
{"hop": 1, "relationship": "Monitors", "source_file": "BA_10k_2024.pdf", "page_id": "page_99", "chunk_id": "chunk_1", "chunk_text": "..."},
|
|
@@ -314,10 +244,6 @@ windows with distractors (E3), relevance-sorted descending (E4) and ascending (E
|
|
| 314 |
|
| 315 |
## Known Issues
|
| 316 |
|
| 317 |
-
- **2-hop intra-document labels:** `document_relationship` is set to `inter_document_cross_company` for all
|
| 318 |
-
1,500 rows in the two `*_2hop_intra_doc` partitions. Use the `topology` column instead, which is derived
|
| 319 |
-
from the partition. 3-hop intra-document rows are correct.
|
| 320 |
-
- **`question_id` is not unique.** Use `id` as the row key.
|
| 321 |
- **`difficulty`** is an IDF heuristic (~80% `hard`), not a calibrated difficulty measure.
|
| 322 |
|
| 323 |
## Citation
|
|
|
|
| 23 |
data_files:
|
| 24 |
- split: test
|
| 25 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
---
|
| 27 |
|
| 28 |
# Dataset Card for FinMultiHopQA
|
|
|
|
| 70 |
|
| 71 |
ds = load_dataset("domyn/FinMultiHopQA", split="test") # 15,600 questions
|
| 72 |
|
| 73 |
+
# Filter by question type, hop count, topology, or motif
|
| 74 |
quant = ds.filter(lambda r: r["question_type"] == "quantitative")
|
| 75 |
three_hop = ds.filter(lambda r: r["hop_count"] == 3)
|
| 76 |
+
inter_year = ds.filter(lambda r: r["topology"] == "cross_year" and r["motif"] == "chain")
|
| 77 |
|
| 78 |
row = ds[0]
|
| 79 |
print(row["question"])
|
|
|
|
| 85 |
|
| 86 |
### Files and splits
|
| 87 |
|
| 88 |
+
The full benchmark is a single `test` split (15,600 rows). Use the `question_type`, `hop_count`,
|
| 89 |
+
`topology`, and `motif` columns to select subsets.
|
| 90 |
|
| 91 |
### Statistics
|
| 92 |
|
|
|
|
| 112 |
|
| 113 |
### Partitions
|
| 114 |
|
| 115 |
+
Each partition keeps the top-N candidates by `quality_score` (descending), then source question ID (ascending).
|
| 116 |
|
| 117 |
| Partition | Questions | Sampling | Quality score (min / max / mean) |
|
| 118 |
|---|---:|---|---|
|
|
|
|
| 140 |
| Field | Type | Description |
|
| 141 |
|---|---|---|
|
| 142 |
| `id` | string | Unique key: `<partition>-<row index>` |
|
|
|
|
| 143 |
| `question` | string | The multi-hop question |
|
| 144 |
| `answer` | string | Reference answer grounded in the evidence chunks |
|
| 145 |
| `reasoning_steps` | list[string] | Step-by-step reasoning chain behind the reference answer |
|
|
|
|
| 147 |
| `hop_count` | int | `2` or `3` |
|
| 148 |
| `topology` | string | `intra_doc`, `cross_year`, or `cross_company` (from the partition; use this for topology analysis) |
|
| 149 |
| `motif` | string | `chain` (2-hop and 3-hop `type1`) or `branch` (3-hop `type2`) |
|
|
|
|
| 150 |
| `pattern` | string | Typed KG path, e.g. `ORG -[Invests_In]-> GPE <-[Operates_In]- ORG` |
|
| 151 |
+
| `document_relationship` | string | `intra_document`, `inter_document_same_company`, or `inter_document_cross_company` |
|
| 152 |
| `sector` | string | GICS sector |
|
| 153 |
| `sub_industry` | string | GICS sub-industry (null when not resolved) |
|
| 154 |
| `difficulty` | string | IDF-based heuristic: `easy` / `medium` / `hard` |
|
| 155 |
| `idf_score` | float | Connector IDF score (higher = more specific connector) |
|
| 156 |
| `quality_score` | int | LLM-validator rubric total (0–50) |
|
|
|
|
|
|
|
| 157 |
| `nodes` | list[struct] | KG path nodes: `{role, id, name, type, year, idf_score}` |
|
| 158 |
| `hops` | list[struct] | Evidence per hop: `{hop, relationship, source_file, page_id, chunk_id, chunk_text}` |
|
|
|
|
| 159 |
|
| 160 |
Node roles: 2-hop paths use `start`, `intermediate`, `end`; 3-hop chains use `start`, `node_2`,
|
| 161 |
+
`node_3`, `end`; 3-hop branches use `start`, `connector` (the shared node the anchors link to), `end`.
|
| 162 |
For every row, `hops[i].source_file` gives the filing behind hop *i*.
|
| 163 |
|
| 164 |
### Example
|
|
|
|
| 179 |
"quality_score": 48,
|
| 180 |
"nodes": [
|
| 181 |
{"role": "start", "id": "BA", "name": "BA", "type": "ORG", "year": 2024, "idf_score": null},
|
| 182 |
+
{"role": "connector", "id": "Asset_Allocation", "name": "Asset Allocation", "type": "ACCOUNTING_POLICY", "year": null, "idf_score": 4.01},
|
| 183 |
+
{"role": "end", "id": null, "name": "EMR", "type": "ORG", "year": null, "idf_score": null}
|
| 184 |
],
|
| 185 |
"hops": [
|
| 186 |
{"hop": 1, "relationship": "Monitors", "source_file": "BA_10k_2024.pdf", "page_id": "page_99", "chunk_id": "chunk_1", "chunk_text": "..."},
|
|
|
|
| 244 |
|
| 245 |
## Known Issues
|
| 246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
- **`difficulty`** is an IDF heuristic (~80% `hard`), not a calibrated difficulty measure.
|
| 248 |
|
| 249 |
## Citation
|