File size: 10,406 Bytes
15566b9 b7762fe 06b7d95 784e874 9bfd902 c6c6670 fc77607 8d42940 460372e 76dd3d8 52b5bf0 22cfd78 e81af72 4435434 15566b9 2789e5d 4435434 dbca0b9 642d524 aed0714 15566b9 b7762fe 06b7d95 784e874 9bfd902 c6c6670 fc77607 8d42940 460372e 76dd3d8 52b5bf0 22cfd78 e81af72 15566b9 2789e5d 4435434 dbca0b9 642d524 aed0714 15566b9 25e0292 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
---
dataset_info:
- config_name: go-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 24219191
num_examples: 182440
download_size: 9956945
dataset_size: 24219191
- config_name: go-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 4796420
num_examples: 167288
- name: valid
num_bytes: 219619
num_examples: 7325
- name: test
num_bytes: 243580
num_examples: 8122
download_size: 2080283
dataset_size: 5259619
- config_name: go-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 83936111
num_examples: 182735
download_size: 34378576
dataset_size: 83936111
- config_name: java-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 38371455
num_examples: 180866
download_size: 15234087
dataset_size: 38371455
- config_name: java-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 4725470
num_examples: 164923
- name: valid
num_bytes: 155446
num_examples: 5183
- name: test
num_bytes: 328570
num_examples: 10955
download_size: 2059856
dataset_size: 5209486
- config_name: java-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 122471943
num_examples: 181061
download_size: 44431907
dataset_size: 122471943
- config_name: javascript-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 13615813
num_examples: 64854
download_size: 6024499
dataset_size: 13615813
- config_name: javascript-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 1602480
num_examples: 58025
- name: valid
num_bytes: 108764
num_examples: 3885
- name: test
num_bytes: 92079
num_examples: 3291
download_size: 743915
dataset_size: 1803323
- config_name: javascript-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 45694515
num_examples: 65201
download_size: 18551106
dataset_size: 45694515
- config_name: php-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 53006567
num_examples: 267725
download_size: 21441456
dataset_size: 53006567
- config_name: php-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 7015010
num_examples: 241241
- name: valid
num_bytes: 389351
num_examples: 12982
- name: test
num_bytes: 420329
num_examples: 14014
download_size: 3053625
dataset_size: 7824690
- config_name: php-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 173998597
num_examples: 268237
download_size: 62676806
dataset_size: 173998597
- config_name: python-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 82647410
num_examples: 280310
download_size: 33103044
dataset_size: 82647410
- config_name: python-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 7332380
num_examples: 251820
- name: valid
num_bytes: 417349
num_examples: 13914
- name: test
num_bytes: 447448
num_examples: 14918
download_size: 3194200
dataset_size: 8197177
- config_name: python-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 267462526
num_examples: 280652
download_size: 105273567
dataset_size: 267462526
- config_name: ruby-corpus
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: corpus
num_bytes: 7285353
num_examples: 27570
download_size: 3144098
dataset_size: 7285353
- config_name: ruby-qrels
features:
- name: query-id
dtype: string
- name: corpus-id
dtype: string
- name: score
dtype: int64
splits:
- name: train
num_bytes: 675736
num_examples: 24927
- name: valid
num_bytes: 39196
num_examples: 1400
- name: test
num_bytes: 35302
num_examples: 1261
download_size: 316865
dataset_size: 750234
- config_name: ruby-queries
features:
- name: _id
dtype: string
- name: title
dtype: string
- name: partition
dtype: string
- name: text
dtype: string
- name: language
dtype: string
- name: meta_information
struct:
- name: resource
dtype: string
splits:
- name: queries
num_bytes: 13895860
num_examples: 27588
download_size: 5834046
dataset_size: 13895860
configs:
- config_name: go-corpus
data_files:
- split: corpus
path: go-corpus/corpus-*
- config_name: go-qrels
data_files:
- split: train
path: go-qrels/train-*
- split: valid
path: go-qrels/valid-*
- split: test
path: go-qrels/test-*
- config_name: go-queries
data_files:
- split: queries
path: go-queries/queries-*
- config_name: java-corpus
data_files:
- split: corpus
path: java-corpus/corpus-*
- config_name: java-qrels
data_files:
- split: train
path: java-qrels/train-*
- split: valid
path: java-qrels/valid-*
- split: test
path: java-qrels/test-*
- config_name: java-queries
data_files:
- split: queries
path: java-queries/queries-*
- config_name: javascript-corpus
data_files:
- split: corpus
path: javascript-corpus/corpus-*
- config_name: javascript-qrels
data_files:
- split: train
path: javascript-qrels/train-*
- split: valid
path: javascript-qrels/valid-*
- split: test
path: javascript-qrels/test-*
- config_name: javascript-queries
data_files:
- split: queries
path: javascript-queries/queries-*
- config_name: php-corpus
data_files:
- split: corpus
path: php-corpus/corpus-*
- config_name: php-qrels
data_files:
- split: train
path: php-qrels/train-*
- split: valid
path: php-qrels/valid-*
- split: test
path: php-qrels/test-*
- config_name: php-queries
data_files:
- split: queries
path: php-queries/queries-*
- config_name: python-corpus
data_files:
- split: corpus
path: python-corpus/corpus-*
- config_name: python-qrels
data_files:
- split: train
path: python-qrels/train-*
- split: valid
path: python-qrels/valid-*
- split: test
path: python-qrels/test-*
- config_name: python-queries
data_files:
- split: queries
path: python-queries/queries-*
- config_name: ruby-corpus
data_files:
- split: corpus
path: ruby-corpus/corpus-*
- config_name: ruby-qrels
data_files:
- split: train
path: ruby-qrels/train-*
- split: valid
path: ruby-qrels/valid-*
- split: test
path: ruby-qrels/test-*
- config_name: ruby-queries
data_files:
- split: queries
path: ruby-queries/queries-*
---
Employing the MTEB evaluation framework's dataset version, utilize the code below for assessment:
```python
import mteb
import logging
from sentence_transformers import SentenceTransformer
from mteb import MTEB
logger = logging.getLogger(__name__)
model_name = 'intfloat/e5-base-v2'
model = SentenceTransformer(model_name)
tasks = mteb.get_tasks(
tasks=[
"AppsRetrieval",
"CodeFeedbackMT",
"CodeFeedbackST",
"CodeTransOceanContest",
"CodeTransOceanDL",
"CosQA",
"SyntheticText2SQL",
"StackOverflowQA",
"COIRCodeSearchNetRetrieval",
"CodeSearchNetCCRetrieval",
]
)
evaluation = MTEB(tasks=tasks)
results = evaluation.run(
model=model,
overwrite_results=True
)
print(result)
``` |