Hyukkyu commited on
Commit
fff469e
·
verified ·
1 Parent(s): 0baafd4

cornstack-python: re-mined candidates (100 to depth 1000); teacher scores to come

Browse files
README.md CHANGED
@@ -49,8 +49,8 @@ A seeded sample of [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datas
49
  | Score values | 2 ×59,994 (2: the first positive, 1: any other) |
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
- | Hard negatives | sources: `dataset`, `dense` · 4,007,467 rows |
53
- | Teacher scores | `jinaai/jina-embeddings-v5-text-small` (the miner's cosine, not a reranker) · 4,067,461 rows (positives included) |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `apache-2.0` |
56
 
@@ -79,15 +79,14 @@ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule
79
 
80
  ## Hard negatives and teacher scores
81
 
82
- Filled by the owner's domain pipeline (`convert_domain.py`, `mine_domain.py`), not yet by the annotation pipeline of the other repositories in this collection:
83
 
84
- - **Corpus**: the source's own passages (its positives and the negatives it provides), not a larger collection.
85
- - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` (full length) over that corpus to depth 300; 60 candidates per query drawn from the rank windows 1–30 (30), 31–100 (20), 101–300 (10), the query's positives excluded. `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself (ranked after the mined ones).
86
- - **Teacher scores**: the miner's cosine between the query and passage embeddings, one row per (query, positive) and per (query, candidate), `teacher` = `jinaai/jina-embeddings-v5-text-small`. **Not a reranker**: the other repositories carry `jinaai/jina-reranker-v3.5` scores. Re-mining with the collection's plan (100 candidates to depth 1,000) and re-scoring with that reranker are under way; they will replace these two tables, and this section will say so.
87
 
88
  | configs | queries | hard negatives | teacher scores |
89
  |---|---:|---:|---:|
90
- | `hard-negatives` · `teacher-scores` | 59,994 (all) | 4,007,467 (452,100 dataset, 3,555,367 dense) | 4,067,461 |
91
 
92
  ## Load it
93
 
 
49
  | Score values | 2 ×59,994 (2: the first positive, 1: any other) |
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
+ | Hard negatives | sources: `dataset`, `dense` · 6,407,253 rows |
53
+ | Teacher scores | none yet (0 rows): `jinaai/jina-reranker-v3.5` scores come next |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `apache-2.0` |
56
 
 
79
 
80
  ## Hard negatives and teacher scores
81
 
82
+ Filled by the collection's annotation pipeline (`annotation=jina35`). **Interim**: the candidates are final, the teacher scores are still to come.
83
 
84
+ - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over this corpus to depth 1,000; 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. `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself.
85
+ - **Teacher scores**: none yet. `teacher-scores` holds 0 rows until the `jinaai/jina-reranker-v3.5` scores (listwise, as in the other repositories) are filled in; `datasets` cannot return a 0-example split, so read that file with `pyarrow` / `pandas` meanwhile. The candidates stay.
 
86
 
87
  | configs | queries | hard negatives | teacher scores |
88
  |---|---:|---:|---:|
89
+ | `hard-negatives` · `teacher-scores` | 59,994 (all) | 6,407,253 (452,100 dataset, 5,955,153 dense) | 0 |
90
 
91
  ## Load it
92
 
hard-negatives/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d3cd4501667234522499e436eaa7ef1122080a4c1548cfb0332e0c097a761db0
3
- size 49139057
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a2240c34dbc407b12b8df845247181f15a07b31ebad116f627649adc122a7bc
3
+ size 78109659
provenance.json CHANGED
@@ -132,5 +132,27 @@
132
  }
133
  ]
134
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
  }
 
132
  }
133
  ]
134
  }
135
+ },
136
+ "annotation": {
137
+ "namespace": "jina35-u2",
138
+ "stage": "mined; teacher scores to come",
139
+ "miner": "jinaai/jina-embeddings-v5-text-small",
140
+ "dense_top": 1000,
141
+ "sample": {
142
+ "dense_1_30": 30,
143
+ "dense_31_100": 30,
144
+ "dense_101_300": 20,
145
+ "dense_301_1000": 20
146
+ },
147
+ "stats": {
148
+ "queries": 59994,
149
+ "candidates": 6407253,
150
+ "by_source": {
151
+ "dataset": 452100,
152
+ "dense": 5955153
153
+ },
154
+ "scores": 0,
155
+ "positives": 59994
156
+ }
157
  }
158
  }
teacher-scores/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5be57a08632d7a585f703aec12e4e1b8f17a3205e1322d1f9eff197c30f69a74
3
- size 61278979
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8316266e7cbe6867227eefc104eb93ee2252b885a6127a24b8e5c1982716406a
3
+ size 815