Datasets:
Tasks:
Text Retrieval
Modalities:
Text
Formats:
parquet
Sub-tasks:
document-retrieval
Languages:
English
Size:
1M - 10M
License:
CoRNStack Python: domain-v1.1: near copies of evaluation documents that no evaluation query judges relevant restored (middle-ground decontamination)
Browse files
README.md
CHANGED
|
@@ -44,13 +44,13 @@ A seeded sample of [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datas
|
|
| 44 |
| Source | [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datasets/nomic-ai/cornstack-python-v1/tree/25fb04bd3537983a622d01104a967a5a7f9eaef8) @ `25fb04bd3537` |
|
| 45 |
| Task | query → Python function |
|
| 46 |
| Domain · languages | code · eng |
|
| 47 |
-
| Queries / documents / qrels | 59,
|
| 48 |
| Qrels per query | min 1 · mean 1.0 · max 1 |
|
| 49 |
-
| Score values | 2 ×59,
|
| 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,
|
| 53 |
-
| Teacher scores | `jinaai/jina-embeddings-v5-text-small` (the miner's cosine, not a reranker) · 4,
|
| 54 |
| Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
|
| 55 |
| License | `apache-2.0` |
|
| 56 |
|
|
@@ -72,7 +72,7 @@ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule
|
|
| 72 |
- **reshaped**: the natural-language query (`query`) is the query, the function (`document`) the document
|
| 73 |
- **negatives the source provides**: up to 15 of the row's own mined negatives (`negatives`) (hard-negatives `source` = `dataset`)
|
| 74 |
- **decontaminated (exact)**: a pair was dropped when its normalised query equals any evaluation query, or a positive equals a document of a test or dev corpus; a repeated query keeps its first pair
|
| 75 |
-
- **decontaminated (near-duplicates)**:
|
| 76 |
- **text**: leading and trailing whitespace stripped; otherwise as converted above
|
| 77 |
- **ids** re-keyed to `sha1(text)[:20]`: 0 documents and 0 queries collapsed into identical texts
|
| 78 |
- added a `title` column filled with `""` (the source has none)
|
|
@@ -87,7 +87,7 @@ Filled by the owner's domain pipeline (`convert_domain.py`, `mine_domain.py`), n
|
|
| 87 |
|
| 88 |
| configs | queries | hard negatives | teacher scores |
|
| 89 |
|---|---:|---:|---:|
|
| 90 |
-
| `hard-negatives` · `teacher-scores` | 59,
|
| 91 |
|
| 92 |
## Load it
|
| 93 |
|
|
|
|
| 44 |
| Source | [`nomic-ai/cornstack-python-v1`](https://huggingface.co/datasets/nomic-ai/cornstack-python-v1/tree/25fb04bd3537983a622d01104a967a5a7f9eaef8) @ `25fb04bd3537` |
|
| 45 |
| Task | query → Python function |
|
| 46 |
| Domain · languages | code · eng |
|
| 47 |
+
| Queries / documents / qrels | 59,994 / 712,486 / 59,994 |
|
| 48 |
| Qrels per query | min 1 · mean 1.0 · max 1 |
|
| 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 |
|
|
|
|
| 72 |
- **reshaped**: the natural-language query (`query`) is the query, the function (`document`) the document
|
| 73 |
- **negatives the source provides**: up to 15 of the row's own mined negatives (`negatives`) (hard-negatives `source` = `dataset`)
|
| 74 |
- **decontaminated (exact)**: a pair was dropped when its normalised query equals any evaluation query, or a positive equals a document of a test or dev corpus; a repeated query keeps its first pair
|
| 75 |
+
- **decontaminated (near-duplicates)**: 3 passages that nearly copy an evaluation document some evaluation query judges relevant, and 3 queries that nearly copy an evaluation query (word 13-grams for passages, 8-grams for queries; at least half shared with one text of the 23 test sets (BEIR, RTEB, LitSearch) or the 6 dev sets) were removed, and with them 6 queries in total; near copies of evaluation-corpus documents that no evaluation query judges relevant were kept
|
| 76 |
- **text**: leading and trailing whitespace stripped; otherwise as converted above
|
| 77 |
- **ids** re-keyed to `sha1(text)[:20]`: 0 documents and 0 queries collapsed into identical texts
|
| 78 |
- added a `title` column filled with `""` (the source has none)
|
|
|
|
| 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 |
|
corpus/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:ab34eb0384ec306bcf206bab5bc0fd7a5e20fbcd31e69360b1896e5de2092f2c
|
| 3 |
+
size 131535813
|
hard-negatives/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:d3cd4501667234522499e436eaa7ef1122080a4c1548cfb0332e0c097a761db0
|
| 3 |
+
size 49139057
|
provenance.json
CHANGED
|
@@ -42,10 +42,10 @@
|
|
| 42 |
},
|
| 43 |
"decontamination": {
|
| 44 |
"exact": "the normalised query equals an evaluation query, or a positive equals a test / dev corpus document (convert_domain.py)",
|
| 45 |
-
"near_duplicate": "word 13-gram shingles of passages, 8-grams of queries, a fixed 1/4 sample;
|
| 46 |
-
"flagged_passages":
|
| 47 |
"flagged_queries": 3,
|
| 48 |
-
"queries_dropped":
|
| 49 |
},
|
| 50 |
"normalize": {
|
| 51 |
"title_added": true,
|
|
@@ -56,25 +56,25 @@
|
|
| 56 |
"score_spread_max": 0.0
|
| 57 |
},
|
| 58 |
"stats": {
|
| 59 |
-
"n_queries":
|
| 60 |
-
"n_corpus":
|
| 61 |
-
"n_qrels":
|
| 62 |
"qrels_per_query": {
|
| 63 |
"min": 1,
|
| 64 |
"mean": 1.0,
|
| 65 |
"max": 1
|
| 66 |
},
|
| 67 |
"score_values": {
|
| 68 |
-
"2":
|
| 69 |
},
|
| 70 |
"corpus_with_title": 0,
|
| 71 |
-
"n_hard_negatives":
|
| 72 |
"sources": {
|
| 73 |
-
"dense":
|
| 74 |
-
"dataset":
|
| 75 |
},
|
| 76 |
"negatives_per_query": 66.8,
|
| 77 |
-
"n_teacher_scores":
|
| 78 |
"teachers": [
|
| 79 |
"jinaai/jina-embeddings-v5-text-small"
|
| 80 |
],
|
|
@@ -86,9 +86,9 @@
|
|
| 86 |
"train": [
|
| 87 |
{
|
| 88 |
"path": "queries/train-00000-of-00001.parquet",
|
| 89 |
-
"rows":
|
| 90 |
-
"bytes":
|
| 91 |
-
"sha256": "
|
| 92 |
}
|
| 93 |
]
|
| 94 |
},
|
|
@@ -96,9 +96,9 @@
|
|
| 96 |
"train": [
|
| 97 |
{
|
| 98 |
"path": "corpus/train-00000-of-00001.parquet",
|
| 99 |
-
"rows":
|
| 100 |
-
"bytes":
|
| 101 |
-
"sha256": "
|
| 102 |
}
|
| 103 |
]
|
| 104 |
},
|
|
@@ -106,9 +106,9 @@
|
|
| 106 |
"train": [
|
| 107 |
{
|
| 108 |
"path": "qrels/train-00000-of-00001.parquet",
|
| 109 |
-
"rows":
|
| 110 |
-
"bytes":
|
| 111 |
-
"sha256": "
|
| 112 |
}
|
| 113 |
]
|
| 114 |
},
|
|
@@ -116,9 +116,9 @@
|
|
| 116 |
"train": [
|
| 117 |
{
|
| 118 |
"path": "hard-negatives/train-00000-of-00001.parquet",
|
| 119 |
-
"rows":
|
| 120 |
-
"bytes":
|
| 121 |
-
"sha256": "
|
| 122 |
}
|
| 123 |
]
|
| 124 |
},
|
|
@@ -126,9 +126,9 @@
|
|
| 126 |
"train": [
|
| 127 |
{
|
| 128 |
"path": "teacher-scores/train-00000-of-00001.parquet",
|
| 129 |
-
"rows":
|
| 130 |
-
"bytes":
|
| 131 |
-
"sha256": "
|
| 132 |
}
|
| 133 |
]
|
| 134 |
}
|
|
|
|
| 42 |
},
|
| 43 |
"decontamination": {
|
| 44 |
"exact": "the normalised query equals an evaluation query, or a positive equals a test / dev corpus document (convert_domain.py)",
|
| 45 |
+
"near_duplicate": "word 13-gram shingles of passages, 8-grams of queries, a fixed 1/4 sample; a near copy shares >= half (and the text has >= 4) with one text of the 23 test sets and the 6 dev sets; removed: passages nearly copying a document some evaluation query judges relevant, and queries nearly copying an evaluation query; near copies of documents no evaluation query judges relevant are kept (data/tmp/full_overlap_audit.py)",
|
| 46 |
+
"flagged_passages": 3,
|
| 47 |
"flagged_queries": 3,
|
| 48 |
+
"queries_dropped": 6
|
| 49 |
},
|
| 50 |
"normalize": {
|
| 51 |
"title_added": true,
|
|
|
|
| 56 |
"score_spread_max": 0.0
|
| 57 |
},
|
| 58 |
"stats": {
|
| 59 |
+
"n_queries": 59994,
|
| 60 |
+
"n_corpus": 712486,
|
| 61 |
+
"n_qrels": 59994,
|
| 62 |
"qrels_per_query": {
|
| 63 |
"min": 1,
|
| 64 |
"mean": 1.0,
|
| 65 |
"max": 1
|
| 66 |
},
|
| 67 |
"score_values": {
|
| 68 |
+
"2": 59994
|
| 69 |
},
|
| 70 |
"corpus_with_title": 0,
|
| 71 |
+
"n_hard_negatives": 4007467,
|
| 72 |
"sources": {
|
| 73 |
+
"dense": 3555367,
|
| 74 |
+
"dataset": 452100
|
| 75 |
},
|
| 76 |
"negatives_per_query": 66.8,
|
| 77 |
+
"n_teacher_scores": 4067461,
|
| 78 |
"teachers": [
|
| 79 |
"jinaai/jina-embeddings-v5-text-small"
|
| 80 |
],
|
|
|
|
| 86 |
"train": [
|
| 87 |
{
|
| 88 |
"path": "queries/train-00000-of-00001.parquet",
|
| 89 |
+
"rows": 59994,
|
| 90 |
+
"bytes": 3038108,
|
| 91 |
+
"sha256": "15acd7d2c3df87a58c5a84798850183d1e38a30d8d308c546443e259a39db811"
|
| 92 |
}
|
| 93 |
]
|
| 94 |
},
|
|
|
|
| 96 |
"train": [
|
| 97 |
{
|
| 98 |
"path": "corpus/train-00000-of-00001.parquet",
|
| 99 |
+
"rows": 712486,
|
| 100 |
+
"bytes": 131535813,
|
| 101 |
+
"sha256": "ab34eb0384ec306bcf206bab5bc0fd7a5e20fbcd31e69360b1896e5de2092f2c"
|
| 102 |
}
|
| 103 |
]
|
| 104 |
},
|
|
|
|
| 106 |
"train": [
|
| 107 |
{
|
| 108 |
"path": "qrels/train-00000-of-00001.parquet",
|
| 109 |
+
"rows": 59994,
|
| 110 |
+
"bytes": 1451479,
|
| 111 |
+
"sha256": "b9f18e1e89806138ae2c9905e9cccc9a504e7fa2e3f561d55a4669ed866a460a"
|
| 112 |
}
|
| 113 |
]
|
| 114 |
},
|
|
|
|
| 116 |
"train": [
|
| 117 |
{
|
| 118 |
"path": "hard-negatives/train-00000-of-00001.parquet",
|
| 119 |
+
"rows": 4007467,
|
| 120 |
+
"bytes": 49139057,
|
| 121 |
+
"sha256": "d3cd4501667234522499e436eaa7ef1122080a4c1548cfb0332e0c097a761db0"
|
| 122 |
}
|
| 123 |
]
|
| 124 |
},
|
|
|
|
| 126 |
"train": [
|
| 127 |
{
|
| 128 |
"path": "teacher-scores/train-00000-of-00001.parquet",
|
| 129 |
+
"rows": 4067461,
|
| 130 |
+
"bytes": 61278979,
|
| 131 |
+
"sha256": "5be57a08632d7a585f703aec12e4e1b8f17a3205e1322d1f9eff197c30f69a74"
|
| 132 |
}
|
| 133 |
]
|
| 134 |
}
|
qrels/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:b9f18e1e89806138ae2c9905e9cccc9a504e7fa2e3f561d55a4669ed866a460a
|
| 3 |
+
size 1451479
|
queries/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:15acd7d2c3df87a58c5a84798850183d1e38a30d8d308c546443e259a39db811
|
| 3 |
+
size 3038108
|
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:5be57a08632d7a585f703aec12e4e1b8f17a3205e1322d1f9eff197c30f69a74
|
| 3 |
+
size 61278979
|