Adaptation
Fine-tuning embedding models
Adapt retrieval to your domain’s vocabulary with query–passage pairs.
What it is and why it exists
When off-the-shelf embeddings confuse domain terms, fine-tune an open embedding model on (query, relevant passage) pairs — often generated synthetically from your corpus — with contrastive loss and hard negatives.
Quick prototype
—
In production, at scale
Generate or collect pairs, mine hard negatives, fine-tune, re-embed, and compare recall@k against the base model and against adding a reranker (often cheaper).
Vendors and tools
| sentence-transformers | Training embedding models |
|---|---|
| Voyage / Cohere custom models | Hosted domain embeddings |
How it fails
- Overfitting to synthetic questions
- Forgetting to re-embed the whole corpus
What the interviewer asks next
Fine-tune the embedder or add a reranker first?
Usually the reranker: no re-embedding, quick to test, often a bigger lift. Fine-tune embeddings when recall (not ranking) is the bottleneck.