Module 1 · Beyond naive RAG
Reading and interpreting MTEB benchmarks
5 min read
To choose an embedding model, everyone looks at the same table: the MTEB leaderboard (Massive Text Embedding Benchmark). It gathers dozens of tasks and hundreds of models, and it is valuable — provided you know how to read it. Misread, it leads you to pick a huge, slow model, trained on the test sets, and poor on your data. This lesson explains what it measures, its pitfalls, and how to complement it with your own evaluation.
What MTEB measures
MTEB evaluates models on several families of tasks, each with its own metrics:
| Family | What is measured | Useful for RAG? |
|---|---|---|
| Retrieval | Finding the relevant documents for a query (nDCG@10) | Yes, first and foremost |
| Reranking | Ordering candidates | Yes |
| STS (semantic similarity) | Correlation with human similarity judgments | Indirectly |
| Classification, Clustering | Vector quality for classifying or grouping | Barely |
| Pair classification, Summarization… | Specific tasks | Barely |
The average score mixes all these families. A model can rank first on average thanks to classification and be only average at retrieval. For RAG, look at the Retrieval column first.
MTEB has expanded beyond English (MMTEB, and per-language leaderboards). For a French corpus, look at the retrieval tasks in French: a model that is excellent in English can be mediocre in French.
The leaderboard's pitfalls
1. Contamination. MTEB datasets are public. A model trained, deliberately or not, on data close to the test sets gets an inflated score that will not carry over to your data. Be wary of recent models that crush the leaderboard without a publication detailing their training data.
2. Size. The top of the leaderboard is often made of models with billions of parameters. Their inference cost (GPU, latency) can be out of all proportion to a two-point nDCG gain. The leaderboard shows the size: compare models of a size that fits your budget.
3. Non-significant gaps. A one- or two-point difference between two models is often noise. Do not switch models for one point.
4. Length and domain. MTEB tasks have their own text lengths and their own domains (scientific papers, general questions, forums). Your documents — product sheets, contracts, tickets — are not necessarily represented.
5. License. Some well-ranked models have a non-commercial license. Check before investing.
A shortlisting grid
| Criterion | Question |
|---|---|
| Language | Are the retrieval tasks in my language good? |
| Task | What is the Retrieval score, not the average? |
| Size and latency | Does the model fit my compute and latency budget? |
| Dimensions | How much will storing my vectors cost? |
| Max length | Do my passages fit within the limit? |
| License | Is commercial use allowed? |
| Longevity | Is the model maintained, self-hostable, or provider-dependent? |
This grid narrows the list down to three or four candidates. The final decision is made on your data.
Your own benchmark: the only one that counts
Prism's test bench is built for this: the same annotated question set, several models, the same metrics. Changing the embedding model is an environment variable:
export PRISM_EMBED_MODEL=sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
python examples/01_benchmark.py
export PRISM_EMBED_MODEL=intfloat/multilingual-e5-large
python examples/01_benchmark.py
Beware of the second one: E5 models expect query: and passage: prefixes (lesson 1.3). An honest benchmark follows each model's instructions — otherwise you compare a well-used model to a misused one.
For the comparison to be reliable:
- A representative question set: 50 to 200 real, annotated questions, covering every difficulty type in your domain (lesson 5.2 to complete it with well-filtered synthetic questions).
- The same conditions: same chunking, same k, same pipeline; only the model changes.
- Several metrics: recall (is the information found?) and MRR or nDCG (is it well ranked?).
- A breakdown by type: a model can win on average and lose on the question type that matters most to you.
- The total cost: corpus embedding time, latency per query, memory.
And when the models are tied?
It happens often: two or three models give similar results on your data. Then choose on operational criteria — the smallest, the cheapest, the most durable, the one you can host. And remember the test bench results: moving from dense search to hybrid search with re-ranking gained far more than any change of embedding model would. The pipeline architecture often matters more than the choice of model.
Key takeaways
- MTEB aggregates task families: for RAG, look at Retrieval, in your language.
- Pitfalls: contamination, oversized models, non-significant gaps, domain and license.
- A grid (language, task, size, dimensions, length, license, longevity) shortlists three or four models.
- The decision is made on your own benchmark: same conditions, several metrics, breakdown by type.
- At similar quality, choose the easiest model to operate: architecture often matters more than the model.
Practice
- On the MTEB leaderboard, sort models by French retrieval score, then by size: what is the best model under 500 million parameters?
- Compare two multilingual models with Prism's test bench (respecting their prefixes) and note recall, MRR and embedding time.
- Fill in the shortlisting grid for your use case, with your budget and license constraints.