Massive Text Embedding Benchmark
Actively maintained. Last release 2 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install mteb
MTEB
Multimodal toolbox for evaluating embeddings and retrieval systems
Installation | Usage | Leaderboard | Documentation | Citing
Installation
You can install mteb simply using pip or uv. For more on installation please see the documentation.
pip install mteb
For faster installation, you can also use uv:
uv add mteb
Example Usage
Below we present a simple use-case example. For more information, see the documentation.
import mteb
from sentence_transformers import SentenceTransformer
# Select model
model_name = "sentence-transformers/all-MiniLM-L6-v2"
model = mteb.get_model(
model_name
) # if the model is not implemented in MTEB it will be eq. to SentenceTransformer(model_name)
# Select tasks
tasks = mteb.get_tasks(tasks=["Banking77Classification.v2"])
# evaluate
results = mteb.evaluate(model, tasks=tasks)
