New Tool Radar

AI Concepts

How to Choose an Embedding Model by Testing It on Your Domain

Pick an embedding model with a test on your own documents, because MTEB leaderboard scores do not predict your retrieval quality.

Schematic illustration with three step boxes: build a domain test set, run two or three models, and pick by your own recall.

MTEB scores are general-purpose: they benchmark retrieval on public datasets, and your domain may use different vocabulary, query patterns or document lengths. The honest way to choose is to run two or three candidate models on your own questions and compare recall. A smaller model that understands your terms beats a leaderboard winner that does not.

Before you start

Two or three candidate embedding models you can run or call, and 20 questions from your own documents with the answer chunk noted for each.

Build a domain test set

Write 20 questions in the words your readers use, including the jargon, product names and abbreviations of your domain. For each question, note the chunk that holds the answer.

Include the hard cases: terms that look alike but mean different things in your domain, and questions that paraphrase the source.

Run each model on the same set

Embed the same chunks with each model and run the same 20 questions. Record recall at 5 for each model: how many answer chunks appear in the top 5.

Keep the chunking and the retriever fixed. If you change two things at once, you cannot tell which one helped.

Pick by recall, then check cost and size

Pick the model with the best recall on your set. Then check its dimensions, its maximum input tokens and its cost or compute needs: a model that wins by 1 question but costs ten times more is not the winner.

Write down the winner, the test date and the scores, so the choice can be revisited when a new model appears.

Practice check: fictional Maple Corner support docs, 20 questions

The table below is fictional practice material, worked out by hand from the stated recall scores. It is the expected result for the practice set, not a run of any embedding model.

Model Recall at 5 Dimensions Verdict
Model A, small 15 of 20 384 Cheapest, weakest
Model B, mid 18 of 20 768 Best balance
Model C, large 18 of 20 3072 Ties B, costs more

Models B and C tie at 18 of 20, so the mid-size model wins on cost and speed: the same recall with a quarter of the dimensions.

Expected result. UNTESTED: the recall scores in the practice table are worked out by hand, not measured by running embedding models. Run your own 20-question set through two or three candidate models and compare recall at 5 before you choose.

Limits

  • MTEB scores are still useful for a shortlist, but they are not a substitute for a test on your own data.
  • Embedding quality also depends on chunking: a model can look bad only because the chunks are cut wrong.

Sources

See all