mteb-2.9.1


توضیحات

Massive Text Embedding Benchmark
ویژگی مقدار
سیستم عامل OS Independent
نام فایل mteb-2.9.1
نام mteb
نسخه کتابخانه 2.9.1
نگهدارنده []
ایمیل نگهدارنده ['Kenneth Enevoldsen <kenneth.enevoldsen@cas.au.dk>, Roman Solomatin <risolomatin@gmail.com>, Isaac Chung <chungisaac1217@gmail.com>']
نویسنده -
ایمیل نویسنده MTEB Contributors <niklas@huggingface.co>, Kenneth Enevoldsen <kenneth.enevoldsen@cas.au.dk>, Nouamane Tazi <nouamane@huggingface.co>, Nils Reimers <info@nils-reimers.de>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/mteb/
مجوز -
<h1 align="center"> <img src="https://github.com/embeddings-benchmark/mteb/blob/main/docs/images/logos/mteb_logo/dots-icon.png?raw=true" alt="MTEB" width="28" style="vertical-align: middle; margin-right: 10px;"/> MTEB </h1> <h3 align="center" style="border-bottom: none;">Multimodal toolbox for evaluating embeddings and retrieval systems</h3> <p align="center"> <a href="https://github.com/embeddings-benchmark/mteb/releases"> <img alt="GitHub release" src="https://img.shields.io/github/release/embeddings-benchmark/mteb.svg"> </a> <a href="https://github.com/embeddings-benchmark/mteb/blob/master/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/embeddings-benchmark/mteb.svg?color=green"> </a> <a href="https://pepy.tech/project/mteb"> <img alt="Downloads" src="https://static.pepy.tech/personalized-badge/mteb?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads"> </a> </p> <h4 align="center"> <p> <a href="https://embeddings-benchmark.github.io/mteb/installation/">Installation</a> | <a href="https://embeddings-benchmark.github.io/mteb/">Usage</a> | <a href="https://huggingface.co/spaces/mteb/leaderboard">Leaderboard</a> | <a href="https://embeddings-benchmark.github.io/mteb/">Documentation</a> | <a href="#citing">Citing</a> </p> </h4> <h3 align="center"> <a href="https://huggingface.co/spaces/mteb/leaderboard"><img style="float: middle; padding: 10px 10px 10px 10px;" width="60" height="55" src="https://github.com/embeddings-benchmark/mteb/blob/main/docs/images/logos/hf_logo.png?raw=true" /></a> </h3> ## Installation You can install mteb simply using pip or uv. For more on installation please see the [documentation](https://embeddings-benchmark.github.io/mteb/installation/). ```bash pip install mteb ``` For faster installation, you can also use [uv](https://docs.astral.sh/uv/): ```bash uv add mteb ``` ## Example Usage Below we present a simple use-case example. For more information, see the [documentation](https://embeddings-benchmark.github.io/mteb/). ```python 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) ``` You can also run it using the CLI: ```bash mteb run \ -m sentence-transformers/all-MiniLM-L6-v2 \ -t "Banking77Classification.v2" \ --output-folder results ``` For more on how to use the CLI check out the [related documentation](https://embeddings-benchmark.github.io/mteb/get_started/usage/cli/). ## Overview | Overview | | |--------------------------------|--------------------------------------------------------------------------------------| | 📈 [Leaderboard] | The interactive leaderboard of the benchmark | | **Get Started**. | | | 🏃 [Get Started] | Overview of how to use mteb | | 🤖 [Defining Models] | How to use existing model and define custom ones | | 📋 [Selecting tasks] | How to select tasks, benchmarks, splits etc. | | 🏭 [Running Evaluation] | How to run the evaluations, including cache management, speeding up evaluations etc. | | 📊 [Loading Results] | How to load and work with existing model results | | **Overview**. | | | 📋 [Tasks] | Overview of available tasks | | 📐 [Benchmarks] | Overview of available benchmarks | | 🤖 [Models] | Overview of available Models | | **Contributing** | | | 🤖 [Adding a model] | How to submit a model to MTEB and to the leaderboard | | 👩‍💻 [Adding a dataset] | How to add a new task/dataset to MTEB | | 👩‍💻 [Adding a benchmark] | How to add a new benchmark to MTEB and to the leaderboard | | 🤝 [Contributing] | How to contribute to MTEB and set it up for development | [Get Started]: https://embeddings-benchmark.github.io/mteb/ [Defining Models]: https://embeddings-benchmark.github.io/mteb/get_started/usage/defining_the_model/ [Selecting tasks]: https://embeddings-benchmark.github.io/mteb/get_started/usage/selecting_tasks/ [Running Evaluation]: https://embeddings-benchmark.github.io/mteb/get_started/usage/running_the_evaluation/ [Loading Results]: https://embeddings-benchmark.github.io/mteb/get_started/usage/loading_results/ [Tasks]: https://embeddings-benchmark.github.io/mteb/overview/available_tasks/retrieval/ [Benchmarks]: https://embeddings-benchmark.github.io/mteb/overview/available_benchmarks/ [Models]: https://embeddings-benchmark.github.io/mteb/overview/available_models/text/ [Contributing]: https://embeddings-benchmark.github.io/mteb/CONTRIBUTING/ [Adding a model]: https://embeddings-benchmark.github.io/mteb/contributing/adding_a_model/ [Adding a dataset]: https://embeddings-benchmark.github.io/mteb/contributing/adding_a_dataset/ [Adding a benchmark]: https://embeddings-benchmark.github.io/mteb/contributing/adding_a_benchmark/ [Leaderboard]: https://huggingface.co/spaces/mteb/leaderboard ## Citing MTEB was introduced in "[MTEB: Massive Text Embedding Benchmark](https://arxiv.org/abs/2210.07316)", and heavily expanded in "[MMTEB: Massive Multilingual Text Embedding Benchmark](https://arxiv.org/abs/2502.13595)". When using `mteb`, we recommend that you cite both articles. <details> <summary> Bibtex Citation (click to unfold) </summary> ```bibtex @article{muennighoff2022mteb, author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Loïc and Reimers, Nils}, title = {MTEB: Massive Text Embedding Benchmark}, publisher = {arXiv}, journal={arXiv preprint arXiv:2210.07316}, year = {2022}, url = {https://arxiv.org/abs/2210.07316}, doi = {10.48550/ARXIV.2210.07316}, } @article{enevoldsen2025mmtebmassivemultilingualtext, title={MMTEB: Massive Multilingual Text Embedding Benchmark}, author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff}, publisher = {arXiv}, journal={arXiv preprint arXiv:2502.13595}, year={2025}, url={https://arxiv.org/abs/2502.13595}, doi = {10.48550/arXiv.2502.13595}, } ``` </details> If you use any of the specific benchmarks, we also recommend that you cite the authors of both the benchmark and its tasks: ```py benchmark = mteb.get_benchmark("MTEB(eng, v2)") benchmark.citation # get citation for a specific benchmark # you can also create a table of the task for the appendix using: benchmark.tasks.to_latex() ```


