|
|
--- |
|
|
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) |
|
|
``` |