Hyukkyu commited on
Commit
cbd702c
·
verified ·
1 Parent(s): 64f5a15

hotpotqa: hard negatives and teacher scores (jina35)

Browse files
README.md CHANGED
@@ -57,12 +57,11 @@ in this collection.
57
  | Queries / documents / qrels (all splits) | 97,852 / 5,233,329 / 195,704 |
58
  | Qrels per query | min 2 · mean 2.0 · max 2 |
59
  | Score values | 1 ×14,810 |
60
- | Layout | `queries` · `corpus` · `qrels`, split `test`; `queries`/`qrels` also carry `train`, `dev` — one shared corpus; `hard-negatives` and `teacher-scores` (empty) for `train` |
61
  | Splits | `hard-negatives`: train · `qrels`: train, dev, test · `queries`: train, dev, test · `teacher-scores`: train |
62
- | Training extension | `hard-negatives` and `teacher-scores` configs exist for the `train` split with **0 rows** — placeholders for the owner's own mining and scoring; `queries`/`qrels` `train` are the benchmark's training data |
63
- | Hard negatives | **none yet** — config present with 0 rows |
64
- | Teacher scores | **none yet** — config present with 0 rows |
65
- | Reading empty configs | `datasets` cannot return a 0-example split (`load_dataset` raises "corresponds to no data"); until rows exist, read the Parquet directly with `pyarrow`/`polars`/`pandas`. The schema is declared in the file and in `configs:` above |
66
  | License | `cc-by-sa-4.0` |
67
 
68
  ## Schema
@@ -89,6 +88,29 @@ before publishing; `provenance.json` records the source file hashes, what change
89
  - renamed `_id` → `id`
90
  - renamed source splits (`queries`←`queries/queries`, `corpus`←`corpus/corpus`) to `test`
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  ## Load it
93
 
94
  ```python
 
57
  | Queries / documents / qrels (all splits) | 97,852 / 5,233,329 / 195,704 |
58
  | Qrels per query | min 2 · mean 2.0 · max 2 |
59
  | Score values | 1 ×14,810 |
60
+ | Layout | `queries` · `corpus` · `qrels`, split `test`; `queries`/`qrels` also carry `train`, `dev` — one shared corpus; `hard-negatives` and `teacher-scores` for `train` |
61
  | Splits | `hard-negatives`: train · `qrels`: train, dev, test · `queries`: train, dev, test · `teacher-scores`: train |
62
+ | Training extension | `hard-negatives` and `teacher-scores` for the `train` split are the owner's own mining and scoring ([details](#hard-negatives-and-teacher-scores)); `queries`/`qrels` `train` are the benchmark's training data |
63
+ | Hard negatives | sources: `dense` · 8,366,684 rows |
64
+ | Teacher scores | `jinaai/jina-reranker-v3.5` · 8,451,684 rows (positives included) |
 
65
  | License | `cc-by-sa-4.0` |
66
 
67
  ## Schema
 
88
  - renamed `_id` → `id`
89
  - renamed source splits (`queries`←`queries/queries`, `corpus`←`corpus/corpus`) to `test`
90
 
91
+ ## Hard negatives and teacher scores
92
+
93
+ Filled by the owner's annotation pipeline (`annotation=jina35`) for the `train` split of the
94
+ query set(s) below; queries without a labelled positive are left out.
95
+
96
+ - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over the full corpus to depth 1,000;
97
+ 100 candidates per query drawn from the rank windows 1–30 (30), 31–100 (30), 101–300 (20), 301–1000 (20), the query's labelled positives excluded.
98
+ `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself
99
+ (those are kept for every query of the split, sampled or not).
100
+ - **Teacher**: `jinaai/jina-reranker-v3.5`, listwise: a query's positive and all of its candidates are scored together in one
101
+ context of up to 32,768 tokens. `score` is the raw cosine score, one row per (query, positive) and per
102
+ (query, candidate); a labelled negative that was also mined is scored once. No filtering is applied to the tables.
103
+
104
+ | configs | queries | hard negatives | teacher scores |
105
+ |---|---:|---:|---:|
106
+ | `hard-negatives` · `teacher-scores` | 85,000 (seeded sample, seed 1) | 8,366,684 (8,366,684 dense) | 8,451,684 |
107
+
108
+ ```python
109
+ from datasets import load_dataset
110
+ negatives = load_dataset("Hyukkyu/beir-hotpotqa", "hard-negatives", split="train")
111
+ scores = load_dataset("Hyukkyu/beir-hotpotqa", "teacher-scores", split="train")
112
+ ```
113
+
114
  ## Load it
115
 
116
  ```python
hard-negatives/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f62b1b56789db979f3b0d83e5e329c7d6533a72d3da081396053e4bb2a4543b0
3
- size 823
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee6497861c4fc61d911c5073cb004cff07b049d4b4dda23f8b2e063f96f595bf
3
+ size 48923489
teacher-scores/{train-00000-of-00001.parquet → train-00000-of-00002.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8316266e7cbe6867227eefc104eb93ee2252b885a6127a24b8e5c1982716406a
3
- size 815
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ec7e8ab0a20b69a1f68494a819a5807508bb277d6d42b6ef825dde79732ebe6
3
+ size 37071090
teacher-scores/train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:436bde3f08317a163659e8d8b3bb329a484100a6a83296daf5d4fe29c10ce95a
3
+ size 37075653