Skip to content
mentoor

Topic 1 of 5 · 5 min read

Choosing an embedding model

Goal: Shortlist two or three embedding models for a stated corpus and constraint set and explain why each leaderboard score does or does not transfer.

Pick an embedding model by your constraints first and the leaderboard second: the corpus, the languages, the maximum chunk length, where the data may go, and what a million chunks cost. A leaderboard rank only tells you how a model did on someone else's data.

Check yourself · 1 of 3

A team's longest chunks are 900 tokens. Which model property can silently damage retrieval?

Choose one answer

Why it matters

The embedding model decides what "similar" means in your search. If it does not understand your language, your jargon or your chunk length, retrieval returns the wrong passages and the generator answers from them with full confidence. Changing the model later means re-embedding everything, so the choice is sticky.

How to choose

  1. Write the constraints down. Languages of the documents and of the questions. Longest chunk in tokens. Corpus size. Whether text may leave your network. Latency target. Licence needs.
  2. Split hosted from open-weight. Hosted APIs (OpenAI, Google, Cohere, Voyage and others) need no GPU and are easy to start, but you pay per token, you depend on the vendor, and the vendor can retire a model. Open-weight models (for example from the BGE, E5, GTE or Qwen families) run on your hardware, keep data in-house and never get retired under you, but you operate them. Check the licence: some open-weight models forbid commercial use.
  3. Check the hard limits. A model that truncates input at 512 tokens silently drops the end of a 900-token chunk. Check the context length, the output dimension and whether the languages you need are really covered, not just "multilingual".
  4. Read MTEB as a filter. The MTEB leaderboard lists scores per task type (retrieval, classification, clustering) and per language. Look at the retrieval columns for your language, not the overall average. Treat scores that differ by a point or two as a tie. Some vendors tune for the benchmark, so a top score may not carry over.
  5. Shortlist two or three and test them on your own questions (the next topic).

Before and after

Before: "The top model on the leaderboard is the best, so we use it for our Arabic support tickets."

The average hides that the ranking was driven by English tasks.

After: "Constraint: Arabic and English tickets, chunks up to 800 tokens, data stays in the EU. We shortlist one hosted EU-region model and two open-weight multilingual models, filter MTEB to retrieval tasks in Arabic, then test all three on 30 real tickets."

What goes wrong

  • Choosing on the overall score and discovering later that your language or domain (legal, code, medical) is weak.
  • Ignoring the input limit, so long chunks are cut off without any error.
  • Picking a hosted model with no plan for its deprecation date, then facing an unplanned re-embed.

Examples

A shortlist table

Model Type Max input Languages Notes
Hosted model X API 8,000 tokens 100+ per-token price, vendor-run
Open model Y self-hosted 512 tokens English-first chunks must stay short
Open model Z self-hosted 8,000 tokens multilingual needs one GPU

Model Y fails the 800-token chunk constraint before any scoring starts.

Reading a leaderboard row

A model ranks 3rd overall but 19th on retrieval in your language. Use the retrieval column for your language. The overall rank mixes in classification and clustering tasks you do not run.

Key points

  • Start from your constraints: languages, chunk length, data location, corpus size and budget.
  • Hosted models are quick to start but cost per token and can be retired; open-weight models give control and cost you operations.
  • MTEB is a way to build a shortlist, not a way to pick the winner for your data.
  • Read the retrieval scores for your language and domain, not the overall average.
  • A model's input limit decides whether long chunks are silently truncated.

Common mistakes

  • Choosing by overall leaderboard rank without filtering to retrieval and your language.
  • Not checking the maximum input length against your longest chunk.
  • Overlooking the licence terms of an open-weight model before shipping it commercially.
  • Treating a one-point score gap as a real difference.

Check yourself · 2 of 3

Why is the MTEB overall average a weak basis for choosing a model for Japanese contract search?

Choose one answer

Check yourself · 3 of 3

Patient notes may not leave the hospital network. What is the first filter on the shortlist?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic