Skip to content
ML Academy

LLMs, GenAI, RAG, agents, evaluation · insight-0608

Choose the embedding model on your own labelled queries, not a public leaderboard

Evidence type
empirical finding
Difficulty
medium
Roles
Applied AI, ML engineer, Data scientist
Industries
cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    The team picks an embedding model because it tops a public retrieval benchmark.

  2. Action

    Shortlist two or three models plus BM25, embed the same corpus, and compare recall@k and nDCG on 100 to 300 labelled in-domain queries before committing.

  3. Reason

    BEIR showed that retriever rankings shift across datasets and domains, so a public benchmark average is weak evidence for your own corpus.

  4. Boundary

    Any new RAG corpus, especially non-English, technical or regulated text.

Symptom or risk

The leaderboard winner underperforms on your domain jargon, languages or document style, and nobody notices until users complain.

Exceptions

Prototypes where the retriever is not yet the bottleneck; even then, record the choice as provisional.

Trade-offs

Re-embedding a large corpus for each candidate costs compute; use a representative sample first.

Pitfalls

Switching embedding models later without re-indexing everything; vectors from different models are not comparable.

Lessons and concepts

Claims and their sources