nmrenyi commited on
Commit
2b4cd69
·
verified ·
1 Parent(s): 8c20ecf

v0.2.0 — Tier 3 top-20 union (230,964 judged pairs)

Browse files

Extends v0.1.0 (top-3, 36,418 pairs) to the full top-20 union of all 6 retrievers. Same judge (Qwen3.5-397B-A17B-FP8, v2 graded rubric). Top-3 pairs from v0.1.0 are a strict subset, recoverable via rankings.rank<=3.

README.md CHANGED
@@ -18,7 +18,7 @@ tags:
18
  - llm-as-judge
19
  - rag
20
  size_categories:
21
- - 1K<n<10K
22
  configs:
23
  - config_name: queries
24
  data_files:
@@ -42,15 +42,17 @@ configs:
42
  path: "audit/judgments_with_reasoning.parquet"
43
  ---
44
 
45
- # MamaRetrieval — v0.1.0
46
 
47
  A retrieval evaluation benchmark for medical RAG systems serving midwives and
48
  doctors. 3,185 clinical queries on midwifery / OBGYN topics, evaluated against
49
- the top-3 results of 6 retrievers, with per `(query, chunk)` pair labels graded
50
  by an LLM judge under a four-dimension rubric.
51
 
52
- This release is the **Tier 2** split (top-3 union of 6 retrievers, 36,418
53
- labelled `(q, c)` pairs). The Tier 3 split (top-20 union) will land as v0.2.0.
 
 
54
 
55
  ## Quick start
56
 
@@ -62,7 +64,7 @@ rankings = load_dataset("nmrenyi/mamaretrieval", "rankings", split="test")
62
  judgments = load_dataset("nmrenyi/mamaretrieval", "judgments", split="test")
63
  chunks = load_dataset("nmrenyi/mamaretrieval", "chunks", split="test")
64
 
65
- # Optional — the same judgments + the judge's per-row reasoning trace (~117 MB)
66
  judgments_full = load_dataset("nmrenyi/mamaretrieval",
67
  "judgments_with_reasoning", split="test")
