Datasets:
Tasks:
Text Retrieval
Formats:
parquet
Sub-tasks:
document-retrieval
Languages:
English
Size:
10M - 100M
License:
magicoder: hard negatives and teacher scores (jina35-u2)
Browse files- README.md +17 -5
- teacher-scores/train-00000-of-00001.parquet +2 -2
README.md
CHANGED
|
@@ -50,7 +50,7 @@ A seeded sample of [`ise-uiuc/Magicoder-OSS-Instruct-75K`](https://huggingface.c
|
|
| 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: `dense` · 5,939,734 rows |
|
| 53 |
-
| Teacher scores |
|
| 54 |
| Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
|
| 55 |
| License | `mit` |
|
| 56 |
|
|
@@ -78,14 +78,26 @@ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule
|
|
| 78 |
|
| 79 |
## Hard negatives and teacher scores
|
| 80 |
|
| 81 |
-
Filled by the
|
|
|
|
| 82 |
|
| 83 |
-
- **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
| configs | queries | hard negatives | teacher scores |
|
| 87 |
|---|---:|---:|---:|
|
| 88 |
-
| `hard-negatives` · `teacher-scores` | 59,997 (all) | 5,939,734 (5,939,734 dense) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
## Load it
|
| 91 |
|
|
|
|
| 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: `dense` · 5,939,734 rows |
|
| 53 |
+
| Teacher scores | `jinaai/jina-reranker-v3.5` · 5,999,731 rows (positives included) |
|
| 54 |
| Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
|
| 55 |
| License | `mit` |
|
| 56 |
|
|
|
|
| 78 |
|
| 79 |
## Hard negatives and teacher scores
|
| 80 |
|
| 81 |
+
Filled by the owner's annotation pipeline (`annotation=jina35-u2`) for the `train` split of the
|
| 82 |
+
query set(s) below; queries without a labelled positive are left out.
|
| 83 |
|
| 84 |
+
- **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over the full corpus to depth 1,000;
|
| 85 |
+
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.
|
| 86 |
+
`rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself
|
| 87 |
+
(those are kept for every query of the split, sampled or not).
|
| 88 |
+
- **Teacher**: `jinaai/jina-reranker-v3.5`, listwise: a query's positive and all of its candidates are scored together in one
|
| 89 |
+
context of up to 32,768 tokens. `score` is the raw cosine score, one row per (query, positive) and per
|
| 90 |
+
(query, candidate); a labelled negative that was also mined is scored once. No filtering is applied to the tables.
|
| 91 |
|
| 92 |
| configs | queries | hard negatives | teacher scores |
|
| 93 |
|---|---:|---:|---:|
|
| 94 |
+
| `hard-negatives` · `teacher-scores` | 59,997 (all) | 5,939,734 (5,939,734 dense) | 5,999,731 |
|
| 95 |
+
|
| 96 |
+
```python
|
| 97 |
+
from datasets import load_dataset
|
| 98 |
+
negatives = load_dataset("Hyukkyu/train-magicoder", "hard-negatives", split="train")
|
| 99 |
+
scores = load_dataset("Hyukkyu/train-magicoder", "teacher-scores", split="train")
|
| 100 |
+
```
|
| 101 |
|
| 102 |
## Load it
|
| 103 |
|
teacher-scores/train-00000-of-00001.parquet
CHANGED
|
@@ -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:826997ee6905bd9aa7ff6d8c0b6da5f73092f412eb1c020127c66505fb35ac4d
|
| 3 |
+
size 86635602
|