SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.07316 · 2022

MTEB: Massive Text Embedding Benchmark

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2210.07316.json · badge: /api/ran/2210.07316.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
basf/chemteb community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
wadoodabdul/clinical_ner_benchmark community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
lyon-nlp/mteb-french extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
climsocana/tecb-de extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
author_from_bibtex Ran
ran; our contract draft was wrong, not the code
lyon-nlp/mteb-french/docs/create_tasks_table.py
code served (permissive licence) · get_code("a6387592d489006d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Test case 1: Valid bibtex with single author
bibtex_single = """
@article{smith2020,
  author = {Smith, John},
  year = {2020},
  title = {A Great Paper}
}
"""

# Test case 2: Valid bibtex with multiple authors
bibtex_multiple = """
@article{doe2021,
  author = {Doe, Jane and Smith, Bob and Johnson, Alice},
  year = {2021},
  title = {Another Paper}
}
"""

# Test case 3: Valid bibtex with author having multiple parts (first and last name)
bibtex_complex = """
@inproceedings{brown2019,
  author = {Brown, Michael and Davis, Sarah},
  year = {2019},
  title = {Complex Paper}
}
"""

# Test case 4: Bibtex with newlines in author field
bibtex_newlines = """
@article{wilson2022,
  author = {Wilson,
            Robert},
  year = {2022},
  title = {Paper with Newlines}
}
"""

# Test case 5: None input
bibtex_none = None

# Test case 6: Bibtex missing author field
bibtex_no_author = """
@article{unknown2020,
  year = {2020},
  title = {No Author Paper}
}
"""

# Test case 7: Bibtex missing year field
bibtex_no_year = """
@article{smith2020,
  author = {Smith, John},
  title = {No Year Paper}
}
"""

# Use one of the test cases for ARGS
ARGS = {'bibtex': bibtex_multiple}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_entity_result_to_dict Ran
ran on a synthesized input
wadoodabdul/clinical_ner_benchmark/clinical_ner/models/external_services.py
code served (permissive licence) · get_code("d0cfb4bec01fd26e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class MockDataSource:
    def __init__(self, name, value):
        self.name = name
        self.value = value

class MockAssertion:
    def __init__(self, assertion_type, confidence):
        self.assertion_type = assertion_type
        self.confidence = confidence

class MockAzureEntityResult:
    def __init__(self, data_sources=None, assertion=None):
        self.data_sources = data_sources or []
        self.assertion = assertion
        self.entity_name = "test_entity"
        self.entity_id = "12345"

# Test case 1: Empty data_sources and no assertion
azure_entity_result_1 = MockAzureEntityResult(
    data_sources=None,
    assertion=None
)

# Test case 2: With data_sources as objects and assertion as object
ds1 = MockDataSource("source1", "value1")
ds2 = MockDataSource("source2", "value2")
assertion = MockAssertion("present", 0.95)

azure_entity_result_2 = MockAzureEntityResult(
    data_sources=[ds1, ds2],
    assertion=assertion
)

# Use the more comprehensive test case
ARGS = {
    "azure_entity_result": azure_entity_result_2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_relation_result_to_dict Ran
ran on a synthesized input
wadoodabdul/clinical_ner_benchmark/clinical_ner/models/external_services.py
code served (permissive licence) · get_code("ea79f7322128c1a4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn


# Create mock classes mimicking Azure SDK structure
class MockDataSource:
    def __init__(self, name="source1"):
        self.name = name
        self.id = "ds_001"


class MockAssertion:
    def __init__(self, state="present"):
        self.state = state
        self.confidence = 0.95


class MockEntityResult:
    def __init__(self, text="disease", category="MedicalCondition"):
        self.text = text
        self.category = category
        self.offset = 0
        self.length = 7
        self.confidence_score = 0.98
        self.data_sources = [MockDataSource("source1"), MockDataSource("source2")]
        self.assertion = MockAssertion("present")


class MockRelationRole:
    def __init__(self, name="subject", entity=None):
        self.name = name
        self.entity = entity if entity is not None else MockEntityResult("patient", "Patient")


class MockRelationResult:
    def __init__(self):
        self.relation_type = "diagnoses"
        self.confidence_score = 0.92
        self.roles = [
            MockRelationRole("subject", MockEntityResult("patient", "Patient")),
            MockRelationRole("object", MockEntityResult("hypertension", "MedicalCondition"))
        ]


# Build the argument
mock_relation_result = MockRelationResult()

ARGS = {
    "relation_result": mock_relation_result
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_relation_role_to_dict Ran
ran on a synthesized input
wadoodabdul/clinical_ner_benchmark/clinical_ner/models/external_services.py
code served (permissive licence) · get_code("af950c1fd3fc41f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

class MockDataSource:
    def __init__(self, name):
        self.name = name
        self.id = "ds_123"

class MockAssertion:
    def __init__(self):
        self.condition = "present"
        self.value = "normal"

class MockEntity:
    def __init__(self):
        self.text = "diabetes"
        self.category = "MedicalCondition"
        self.confidence = 0.95
        self.offset = 10
        self.length = 8
        self.assertion = MockAssertion()
        self.data_sources = [MockDataSource("source1"), MockDataSource("source2")]

class MockRelationRole:
    def __init__(self):
        self.name = "subject"
        self.entity = MockEntity()

entity_result = MockEntity()
relation_role = MockRelationRole()

ARGS = {
    'relation_role': relation_role
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dynamic_description Ran
ran; our contract draft was wrong, not the code
climsocana/tecb-de/scripts/ClusteringTasks.py
code served (permissive licence) · get_code("f96d5919bcde7ff1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned property. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from typing import Callable, Optional, TypeVar
from typing_extensions import ParamSpec

T = TypeVar('T')
P = ParamSpec('P')

# The decorator expects a callable that takes self and returns a dict
# The wrapper accesses self.dim_red, self.clustering_alg, and self.clustering_params

class MockObject:
    def __init__(self):
        self.dim_red = 'pca'
        self.clustering_alg = 'kmeans'
        self.clustering_params = {'n_clusters': 5, 'max_iter': 100}
    
    def get_description(self):
        return {'name': 'test_method', 'type': 'clustering'}

# Create a method that matches the expected signature
def sample_method(self) -> dict:
    return {'name': 'base_name', 'type': 'algorithm'}

ARGS = {
    'd': sample_method
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
typing_extensions — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type property — a property output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a property output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
json_cache Ran
ran on a synthesized input
basf/chemteb/mteb/caching.py
code served (permissive licence) · get_code("409b63f4c40356f8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from typing import Callable

# Define a simple test function to be decorated
def add_numbers(a, b):
    """Simple function that adds two numbers"""
    return a + b

# The json_cache function takes one parameter: function
# We need to provide a callable that is JSON-serializable in its arguments

ARGS = {
    'function': add_numbers
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
json_parser Ran
ran on a synthesized input
basf/chemteb/chem_eval.py
code served (permissive licence) · get_code("1148bdb592e8be7b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function to understand what it needs:
# - data: a dict with 'task_name' key and 'scores' key
# - data['scores']: a dict with 'test' key
# - data['scores']['test']: a list with at least one element
# - data['scores']['test'][0]: a dict with 'main_score' key
# - task_name can end with: 'PC', 'Classification', 'BM', 'BitextMining', 'Retrieval', 'Clustering'

# Create test data for each task type to verify the function works
# Let's use a 'PC' (PairClassification) task

data = {
    'task_name': 'STS12PC',
    'scores': {
        'test': [
            {
                'main_score': 0.8765
            }
        ]
    }
}

ARGS = {
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_model_name Ran
ran on a synthesized input
basf/chemteb/mteb/create_meta.py
code served (permissive licence) · get_code("e39c65ac4f971b50")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import json
from pathlib import Path

# Create a temporary directory to act as results_folder
temp_dir = tempfile.mkdtemp()
results_folder = Path(temp_dir)

# Create a model_meta.json file with a model name
model_meta = {'name': 'test_model_v1'}
meta_file = results_folder / 'model_meta.json'
with meta_file.open('w') as f:
    json.dump(model_meta, f)

ARGS = {
    'results_folder': results_folder
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_dataset_wise_config Ran
ran on a synthesized input
wadoodabdul/clinical_ner_benchmark/clinical_ner/leaderboard.py
code served (permissive licence) · get_code("d074452494f2429a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'config': {
        'inference_config': {
            'label_normalization_map': {
                'NCBI': {'entity_type_1': 'normalized_1'},
                'CHIA': {'entity_type_2': 'normalized_2'},
                'BIORED': {'entity_type_3': 'normalized_3'},
                'BC5CDR': {'entity_type_4': 'normalized_4'},
            },
            'prompt_template_identifier': 'template_v1',
        },
        'model_architecture': 'Decoder',
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_json Ran
ran; our contract draft was wrong, not the code
basf/chemteb/chem_eval.py
code served (permissive licence) · get_code("c5bcf01d18bba63d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSON file with test data
temp_dir = tempfile.mkdtemp()
test_json_path = os.path.join(temp_dir, "test.json")

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(test_json_path, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "path": test_json_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collect_similar_tasks Not yet run
unverified (harvested, no recorded run)
basf/chemteb/mteb/model_meta.py
code served (permissive licence) · get_code("0eaecccd1af4ee2c")
How it ran

no invocation recorded.

is_run_available Not yet run
unverified (harvested, no recorded run)
basf/chemteb/chem_eval.py
code served (permissive licence) · get_code("154ef00e54299835")
How it ran

no invocation recorded.

load_ner_processor Not yet run
unverified (harvested, no recorded run)
wadoodabdul/clinical_ner_benchmark/clinical_ner/models/model_loader.py
code served (permissive licence) · get_code("b6a18e851274372a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
read_json 21 other papers
21 later
2304.08177 (2023-04)
Efficient and Effective Text Encoding for Chinese LLaMA and Alpaca
2304.14454 (2023-04)
PMC-LLaMA: Towards Building Open-source Language Models for Medicine
2305.13718 (2023-05)
Exploring Self-supervised Logic-enhanced Training for Large Language Models
and 18 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Text embeddings are commonly evaluated on a small set of datasets from a single task not covering their possible applications to other tasks. It is unclear whether state-of-the-art embeddings on semantic textual similarity (STS) can be equally well applied to other tasks like clustering or reranking. This makes progress in the field difficult to track, as various models are constantly being proposed without proper evaluation. To solve this problem, we introduce the Massive Text Embedding Benchmark (MTEB). MTEB spans 8 embedding tasks covering a total of 58 datasets and 112 languages. Through the benchmarking of 33 models on MTEB, we establish the most comprehensive benchmark of text embeddings to date. We find that no particular text embedding method dominates across all tasks. This suggests that the field has yet to converge on a universal text embedding method and scale it up sufficiently to provide state-of-the-art results on all embedding tasks. MTEB comes with open-source code and a public leaderboard at https://github.com/embeddings-benchmark/mteb.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2210.07316")
get_code_for_paper("2210.07316")
have("2210.07316")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2210.07316.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2210.07316.svg)](https://syntology.ai/paper/2210.07316)

Connect an agent — have() is free.