Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
License:
hotchpotch commited on
Commit
0240b16
·
verified ·
1 Parent(s): 6a23287

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -177
README.md CHANGED
@@ -1,161 +1,4 @@
1
  ---
2
- dataset_info:
3
- - config_name: go-v1-hard-negatives-100k
4
- features:
5
- - name: query
6
- dtype: string
7
- - name: pos
8
- dtype: string
9
- - name: negs
10
- list: string
11
- splits:
12
- - name: train
13
- num_bytes: 332880779
14
- num_examples: 87647
15
- download_size: 152886043
16
- dataset_size: 332880779
17
- - config_name: go-v1-pair-2M
18
- features:
19
- - name: query
20
- dtype: string
21
- - name: pos
22
- dtype: string
23
- splits:
24
- - name: train
25
- num_bytes: 857307308
26
- num_examples: 1541111
27
- download_size: 372370345
28
- dataset_size: 857307308
29
- - config_name: java-v1-hard-negatives-100k
30
- features:
31
- - name: query
32
- dtype: string
33
- - name: pos
34
- dtype: string
35
- - name: negs
36
- list: string
37
- splits:
38
- - name: train
39
- num_bytes: 329489331
40
- num_examples: 81657
41
- download_size: 121982790
42
- dataset_size: 329489331
43
- - config_name: java-v1-pair-2M
44
- features:
45
- - name: query
46
- dtype: string
47
- - name: pos
48
- dtype: string
49
- splits:
50
- - name: train
51
- num_bytes: 1021079487
52
- num_examples: 1491655
53
- download_size: 399345274
54
- dataset_size: 1021079487
55
- - config_name: javascript-v1-hard-negatives-100k
56
- features:
57
- - name: query
58
- dtype: string
59
- - name: pos
60
- dtype: string
61
- - name: negs
62
- list: string
63
- splits:
64
- - name: train
65
- num_bytes: 409752585
66
- num_examples: 79684
67
- download_size: 176784224
68
- dataset_size: 409752585
69
- - config_name: javascript-v1-pair-2M
70
- features:
71
- - name: query
72
- dtype: string
73
- - name: pos
74
- dtype: string
75
- splits:
76
- - name: train
77
- num_bytes: 1088286595
78
- num_examples: 1310965
79
- download_size: 469542786
80
- dataset_size: 1088286595
81
- - config_name: php-v1-hard-negatives-100k
82
- features:
83
- - name: query
84
- dtype: string
85
- - name: pos
86
- dtype: string
87
- - name: negs
88
- list: string
89
- splits:
90
- - name: train
91
- num_bytes: 370243006
92
- num_examples: 75632
93
- download_size: 150322586
94
- dataset_size: 370243006
95
- - config_name: php-v1-pair-2M
96
- features:
97
- - name: query
98
- dtype: string
99
- - name: pos
100
- dtype: string
101
- splits:
102
- - name: train
103
- num_bytes: 998839060
104
- num_examples: 1343442
105
- download_size: 407549664
106
- dataset_size: 998839060
107
- - config_name: python-v1-hard-negatives-100k
108
- features:
109
- - name: query
110
- dtype: string
111
- - name: pos
112
- dtype: string
113
- - name: negs
114
- list: string
115
- splits:
116
- - name: train
117
- num_bytes: 418543676
118
- num_examples: 97147
119
- download_size: 181554947
120
- dataset_size: 418543676
121
- - config_name: python-v1-pair-2M
122
- features:
123
- - name: query
124
- dtype: string
125
- - name: pos
126
- dtype: string
127
- splits:
128
- - name: train
129
- num_bytes: 1343594572
130
- num_examples: 1807480
131
- download_size: 595226410
132
- dataset_size: 1343594572
133
- - config_name: ruby-v1-hard-negatives-100k
134
- features:
135
- - name: query
136
- dtype: string
137
- - name: pos
138
- dtype: string
139
- - name: negs
140
- list: string
141
- splits:
142
- - name: train
143
- num_bytes: 162963647
144
- num_examples: 68382
145
- download_size: 75976437
146
- dataset_size: 162963647
147
- - config_name: ruby-v1-pair-2M
148
- features:
149
- - name: query
150
- dtype: string
151
- - name: pos
152
- dtype: string
153
- splits:
154
- - name: train
155
- num_bytes: 547891986
156
- num_examples: 1175219
157
- download_size: 248256611
158
- dataset_size: 547891986
159
  configs:
160
  - config_name: go-v1-hard-negatives-100k
161
  data_files:
@@ -218,11 +61,9 @@ Source dataset and paper:
218
 
219
  ## What This Release Contains
220
 
221
- This release keeps the original subset layout (6 languages x pair + hard-negatives) and applies a deterministic rule-based noise filter.
222
 
223
- Important:
224
- - Counts are post-filter counts, so they are slightly smaller than the nominal 2M / 100k targets.
225
- - Data is published in normalized IR format.
226
 
227
  ## Config Layout And Schema
228
 
@@ -234,22 +75,46 @@ Schema:
234
  - Pair configs: `query`, `pos`
235
  - Hard-negative configs: `query`, `pos`, `negs` (list[string])
236
 
237
- ## Subsets And Row Counts (Post-filter)
238
 
239
  | Subset (config name) | split | num_examples |
240
  | --- | --- | ---: |
241
- | `go-v1-pair-2M` | `train` | 1,992,985 |
242
- | `go-v1-hard-negatives-100k` | `train` | 99,663 |
243
- | `java-v1-pair-2M` | `train` | 1,752,593 |
244
- | `java-v1-hard-negatives-100k` | `train` | 87,504 |
245
- | `javascript-v1-pair-2M` | `train` | 1,960,276 |
246
- | `javascript-v1-hard-negatives-100k` | `train` | 98,025 |
247
- | `php-v1-pair-2M` | `train` | 1,710,537 |
248
- | `php-v1-hard-negatives-100k` | `train` | 85,460 |
249
- | `python-v1-pair-2M` | `train` | 1,990,051 |
250
- | `python-v1-hard-negatives-100k` | `train` | 99,535 |
251
- | `ruby-v1-pair-2M` | `train` | 1,583,047 |
252
- | `ruby-v1-hard-negatives-100k` | `train` | 79,040 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
 
254
  ## Quick Usage
255
 
@@ -300,11 +165,16 @@ A row is dropped if `query` starts with any of the following prefixes:
300
  - `"/ access modifiers changed from:"`
301
 
302
  2. Minimum positive-document length
303
- A row is dropped if the positive side is shorter than 30 characters.
304
- - Pair task: `document` length >= 30 required
305
- - Hard-negatives task: `positive` length >= 30 required
306
 
307
  3. Hard-negative validity constraint
308
  For hard-negative configs, at least one valid negative must remain after normalization (`min_negs = 1`).
309
 
 
 
 
 
 
310
  This filtering is purely rule-based (no model scoring), targeting high-noise templates and low-information positives while preserving broad retrieval coverage.
 
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  configs:
3
  - config_name: go-v1-hard-negatives-100k
4
  data_files:
 
61
 
62
  ## What This Release Contains
63
 
64
+ This release keeps the original subset layout (6 languages x pair + hard-negatives) and applies deterministic rule-based filtering.
65
 
66
+ In this revision, query-level deduplication is also applied per subset: if `query` is duplicated, only the first row is kept.
 
 
67
 
68
  ## Config Layout And Schema
69
 
 
75
  - Pair configs: `query`, `pos`
76
  - Hard-negative configs: `query`, `pos`, `negs` (list[string])
77
 
78
+ ## Subsets And Row Counts (After Filter + Query Dedup)
79
 
80
  | Subset (config name) | split | num_examples |
81
  | --- | --- | ---: |
82
+ | `go-v1-pair-2M` | `train` | 1,541,111 |
83
+ | `go-v1-hard-negatives-100k` | `train` | 87,647 |
84
+ | `java-v1-pair-2M` | `train` | 1,491,655 |
85
+ | `java-v1-hard-negatives-100k` | `train` | 81,657 |
86
+ | `javascript-v1-pair-2M` | `train` | 1,310,965 |
87
+ | `javascript-v1-hard-negatives-100k` | `train` | 79,684 |
88
+ | `php-v1-pair-2M` | `train` | 1,343,442 |
89
+ | `php-v1-hard-negatives-100k` | `train` | 75,632 |
90
+ | `python-v1-pair-2M` | `train` | 1,807,480 |
91
+ | `python-v1-hard-negatives-100k` | `train` | 97,147 |
92
+ | `ruby-v1-pair-2M` | `train` | 1,175,219 |
93
+ | `ruby-v1-hard-negatives-100k` | `train` | 68,382 |
94
+
95
+ Total rows:
96
+ - Pair: 8,669,872
97
+ - Hard-negatives: 490,149
98
+ - Overall: 9,160,021
99
+
100
+ ## Filter Impact (Query Dedup Stage)
101
+
102
+ The table below shows only the query-dedup impact on top of the previous rule-based filter.
103
+
104
+ | Subset | before | after | removed | removed_ratio |
105
+ | --- | ---: | ---: | ---: | ---: |
106
+ | `go-v1-pair-2M` | 1,992,985 | 1,541,111 | 451,874 | 22.67% |
107
+ | `go-v1-hard-negatives-100k` | 99,663 | 87,647 | 12,016 | 12.06% |
108
+ | `java-v1-pair-2M` | 1,752,593 | 1,491,655 | 260,938 | 14.89% |
109
+ | `java-v1-hard-negatives-100k` | 87,504 | 81,657 | 5,847 | 6.68% |
110
+ | `javascript-v1-pair-2M` | 1,960,276 | 1,310,965 | 649,311 | 33.12% |
111
+ | `javascript-v1-hard-negatives-100k` | 98,025 | 79,684 | 18,341 | 18.71% |
112
+ | `php-v1-pair-2M` | 1,710,537 | 1,343,442 | 367,095 | 21.46% |
113
+ | `php-v1-hard-negatives-100k` | 85,460 | 75,632 | 9,828 | 11.50% |
114
+ | `python-v1-pair-2M` | 1,990,051 | 1,807,480 | 182,571 | 9.17% |
115
+ | `python-v1-hard-negatives-100k` | 99,535 | 97,147 | 2,388 | 2.40% |
116
+ | `ruby-v1-pair-2M` | 1,583,047 | 1,175,219 | 407,828 | 25.76% |
117
+ | `ruby-v1-hard-negatives-100k` | 79,040 | 68,382 | 10,658 | 13.48% |
118
 
119
  ## Quick Usage
120
 
 
165
  - `"/ access modifiers changed from:"`
166
 
167
  2. Minimum positive-document length
168
+ A row is dropped if the positive side text is shorter than 30 characters.
169
+ - Pair configs: `pos` length >= 30 required
170
+ - Hard-negative configs: `pos` length >= 30 required
171
 
172
  3. Hard-negative validity constraint
173
  For hard-negative configs, at least one valid negative must remain after normalization (`min_negs = 1`).
174
 
175
+ 4. Query-level deduplication
176
+ Within each subset split, rows are grouped by exact `query` string.
177
+ - Keep the first occurrence
178
+ - Drop all later duplicates
179
+
180
  This filtering is purely rule-based (no model scoring), targeting high-noise templates and low-information positives while preserving broad retrieval coverage.