68
  ```
@@ -72,22 +74,22 @@ judgments_full = load_dataset("nmrenyi/mamaretrieval",
72
  | Config | Rows | Columns | What it is |
73
  |---|---:|---|---|
74
  | `queries` | 3,185 | `query_id`, `query_text`, `seed_chunk_id` | The benchmark queries, each generated by an LLM from a single chunk of the corpus. |
75
- | `rankings` | 57,330 | `query_id`, `retriever`, `rank`, `chunk_id`, `score` | For every query × retriever combination, the top-3 `chunk_id`s with the retriever's similarity score. 6 retrievers × 3,185 queries × 3 = 57,330. |
76
- | `judgments` | 36,418 | `query_id`, `chunk_id`, `d1_topic`, `d2_meaningful`, `d3_actionable`, `d4_density`, `score` | One label per unique `(query, chunk)` pair in the pooled top-3 union. `score = d1 × (d2 + d3 + d4) ∈ [0..6]`. |
77
- | `judgments_with_reasoning` | 36,418 | (same as `judgments`) + `thinking` | The same labels with the judge model's reasoning trace per row. Ships in `audit/` because it's ~117 MB and not needed to use the benchmark. |
78
- | `chunks` | 17,827 | `chunk_id`, `text` | The chunk text for every `chunk_id` referenced by `queries.seed_chunk_id` or any retriever's top-3 result. Drawn from the producer corpus (see Provenance). |
79
 
80
  ### Schema notes
81
 
82
  - **`chunk_id`** is the 16-character hexadecimal identifier from the
83
- producer corpus. Every `chunk_id` that appears in `rankings`, `judgments`,
84
- `judgments_with_reasoning`, or `queries.seed_chunk_id` is guaranteed to be
85
- resolvable in `chunks`.
86
  - **`score`** in `judgments` is computed downstream from the four dimensions
87
  via `score = d1 × (d2 + d3 + d4)`. The judge emits only `d1..d4`.
88
  - **`seed_chunk_id`** records which chunk an LLM was given when it
89
  synthesised the query. It's provenance, **not** a gold label — seed
90
- chunks may not appear in any retriever's top-3, and when they do they
91
  are not always the highest-rated chunk for that query.
92
 
93
  ## Rubric
@@ -124,8 +126,8 @@ calibration — is shipped verbatim at
124
  | `gecko` | `gecko-1024-quant-v0.2.0` (on-device TFLite, deployed retriever) |
125
 
126
  All retrievers were run on the producer corpus (see Provenance) and their
127
- top-20 results stored. This release exposes the **top-3** of each — the
128
- deployment-honest depth for the RAG system this benchmark was built for.
129
 
130
  ## How the dataset was made
131
 
@@ -137,8 +139,8 @@ deployment-honest depth for the RAG system this benchmark was built for.
137
  [`audit/query_generation_prompt.txt`](audit/query_generation_prompt.txt).
138
  2. **Retrieval.** Each query was run against the producer corpus by every
139
  retriever. Top-20 candidates per retriever were stored.
140
- 3. **Pooling.** For each query, the union of every retriever's top-3 was
141
- deduped (~11.4 unique chunks per query at this scale).
142
  4. **Judging.** Every `(query, chunk)` pair in the pool was scored by
143
  `Qwen/Qwen3.5-397B-A17B-FP8` against the four-dimension rubric. The
144
  judge's reasoning was captured separately and is shipped in
@@ -156,8 +158,10 @@ reference labels on a 62-pair pilot, with 95% threshold agreement at score ≥
156
  The 63,650-chunk corpus the retrievers were run against. Built from a mix
157
  of WHO guidelines, Tanzania / Zanzibar MOH documents, and a small set of
158
  midwifery references.
159
- - **Versioning**: `v0.1.0` = Tier 2 (top-3 union). `v0.2.0` will add Tier 3
160
- (top-20 union) on the same query set when judging finishes.
 
 
161
  - **Audit trail**: [`manifest.json`](manifest.json) pins exact judge and
162
  generator model IDs, prompt hashes, and schema versions.
163
 
@@ -195,16 +199,18 @@ warranty disclaimers — are in [LICENSE](LICENSE).
195
 
196
  ## Citation
197
 
198
- Ren, Yi. *MamaRetrieval* v0.1.0. 2026. <https://huggingface.co/datasets/nmrenyi/mamaretrieval>
199
 
200
  ## Limitations
201
 
202
  - **Scope**: midwifery / OBGYN / neonatal care, framed for guidelines deployed
203
  in Zanzibar. Performance numbers do not transfer cleanly to general
204
  medical retrieval.
205
- - **Depth-3 ceiling**: ~25% of queries have no `score ≥ 5` chunk in any
206
- retriever's top-3, even from the strongest retriever. This is an inherent
207
- depth-3 pool limit, not a retriever failure.
 
 
208
  - **Single relevance judge**: every `(query, chunk)` relevance label in
209
  this dataset is produced by one LLM (`Qwen/Qwen3.5-397B-A17B-FP8`) under
210
  the four-dimension rubric. That judge was calibrated against Claude Opus
 
18
  - llm-as-judge
19
  - rag
20
  size_categories:
21
+ - 100K<n<1M
22
  configs:
23
  - config_name: queries
24
  data_files:
 
42
  path: "audit/judgments_with_reasoning.parquet"
43
  ---
44
 
45
+ # MamaRetrieval — v0.2.0
46
 
47
  A retrieval evaluation benchmark for medical RAG systems serving midwives and
48
  doctors. 3,185 clinical queries on midwifery / OBGYN topics, evaluated against
49
+ the top-20 results of 6 retrievers, with per `(query, chunk)` pair labels graded
50
  by an LLM judge under a four-dimension rubric.
51
 
52
+ This release is the **Tier 3** split (top-20 union of 6 retrievers, **230,964**
53
+ labelled `(q, c)` pairs). It extends the v0.1.0 Tier 2 release (top-3 union,
54
+ 36,418 pairs) — Tier 2's pairs are a strict subset of v0.2.0's, recoverable from
55
+ `rankings` with `rank <= 3`.
56
 
57
  ## Quick start
58
 
 
64
  judgments = load_dataset("nmrenyi/mamaretrieval", "judgments", split="test")
65
  chunks = load_dataset("nmrenyi/mamaretrieval", "chunks", split="test")
66
 
67
+ # Optional — the same judgments + the judge's per-row reasoning trace (~770 MB)
68
  judgments_full = load_dataset("nmrenyi/mamaretrieval",
69
  "judgments_with_reasoning", split="test")
70
  ```
 
74
  | Config | Rows | Columns | What it is |
75
  |---|---:|---|---|
76
  | `queries` | 3,185 | `query_id`, `query_text`, `seed_chunk_id` | The benchmark queries, each generated by an LLM from a single chunk of the corpus. |
