RAG & Retrieval·Question 7 of 100Basic

How would you choose an embedding model? What role does MTEB play, and what are its limits?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Use MTEB (Massive Text Embedding Benchmark) to build a shortlist, then decide with your own evaluation set - never ship the MTEB leaderboard winner sight unseen.

Full worked answer

Use MTEB (Massive Text Embedding Benchmark) to build a shortlist, then decide with your own evaluation set - never ship the MTEB leaderboard winner sight unseen.

MTEB aggregates dozens of tasks (retrieval, clustering, classification, STS) across many datasets and is the de facto public leaderboard. Its limits are serious: (1) contamination/overfitting - the benchmark is public, and models are increasingly trained on or tuned toward it, so top ranks partly measure benchmark-fitting; (2) domain mismatch - your legal contracts, Slack threads, or log lines aren't represented, and rank order genuinely reshuffles on private domains; (3) the average hides your task - a model great at clustering may be mediocre at retrieval, so look at the retrieval subset, not the headline number; (4) it says nothing about the operational factors that decide production fit.

Those operational factors: dimensionality (RAM and search latency scale with it; Matryoshka-style models let you truncate), max sequence length (512-token models force small chunks; 8k-token models enable late chunking), latency and deployment (API - OpenAI, Cohere, Voyage, Gemini - vs self-hosted open weights like BGE/GTE/E5/Qwen3-Embedding for data residency and cost control), cost (API embedding is cheap per token, but re-embedding 100M chunks when you switch models is not), multilingual needs, and licence.

The deciding step: collect 100-500 real or realistic queries with labelled relevant chunks from your corpus, measure recall@k and nDCG for 2-4 shortlisted models, and pick on that. This costs a day and routinely contradicts the leaderboard. Also plan for model migration up front - store raw text, version your embeddings, and assume you'll re-embed everything at least once.

What a good answer covers

  • Use MTEB (Massive Text Embedding Benchmark) to build a shortlist, then decide with your own evaluation…
  • MTEB aggregates dozens of tasks (retrieval, clustering, classification, STS) across many datasets and is…
  • Its limits are serious: (1) contamination/overfitting - the benchmark is public, and models are…
  • Those operational factors
  • The deciding step: collect 100-500 real or realistic queries with labelled relevant chunks from your…

Key terms: MTEB · your own evaluation set · contamination/overfitting · domain mismatch · the average hides your task · dimensionality · max sequence length · latency and deployment · cost · multilingual needs

Interviewer follow-ups to expect

  1. Your domain is medical device manuals - how do you build the eval set without labelers?

  2. When is a self-hosted open-weights embedder clearly better than an API?

  3. What breaks when you change embedding models and forget to re-embed the corpus?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep