Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -10,10 +10,7 @@ dataset_info:
|
|
| 10 |
list: string
|
| 11 |
splits:
|
| 12 |
- name: train
|
| 13 |
-
num_bytes: 332627048
|
| 14 |
num_examples: 87536
|
| 15 |
-
download_size: 152789447
|
| 16 |
-
dataset_size: 332627048
|
| 17 |
- config_name: go-v1-pair-2M
|
| 18 |
features:
|
| 19 |
- name: query
|
|
@@ -22,10 +19,7 @@ dataset_info:
|
|
| 22 |
dtype: string
|
| 23 |
splits:
|
| 24 |
- name: train
|
| 25 |
-
num_bytes: 855194988
|
| 26 |
num_examples: 1532319
|
| 27 |
-
download_size: 371361455
|
| 28 |
-
dataset_size: 855194988
|
| 29 |
- config_name: java-v1-hard-negatives-100k
|
| 30 |
features:
|
| 31 |
- name: query
|
|
@@ -36,10 +30,7 @@ dataset_info:
|
|
| 36 |
list: string
|
| 37 |
splits:
|
| 38 |
- name: train
|
| 39 |
-
num_bytes: 327677194
|
| 40 |
num_examples: 80906
|
| 41 |
-
download_size: 121324000
|
| 42 |
-
dataset_size: 327677194
|
| 43 |
- config_name: java-v1-pair-2M
|
| 44 |
features:
|
| 45 |
- name: query
|
|
@@ -48,10 +39,7 @@ dataset_info:
|
|
| 48 |
dtype: string
|
| 49 |
splits:
|
| 50 |
- name: train
|
| 51 |
-
num_bytes: 1015086964
|
| 52 |
num_examples: 1456651
|
| 53 |
-
download_size: 396953392
|
| 54 |
-
dataset_size: 1015086964
|
| 55 |
- config_name: javascript-v1-hard-negatives-100k
|
| 56 |
features:
|
| 57 |
- name: query
|
|
@@ -62,10 +50,7 @@ dataset_info:
|
|
| 62 |
list: string
|
| 63 |
splits:
|
| 64 |
- name: train
|
| 65 |
-
num_bytes: 408914607
|
| 66 |
num_examples: 79484
|
| 67 |
-
download_size: 176447985
|
| 68 |
-
dataset_size: 408914607
|
| 69 |
- config_name: javascript-v1-pair-2M
|
| 70 |
features:
|
| 71 |
- name: query
|
|
@@ -74,10 +59,7 @@ dataset_info:
|
|
| 74 |
dtype: string
|
| 75 |
splits:
|
| 76 |
- name: train
|
| 77 |
-
num_bytes: 1084716629
|
| 78 |
num_examples: 1298745
|
| 79 |
-
download_size: 467742815
|
| 80 |
-
dataset_size: 1084716629
|
| 81 |
- config_name: php-v1-hard-negatives-100k
|
| 82 |
features:
|
| 83 |
- name: query
|
|
@@ -88,10 +70,7 @@ dataset_info:
|
|
| 88 |
list: string
|
| 89 |
splits:
|
| 90 |
- name: train
|
| 91 |
-
num_bytes: 368842521
|
| 92 |
num_examples: 74945
|
| 93 |
-
download_size: 149769432
|
| 94 |
-
dataset_size: 368842521
|
| 95 |
- config_name: php-v1-pair-2M
|
| 96 |
features:
|
| 97 |
- name: query
|
|
@@ -100,10 +79,7 @@ dataset_info:
|
|
| 100 |
dtype: string
|
| 101 |
splits:
|
| 102 |
- name: train
|
| 103 |
-
num_bytes: 993459020
|
| 104 |
num_examples: 1311302
|
| 105 |
-
download_size: 405251406
|
| 106 |
-
dataset_size: 993459020
|
| 107 |
- config_name: python-v1-hard-negatives-100k
|
| 108 |
features:
|
| 109 |
- name: query
|
|
@@ -114,10 +90,7 @@ dataset_info:
|
|
| 114 |
list: string
|
| 115 |
splits:
|
| 116 |
- name: train
|
| 117 |
-
num_bytes: 417682840
|
| 118 |
num_examples: 96670
|
| 119 |
-
download_size: 181218116
|
| 120 |
-
dataset_size: 417682840
|
| 121 |
- config_name: python-v1-pair-2M
|
| 122 |
features:
|
| 123 |
- name: query
|
|
@@ -126,10 +99,7 @@ dataset_info:
|
|
| 126 |
dtype: string
|
| 127 |
splits:
|
| 128 |
- name: train
|
| 129 |
-
num_bytes: 1338680922
|
| 130 |
num_examples: 1779891
|
| 131 |
-
download_size: 593332698
|
| 132 |
-
dataset_size: 1338680922
|
| 133 |
- config_name: ruby-v1-hard-negatives-100k
|
| 134 |
features:
|
| 135 |
- name: query
|
|
@@ -140,10 +110,7 @@ dataset_info:
|
|
| 140 |
list: string
|
| 141 |
splits:
|
| 142 |
- name: train
|
| 143 |
-
num_bytes: 162232900
|
| 144 |
num_examples: 67937
|
| 145 |
-
download_size: 75638556
|
| 146 |
-
dataset_size: 162232900
|
| 147 |
- config_name: ruby-v1-pair-2M
|
| 148 |
features:
|
| 149 |
- name: query
|
|
@@ -152,10 +119,7 @@ dataset_info:
|
|
| 152 |
dtype: string
|
| 153 |
splits:
|
| 154 |
- name: train
|
| 155 |
-
num_bytes: 541359997
|
| 156 |
num_examples: 1145414
|
| 157 |
-
download_size: 245183601
|
| 158 |
-
dataset_size: 541359997
|
| 159 |
configs:
|
| 160 |
- config_name: go-v1-hard-negatives-100k
|
| 161 |
data_files:
|
|
@@ -224,7 +188,8 @@ If you need large-scale data (not samples), please refer to the original CoRNSta
|
|
| 224 |
|
| 225 |
This release keeps the original subset layout (6 languages x pair + hard-negatives) and applies deterministic rule-based filtering.
|
| 226 |
|
| 227 |
-
In this revision, query-level deduplication
|
|
|
|
| 228 |
|
| 229 |
## Config Layout And Schema
|
| 230 |
|
|
@@ -236,50 +201,55 @@ Schema:
|
|
| 236 |
- Pair configs: `query`, `pos`
|
| 237 |
- Hard-negative configs: `query`, `pos`, `negs` (list[string])
|
| 238 |
|
| 239 |
-
## Subsets And Row Counts (After Filter + Query Dedup)
|
| 240 |
|
| 241 |
Note: subset names keep the original `2M` / `100k` naming convention for compatibility, but
|
| 242 |
actual row counts vary by language and can be substantially lower after quality filtering and
|
| 243 |
-
|
| 244 |
|
| 245 |
| Subset (config name) | split | num_examples |
|
| 246 |
| --- | --- | ---: |
|
| 247 |
-
| `go-v1-pair-2M` | `train` | 1,
|
| 248 |
-
| `go-v1-hard-negatives-100k` | `train` | 87,
|
| 249 |
-
| `java-v1-pair-2M` | `train` | 1,
|
| 250 |
-
| `java-v1-hard-negatives-100k` | `train` |
|
| 251 |
-
| `javascript-v1-pair-2M` | `train` | 1,
|
| 252 |
-
| `javascript-v1-hard-negatives-100k` | `train` | 79,
|
| 253 |
-
| `php-v1-pair-2M` | `train` | 1,
|
| 254 |
-
| `php-v1-hard-negatives-100k` | `train` |
|
| 255 |
-
| `python-v1-pair-2M` | `train` | 1,
|
| 256 |
-
| `python-v1-hard-negatives-100k` | `train` |
|
| 257 |
-
| `ruby-v1-pair-2M` | `train` | 1,
|
| 258 |
-
| `ruby-v1-hard-negatives-100k` | `train` |
|
| 259 |
|
| 260 |
Total rows:
|
| 261 |
-
- Pair: 8,
|
| 262 |
-
- Hard-negatives:
|
| 263 |
-
- Overall: 9,
|
| 264 |
|
| 265 |
-
##
|
| 266 |
|
| 267 |
-
The table below shows
|
| 268 |
|
| 269 |
| Subset | before | after | removed | removed_ratio |
|
| 270 |
| --- | ---: | ---: | ---: | ---: |
|
| 271 |
-
| `go-v1-pair-2M` | 1,
|
| 272 |
-
| `go-v1-hard-negatives-100k` |
|
| 273 |
-
| `java-v1-pair-2M` | 1,
|
| 274 |
-
| `java-v1-hard-negatives-100k` |
|
| 275 |
-
| `javascript-v1-pair-2M` | 1,
|
| 276 |
-
| `javascript-v1-hard-negatives-100k` |
|
| 277 |
-
| `php-v1-pair-2M` | 1,
|
| 278 |
-
| `php-v1-hard-negatives-100k` |
|
| 279 |
-
| `python-v1-pair-2M` | 1,
|
| 280 |
-
| `python-v1-hard-negatives-100k` |
|
| 281 |
-
| `ruby-v1-pair-2M` | 1,
|
| 282 |
-
| `ruby-v1-hard-negatives-100k` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
|
| 284 |
## Quick Usage
|
| 285 |
|
|
@@ -342,4 +312,9 @@ Within each subset split, rows are grouped by exact `query` string.
|
|
| 342 |
- Keep the first occurrence
|
| 343 |
- Drop all later duplicates
|
| 344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
This filtering is purely rule-based (no model scoring), targeting high-noise templates and low-information positives while preserving broad retrieval coverage.
|
|
|
|
| 10 |
list: string
|
| 11 |
splits:
|
| 12 |
- name: train
|
|
|
|
| 13 |
num_examples: 87536
|
|
|
|
|
|
|
| 14 |
- config_name: go-v1-pair-2M
|
| 15 |
features:
|
| 16 |
- name: query
|
|
|
|
| 19 |
dtype: string
|
| 20 |
splits:
|
| 21 |
- name: train
|
|
|
|
| 22 |
num_examples: 1532319
|
|
|
|
|
|
|
| 23 |
- config_name: java-v1-hard-negatives-100k
|
| 24 |
features:
|
| 25 |
- name: query
|
|
|
|
| 30 |
list: string
|
| 31 |
splits:
|
| 32 |
- name: train
|
|
|
|
| 33 |
num_examples: 80906
|
|
|
|
|
|
|
| 34 |
- config_name: java-v1-pair-2M
|
| 35 |
features:
|
| 36 |
- name: query
|
|
|
|
| 39 |
dtype: string
|
| 40 |
splits:
|
| 41 |
- name: train
|
|
|
|
| 42 |
num_examples: 1456651
|
|
|
|
|
|
|
| 43 |
- config_name: javascript-v1-hard-negatives-100k
|
| 44 |
features:
|
| 45 |
- name: query
|
|
|
|
| 50 |
list: string
|
| 51 |
splits:
|
| 52 |
- name: train
|
|
|
|
| 53 |
num_examples: 79484
|
|
|
|
|
|
|
| 54 |
- config_name: javascript-v1-pair-2M
|
| 55 |
features:
|
| 56 |
- name: query
|
|
|
|
| 59 |
dtype: string
|
| 60 |
splits:
|
| 61 |
- name: train
|
|
|
|
| 62 |
num_examples: 1298745
|
|
|
|
|
|
|
| 63 |
- config_name: php-v1-hard-negatives-100k
|
| 64 |
features:
|
| 65 |
- name: query
|
|
|
|
| 70 |
list: string
|
| 71 |
splits:
|
| 72 |
- name: train
|
|
|
|
| 73 |
num_examples: 74945
|
|
|
|
|
|
|
| 74 |
- config_name: php-v1-pair-2M
|
| 75 |
features:
|
| 76 |
- name: query
|
|
|
|
| 79 |
dtype: string
|
| 80 |
splits:
|
| 81 |
- name: train
|
|
|
|
| 82 |
num_examples: 1311302
|
|
|
|
|
|
|
| 83 |
- config_name: python-v1-hard-negatives-100k
|
| 84 |
features:
|
| 85 |
- name: query
|
|
|
|
| 90 |
list: string
|
| 91 |
splits:
|
| 92 |
- name: train
|
|
|
|
| 93 |
num_examples: 96670
|
|
|
|
|
|
|
| 94 |
- config_name: python-v1-pair-2M
|
| 95 |
features:
|
| 96 |
- name: query
|
|
|
|
| 99 |
dtype: string
|
| 100 |
splits:
|
| 101 |
- name: train
|
|
|
|
| 102 |
num_examples: 1779891
|
|
|
|
|
|
|
| 103 |
- config_name: ruby-v1-hard-negatives-100k
|
| 104 |
features:
|
| 105 |
- name: query
|
|
|
|
| 110 |
list: string
|
| 111 |
splits:
|
| 112 |
- name: train
|
|
|
|
| 113 |
num_examples: 67937
|
|
|
|
|
|
|
| 114 |
- config_name: ruby-v1-pair-2M
|
| 115 |
features:
|
| 116 |
- name: query
|
|
|
|
| 119 |
dtype: string
|
| 120 |
splits:
|
| 121 |
- name: train
|
|
|
|
| 122 |
num_examples: 1145414
|
|
|
|
|
|
|
| 123 |
configs:
|
| 124 |
- config_name: go-v1-hard-negatives-100k
|
| 125 |
data_files:
|
|
|
|
| 188 |
|
| 189 |
This release keeps the original subset layout (6 languages x pair + hard-negatives) and applies deterministic rule-based filtering.
|
| 190 |
|
| 191 |
+
In this revision, query-level deduplication and positive-document (`pos`) deduplication are applied per subset.
|
| 192 |
+
For both rules, if duplicates exist, only the first row is kept.
|
| 193 |
|
| 194 |
## Config Layout And Schema
|
| 195 |
|
|
|
|
| 201 |
- Pair configs: `query`, `pos`
|
| 202 |
- Hard-negative configs: `query`, `pos`, `negs` (list[string])
|
| 203 |
|
| 204 |
+
## Subsets And Row Counts (After Filter + Query Dedup + Pos Dedup)
|
| 205 |
|
| 206 |
Note: subset names keep the original `2M` / `100k` naming convention for compatibility, but
|
| 207 |
actual row counts vary by language and can be substantially lower after quality filtering and
|
| 208 |
+
deduplication.
|
| 209 |
|
| 210 |
| Subset (config name) | split | num_examples |
|
| 211 |
| --- | --- | ---: |
|
| 212 |
+
| `go-v1-pair-2M` | `train` | 1,532,319 |
|
| 213 |
+
| `go-v1-hard-negatives-100k` | `train` | 87,536 |
|
| 214 |
+
| `java-v1-pair-2M` | `train` | 1,456,651 |
|
| 215 |
+
| `java-v1-hard-negatives-100k` | `train` | 80,906 |
|
| 216 |
+
| `javascript-v1-pair-2M` | `train` | 1,298,745 |
|
| 217 |
+
| `javascript-v1-hard-negatives-100k` | `train` | 79,484 |
|
| 218 |
+
| `php-v1-pair-2M` | `train` | 1,311,302 |
|
| 219 |
+
| `php-v1-hard-negatives-100k` | `train` | 74,945 |
|
| 220 |
+
| `python-v1-pair-2M` | `train` | 1,779,891 |
|
| 221 |
+
| `python-v1-hard-negatives-100k` | `train` | 96,670 |
|
| 222 |
+
| `ruby-v1-pair-2M` | `train` | 1,145,414 |
|
| 223 |
+
| `ruby-v1-hard-negatives-100k` | `train` | 67,937 |
|
| 224 |
|
| 225 |
Total rows:
|
| 226 |
+
- Pair: 8,524,322
|
| 227 |
+
- Hard-negatives: 487,478
|
| 228 |
+
- Overall: 9,011,800
|
| 229 |
|
| 230 |
+
## Dedup Impact (Pos Dedup Stage)
|
| 231 |
|
| 232 |
+
The table below shows the `pos`-dedup impact on top of the previous filtered + query-deduped data.
|
| 233 |
|
| 234 |
| Subset | before | after | removed | removed_ratio |
|
| 235 |
| --- | ---: | ---: | ---: | ---: |
|
| 236 |
+
| `go-v1-pair-2M` | 1,541,111 | 1,532,319 | 8,792 | 0.57% |
|
| 237 |
+
| `go-v1-hard-negatives-100k` | 87,647 | 87,536 | 111 | 0.13% |
|
| 238 |
+
| `java-v1-pair-2M` | 1,491,655 | 1,456,651 | 35,004 | 2.35% |
|
| 239 |
+
| `java-v1-hard-negatives-100k` | 81,657 | 80,906 | 751 | 0.92% |
|
| 240 |
+
| `javascript-v1-pair-2M` | 1,310,965 | 1,298,745 | 12,220 | 0.93% |
|
| 241 |
+
| `javascript-v1-hard-negatives-100k` | 79,684 | 79,484 | 200 | 0.25% |
|
| 242 |
+
| `php-v1-pair-2M` | 1,343,442 | 1,311,302 | 32,140 | 2.39% |
|
| 243 |
+
| `php-v1-hard-negatives-100k` | 75,632 | 74,945 | 687 | 0.91% |
|
| 244 |
+
| `python-v1-pair-2M` | 1,807,480 | 1,779,891 | 27,589 | 1.53% |
|
| 245 |
+
| `python-v1-hard-negatives-100k` | 97,147 | 96,670 | 477 | 0.49% |
|
| 246 |
+
| `ruby-v1-pair-2M` | 1,175,219 | 1,145,414 | 29,805 | 2.54% |
|
| 247 |
+
| `ruby-v1-hard-negatives-100k` | 68,382 | 67,937 | 445 | 0.65% |
|
| 248 |
+
|
| 249 |
+
Stage totals:
|
| 250 |
+
- Pair removed by pos dedup: 145,550 (1.68%)
|
| 251 |
+
- Hard-negatives removed by pos dedup: 2,671 (0.54%)
|
| 252 |
+
- Overall removed by pos dedup: 148,221 (1.62%)
|
| 253 |
|
| 254 |
## Quick Usage
|
| 255 |
|
|
|
|
| 312 |
- Keep the first occurrence
|
| 313 |
- Drop all later duplicates
|
| 314 |
|
| 315 |
+
5. Positive-document (`pos`) deduplication
|
| 316 |
+
Within each subset split, rows are grouped by exact `pos` string.
|
| 317 |
+
- Keep the first occurrence
|
| 318 |
+
- Drop all later duplicates
|
| 319 |
+
|
| 320 |
This filtering is purely rule-based (no model scoring), targeting high-noise templates and low-information positives while preserving broad retrieval coverage.
|