77
+ | `rankings` | 382,200 | `query_id`, `retriever`, `rank`, `chunk_id`, `score` | For every query × retriever combination, the top-20 `chunk_id`s with the retriever's similarity score. 6 retrievers × 3,185 queries × 20 = 382,200. |
78
+ | `judgments` | 230,964 | `query_id`, `chunk_id`, `d1_topic`, `d2_meaningful`, `d3_actionable`, `d4_density`, `score` | One label per unique `(query, chunk)` pair in the pooled top-20 union. `score = d1 × (d2 + d3 + d4) ∈ [0..6]`. |
79
+ | `judgments_with_reasoning` | 230,964 | (same as `judgments`) + `thinking` | The same labels with the judge model's reasoning trace per row. Ships in `audit/` because it's ~770 MB and not needed to use the benchmark. |
80
+ | `chunks` | 41,298 | `chunk_id`, `text` | The chunk text for every `chunk_id` referenced by `queries.seed_chunk_id` or any retriever's top-20 result. Drawn from the producer corpus (see Provenance). |
81
 
82
  ### Schema notes
83
 
84
  - **`chunk_id`** is the 16-character hexadecimal identifier from the
85
+ producer corpus. Every `chunk_id` that appears in `rankings`,
86
+ `judgments`, `judgments_with_reasoning`, or `queries.seed_chunk_id`
87
+ is guaranteed to be resolvable in `chunks`.
88
  - **`score`** in `judgments` is computed downstream from the four dimensions
89
  via `score = d1 × (d2 + d3 + d4)`. The judge emits only `d1..d4`.
90
  - **`seed_chunk_id`** records which chunk an LLM was given when it
91
  synthesised the query. It's provenance, **not** a gold label — seed
92
+ chunks may not appear in any retriever's top-20, and when they do they
93
  are not always the highest-rated chunk for that query.
94
 
95
  ## Rubric
 
126
  | `gecko` | `gecko-1024-quant-v0.2.0` (on-device TFLite, deployed retriever) |
127
 
128
  All retrievers were run on the producer corpus (see Provenance) and their
129
+ top-20 results are exposed here. v0.1.0 exposed only the top-3; v0.2.0 ships
130
+ the full top-20 of each, with judgments covering every chunk in the union pool.
131
 
132
  ## How the dataset was made
133
 
 
139
  [`audit/query_generation_prompt.txt`](audit/query_generation_prompt.txt).
140
  2. **Retrieval.** Each query was run against the producer corpus by every
141
  retriever. Top-20 candidates per retriever were stored.
142
+ 3. **Pooling.** For each query, the union of every retriever's top-20 was
143
+ deduped (~72 unique chunks per query on average at this scale).
144
  4. **Judging.** Every `(query, chunk)` pair in the pool was scored by
145
  `Qwen/Qwen3.5-397B-A17B-FP8` against the four-dimension rubric. The
146
  judge's reasoning was captured separately and is shipped in
 
158
  The 63,650-chunk corpus the retrievers were run against. Built from a mix
159
  of WHO guidelines, Tanzania / Zanzibar MOH documents, and a small set of
160
  midwifery references.
161
+ - **Versioning**: `v0.1.0` = Tier 2 (top-3 union, 36,418 pairs). `v0.2.0`
162
+ (this release) = Tier 3 (top-20 union, 230,964 pairs). Tier-2 pairs are
163
+ a strict subset of Tier-3 pairs; reproducing v0.1.0 from v0.2.0 amounts
164
+ to filtering `rankings` by `rank <= 3` and inner-joining `judgments`.
165
  - **Audit trail**: [`manifest.json`](manifest.json) pins exact judge and
166
  generator model IDs, prompt hashes, and schema versions.
167
 
 
199
 
200
  ## Citation
201
 
202
+ Ren, Yi. *MamaRetrieval* v0.2.0. 2026. <https://huggingface.co/datasets/nmrenyi/mamaretrieval>
203
 
204
  ## Limitations
205
 
206
  - **Scope**: midwifery / OBGYN / neonatal care, framed for guidelines deployed
207
  in Zanzibar. Performance numbers do not transfer cleanly to general
208
  medical retrieval.
209
+ - **Depth-20 ceiling**: ~6% of queries have no `score ≥ 5` chunk in the
210
+ 6-retriever top-20 union, even from the strongest retriever. This is an
211
+ inherent retrieval ceiling for the producer corpus + retriever set, not
212
+ a per-retriever failure. The Tier 3 labels make this measurable directly
213
+ (`196 / 3185` queries fall outside the strict-relevance pool).
214
  - **Single relevance judge**: every `(query, chunk)` relevance label in
215
  this dataset is produced by one LLM (`Qwen/Qwen3.5-397B-A17B-FP8`) under
216
  the four-dimension rubric. That judge was calibrated against Claude Opus
