New Tool Radar

AI Concepts

How to Choose an Embedding Model by Testing It on Your Own Documents, Not on a Public Leaderboard Alone

Build a small test set from your own documents, run each candidate model on it, and pick the model that is most consistent across your languages and query forms.

Schematic with three steps: Build the test set from your own; Run each candidate model on the same; Pick the most consistent model, not the.

Public leaderboards such as MTEB rank embedding models on standard benchmarks, but your documents are not the benchmark. In one published evaluation of 156 queries across English, French and Japanese scientific documents, AWS Titan V2 scored 69.2% hit rate against 57.7% for Qwen 8B and 39.1% for Mistral Embed, even though Titan V2 is not on the MTEB leaderboard at all. The lesson is to test candidate models on your own documents and your own query forms before choosing.

What you need

  • A test set of questions drawn from your own documents, in every language you serve
  • Two or three candidate embedding models
  • The known correct document for each test question

Step 1: Build the test set from your own documents

Write questions in the forms your users actually use, both questions and plain statements, and in every language your documents use. Record the correct document for each one.

Step 2: Run each candidate model on the same test set

Embed and index the documents with each candidate model in turn, run the same questions with the same top-k, and record the hit rate for each model. Keep the chunking and the retriever identical, so only the model differs.

Step 3: Pick the most consistent model, not the peak scorer

Choose the model with the best hit rate across all languages and query forms, not the one that wins on one narrow slice. A model that is strong in English only will fail your other languages in production.

Worked example: synthetic model comparison on 3 models

The table below is a synthetic example. It shows the expected result of comparing embedding models; no model was run.

Model English hit rate All languages hit rate
Model A 0.80 0.78
Model B 0.85 0.55
Model C 0.70 0.68

Expected result (UNTESTED). Model B wins on English only, but Model A is the most consistent across all languages, so Model A is the pick. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Leaderboard scores are measured on the benchmark data, not on your documents, so they rank models, not your use case.
  • A model can be cheap and fast yet still wrong for your domain, so price alone never decides.
  • Test with both interrogative and affirmative query forms: models behave differently on each.
  • Re-test when your documents change language mix or domain, since the best model for one corpus may not suit another.

Sources

See all