Datasets:
Tasks:
Text Retrieval
Modalities:
Text
Formats:
parquet
Sub-tasks:
document-retrieval
Languages:
English
Size:
10M - 100M
License:
cornstack-python: hard negatives and teacher scores (jina35-u2)
Browse files
README.md
CHANGED
|
@@ -50,7 +50,7 @@ A seeded sample of [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datas
|
|
| 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 |
|
| 54 |
| Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
|
| 55 |
| License | `apache-2.0` |
|
| 56 |
|
|
@@ -79,14 +79,26 @@ 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
|
|
|
|
| 83 |
|
| 84 |
-
- **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
## Load it
|
| 92 |
|
|
|
|
| 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 | `jinaai/jina-reranker-v3.5` · 6,388,624 rows (positives included) |
|
| 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 owner's annotation pipeline (`annotation=jina35-u2`) for the `train` split of the
|
| 83 |
+
query set(s) below; queries without a labelled positive are left out.
|
| 84 |
|
| 85 |
+
- **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over the full corpus to depth 1,000;
|
| 86 |
+
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.
|
| 87 |
+
`rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself
|
| 88 |
+
(those are kept for every query of the split, sampled or not).
|
| 89 |
+
- **Teacher**: `jinaai/jina-reranker-v3.5`, listwise: a query's positive and all of its candidates are scored together in one
|
| 90 |
+
context of up to 32,768 tokens. `score` is the raw cosine score, one row per (query, positive) and per
|
| 91 |
+
(query, candidate); a labelled negative that was also mined is scored once. No filtering is applied to the tables.
|
| 92 |
|
| 93 |
| configs | queries | hard negatives | teacher scores |
|
| 94 |
|---|---:|---:|---:|
|
| 95 |
+
| `hard-negatives` · `teacher-scores` | 59,994 (all) | 6,407,253 (452,100 dataset, 5,955,153 dense) | 6,388,624 |
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
from datasets import load_dataset
|
| 99 |
+
negatives = load_dataset("Hyukkyu/train-cornstack-python", "hard-negatives", split="train")
|
| 100 |
+
scores = load_dataset("Hyukkyu/train-cornstack-python", "teacher-scores", split="train")
|
| 101 |
+
```
|
| 102 |
|
| 103 |
## Load it
|
| 104 |
|
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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37bff2f47f879e56921c2b38825dbb1dffdffeece41749af00a54a94abddf6f5
|
| 3 |
+
size 48599743
|
teacher-scores/train-00001-of-00002.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51444c6e648118079b8b437dace3470bd6def2b7f2917b730a8d91cea2c76cfd
|
| 3 |
+
size 48659406
|