audit/judgments_with_reasoning.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ac827a0c75bff5f35a1b3488a3ffe4aca46fc7e2c4ed53a7f13604ab04e0db71
3
- size 122884735
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ba2969a0e2fe9ac8c2f1dcb1388e76d6d3be494e06811dd9f2d3cad69ae5305
3
+ size 768951185
data/chunks.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e1c90755e14891479aea49f898d0166dd7d1953e3502e9f4e16120667574cf2b
3
- size 5642002
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86f62784d90c269863898240288ef7dace519715bc99cf89ae6305732b4ec0e5
3
+ size 12142532
data/judgments.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:86495f5767e68aed71471866cc069d8212b269294aab93d5504d07e784133049
3
- size 479037
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55faeb775bcf31450b21d1c3cd6d7e84367ceac1c02168945546e85913ff5c84
3
+ size 1644468
data/rankings.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:54f643b4cbca594bb5de38c71a06cc3dea77a5dc4d4d544e83e3235c055deaa4
3
- size 791597
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79bc6f6d420687e5462e2e90c2a0de8f747f2d73a22680d84533fc39d610612e
3
+ size 3271956
manifest.json CHANGED
@@ -1,9 +1,14 @@
1
  {
2
  "name": "mamaretrieval",
3
- "version": "v0.1.0",
4
- "release_date": "2026-05-19",
5
  "description": "Per-retriever evaluation of 6 retrievers on 3,185 midwifery / OBGYN queries against the rag-bundle-v0.2.0 corpus, graded by an LLM judge under a 4-dimension rubric (D1 topic, D2 meaningful, D3 actionable, D4 density; score = d1 \u00d7 (d2 + d3 + d4) \u2208 [0..6]).",
6
- "scope": "Tier 2: union of top-3 from 6 retrievers. v0.2.0 will extend to top-20 union when Tier 3 lands.",
 
 
 
 
 
7
  "judge": {
8
  "model": "Qwen/Qwen3.5-397B-A17B-FP8",
9
  "prompt_hash": "9d2abdfb76b030ea",
@@ -42,7 +47,7 @@
42
  "model": "gecko-1024-quant-v0.2.0 (on-device TFLite)"
43
  }
44
  ],
45
- "top_k": 3,
46
  "corpus": {
47
  "bundle": "rag-bundle-v0.2.0",
48
  "producer_commit": "a1abe003cce742b46954375d17abb28a3e27110f"
@@ -52,20 +57,20 @@
52
  "rows": 3185
53
  },
54
  "rankings": {
55
- "rows": 57330,
56
- "depth": 3
57
  },
58
  "judgments": {
59
- "rows": 36418
60
  },
61
  "judgments_with_reasoning": {
62
- "rows": 36418,
63
  "extra_columns": [
64
  "thinking"
65
  ]
66
  },
67
  "chunks": {
68
- "rows": 17827
69
  }
70
  }
71
  }
 
1
  {
2
  "name": "mamaretrieval",
3
+ "version": "v0.2.0",
4
+ "release_date": "2026-05-24",
5
  "description": "Per-retriever evaluation of 6 retrievers on 3,185 midwifery / OBGYN queries against the rag-bundle-v0.2.0 corpus, graded by an LLM judge under a 4-dimension rubric (D1 topic, D2 meaningful, D3 actionable, D4 density; score = d1 \u00d7 (d2 + d3 + d4) \u2208 [0..6]).",
6
+ "scope": "Tier 3: union of top-20 from 6 retrievers \u2014 230,964 judged (q, c) pairs. Top-3 union (Tier 2's scope) is a strict subset, recoverable from rankings.parquet with rank <= 3.",
7
+ "previous_version": {
8
+ "version": "v0.1.0",
9
+ "scope": "Tier 2: union of top-3, 36,418 judged pairs.",
10
+ "build_commit": "02127e3"
11
+ },
12
  "judge": {
13
  "model": "Qwen/Qwen3.5-397B-A17B-FP8",
14
  "prompt_hash": "9d2abdfb76b030ea",
 
47
  "model": "gecko-1024-quant-v0.2.0 (on-device TFLite)"
48
  }
49
  ],
50
+ "top_k": 20,
51
  "corpus": {
52
  "bundle": "rag-bundle-v0.2.0",
53
  "producer_commit": "a1abe003cce742b46954375d17abb28a3e27110f"
 
57
  "rows": 3185
58
  },
59
  "rankings": {
60
+ "rows": 382200,
61
+ "depth": 20
62
  },
63
  "judgments": {
64
+ "rows": 230964
65
  },
66
  "judgments_with_reasoning": {
67
+ "rows": 230964,
68
  "extra_columns": [
69
  "thinking"
70
  ]
71
  },
72
  "chunks": {
73
+ "rows": 41298
74
  }
75
  }
76
  }