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

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,983 / 712,475 / 59,983 |
48
  | Qrels per query | min 1 · mean 1.0 · max 1 |
49
- | Score values | 2 ×59,983 (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,006,722 rows |
53
- | Teacher scores | `jinaai/jina-embeddings-v5-text-small` (the miner's cosine, not a reranker) · 4,066,705 rows (positives included) |
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)**: 14 passages and 3 queries that nearly copy a text of an evaluation set (word 13-grams for passages, 8-grams for queries; at least half shared with one text of the 23 test corpora (BEIR, RTEB, LitSearch) and the 3 dev corpora) were removed, and with them 17 queries in total
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,983 (all) | 4,006,722 (452,048 dataset, 3,554,674 dense) | 4,066,705 |
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:9b0224d3e24418517a080f9953f647d2a133d20acd55de4c55f683ee6dd3274a
3
- size 131538050
 
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:d74e9581d579c9d8aca3d6424c17d70a7027bdb4c845726b678216cfc24b9bd6
3
- size 49095009
 
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; flagged at >= half (and >= 4) shared with one text of the 23 test corpora and the 3 dev corpora (data/tmp/domain_overlap_flagged.py)",
46
- "flagged_passages": 14,
47
  "flagged_queries": 3,
48
- "queries_dropped": 17
49
  },
50
  "normalize": {
51
  "title_added": true,
@@ -56,25 +56,25 @@
56
  "score_spread_max": 0.0
57
  },
58
  "stats": {
59
- "n_queries": 59983,
60
- "n_corpus": 712475,
61
- "n_qrels": 59983,
62
  "qrels_per_query": {
63
  "min": 1,
64
  "mean": 1.0,
65
  "max": 1
66
  },
67
  "score_values": {
68
- "2": 59983
69
  },
70
  "corpus_with_title": 0,
71
- "n_hard_negatives": 4006722,
72
  "sources": {
73
- "dense": 3554674,
74
- "dataset": 452048
75
  },
76
  "negatives_per_query": 66.8,
77
- "n_teacher_scores": 4066705,
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": 59983,
90
- "bytes": 3037712,
91
- "sha256": "b6d26cef8fe86012e2e7770937881661d0f71267a7f0260e6c7a9c9c18651043"
92
  }
93
  ]
94
  },
@@ -96,9 +96,9 @@
96
  "train": [
97
  {
98
  "path": "corpus/train-00000-of-00001.parquet",
99
- "rows": 712475,
100
- "bytes": 131538050,
101
- "sha256": "9b0224d3e24418517a080f9953f647d2a133d20acd55de4c55f683ee6dd3274a"
102
  }
103
  ]
104
  },
@@ -106,9 +106,9 @@
106
  "train": [
107
  {
108
  "path": "qrels/train-00000-of-00001.parquet",
109
- "rows": 59983,
110
- "bytes": 1446999,
111
- "sha256": "1e8f701bc7f7421ff395e08370fc34514c4e5873db28d0912d186f299e9c0724"
112
  }
113
  ]
114
  },
@@ -116,9 +116,9 @@
116
  "train": [
117
  {
118
  "path": "hard-negatives/train-00000-of-00001.parquet",
119
- "rows": 4006722,
120
- "bytes": 49095009,
121
- "sha256": "d74e9581d579c9d8aca3d6424c17d70a7027bdb4c845726b678216cfc24b9bd6"
122
  }
123
  ]
124
  },
@@ -126,9 +126,9 @@
126
  "train": [
127
  {
128
  "path": "teacher-scores/train-00000-of-00001.parquet",
129
- "rows": 4066705,
130
- "bytes": 61263455,
131
- "sha256": "5f78beca05bab44e78ccbab8ac690d6989f270a5413775b21639cb530f3bc004"
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:1e8f701bc7f7421ff395e08370fc34514c4e5873db28d0912d186f299e9c0724
3
- size 1446999
 
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:b6d26cef8fe86012e2e7770937881661d0f71267a7f0260e6c7a9c9c18651043
3
- size 3037712
 
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:5f78beca05bab44e78ccbab8ac690d6989f270a5413775b21639cb530f3bc004
3
- size 61263455
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5be57a08632d7a585f703aec12e4e1b8f17a3205e1322d1f9eff197c30f69a74
3
+ size 61278979