نیازمندی

مقدار نام
- datasets>=2.19.0
- numpy<3.0.0,>=1.23.0
- requests>=2.26.0
- scikit-learn>=1.4.0
- scipy>=1.14.0
- sentence_transformers>=3.0.0
- transformers<6.0.0,>=4.40.0
- typing-extensions>=4.5.0
- torch>=2.0.0
- tqdm>1.0.0
- rich>=13.0.0
- pytrec-eval-terrier>=0.5.6
- pydantic>=2.11.0
- polars>=1.0.0
xtr torchvision>0.2.1;
xtr transformers[torch-vision,vision];
xtr torchaudio;
xtr datasets[audio];
xtr codecarbon<3.0.0,>=2.0.0;
xtr gradio==6.0.1;
xtr plotly<6.0.0,>=5.24.0;
xtr cachetools>=5.2.0;
xtr matplotlib>=3.9.4;
xtr pymongo>=4.15.5;
xtr torchcodec;
xtr PyGithub>=1.60;
xtr peft>=0.11.0;
xtr FlagEmbedding==1.3.4;
xtr einops>=0.8.0;
xtr peft>=0.15.2;
xtr einops>=0.8.0;
xtr transformers<5.0.0,>=4.52.0;
xtr torchvision>=0.22.1;
xtr timm<1.1.0,>=1.0.15;
xtr peft>=0.15.2;
xtr transformers<5.0.0,>=4.52.0;
xtr torchvision>=0.22.1;
xtr flash-attn>=2.6.3;
xtr openai>=1.41.0;
xtr tiktoken>=0.8.0;
xtr model2vec>=0.3.0;
ython_full_versio pylate>=1.3.1;
ython_full_versio transformers>=4.52.0;
xtr msclap>=1.3.4;
xtr soundfile>=0.13.1;
xtr bm25s>=0.2.6;
xtr PyStemmer>=2.2.0.3;
xtr gritlm>=1.0.2;
xtr xformers>=0.0.29;
xtr salesforce-lavis>=1.0.2;
xtr voyageai<2.0.0,>0.3.0;
xtr voyageai<2.0.0,>0.3.0;
xtr tenacity>9.0.0;
xtr cohere==5.14.0;
xtr vertexai==1.71.1;
xtr google-genai>=1.7.0;
xtr llm2vec<0.3.0,>=0.2.3;
xtr timm<1.1.0,>=1.0.15;
xtr open_clip_torch==2.31.0;
xtr einops>=0.8.1;
xtr volcengine-python-sdk[ark]==3.0.2;
xtr tiktoken>=0.8.0;
ython_full_versio colpali_engine>=0.3.12;
xtr transformers>=4.57.0;
xtr torchvision>=0.22.1;
ython_full_versio sauerkrautlm-colpali>=0.1.0;
xtr huggingface_hub>=0.32.0;
xtr tencentcloud-sdk-python-common>=3.0.1454;
xtr tencentcloud-sdk-python-lkeap>=3.0.1451;
xtr transformers==4.51.0;
xtr transformers[torch]==4.49.0;
xtr torchvision>=0.22.0;
xtr flash-attn>=2.6.3;
xtr accelerate;
xtr transformers[torch]==5.0.0;
xtr torchvision>=0.22.0;
xtr flash-attn>=2.6.3;
xtr accelerate;
xtr transformers[torch]>=4.56.0;
xtr torchvision>=0.22.0;
xtr flash-attn>=2.6.3;
xtr accelerate;
xtr sentence-transformers>=5.4.0;
xtr transformers>=5.3.0;
xtr faiss-cpu>=1.12.0;
xtr qwen_vl_utils>=0.0.14;
xtr speechbrain>=0.5.12;
xtr muq==0.1.0;
xtr wav2clip==0.1.0;
xtr torch-vggish-yamnet==0.2.1;
xtr vllm>=0.11.1;
xtr transformers<5;
xtr sentencepiece>=0.2.0;
xtr protobuf>=3.0.0;
xtr transformers>=4.57.0;
xtr qwen-vl-utils>=0.0.14;
xtr qwen_omni_utils;
xtr transformers>=4.56.0;


زبان مورد نیاز

مقدار نام
<3.15,>=3.10 Python


نحوه نصب


نصب پکیج whl mteb-2.9.1:

    pip install mteb-2.9.1.whl


نصب پکیج tar.gz mteb-2.9.1:

    pip install mteb-2.9.1.tar.gz