Embeddings Explained
An embedding turns text into a list of numbers — a vector — where texts with similar meaning land near each other. That one trick powers semantic search, dedup, clustering, and the “R” in RAG.
The One-Paragraph Version
A model reads your text and outputs, say, 1,024 numbers. Encode “How do I reset my password?” and “I can’t log in” and the vectors end up close together even though the words share nothing. Search becomes geometry: to find documents about a query, encode the query and measure distances.
Where You Meet Embeddings
- Semantic search: the nearest-vectors lookup behind “did you mean” and knowledge-base search.
- RAG: retrieve the top-k chunks relevant to a question, then let a generation model answer from them.
- Clustering & dedup: group support tickets, near-duplicate docs, feedback themes.
- Classification-lite: nearest labeled examples decide the category — no training run needed.
The Specs That Matter
| Spec | Why it matters |
|---|---|
| Dimensions | Vector width; bigger isn’t better, it’s bigger storage and slower scans |
| Context window | Chunks must fit; a 512-token ceiling fragments long documents |
| MTEB-style eval scores | Retrieval quality benchmarks — read them with a harness mindset |
| Price per 1M tokens | Encoding a whole corpus costs; re-encoding on every model switch costs more |
The Switching Cost Nobody Budgets
Embeddings from different models are not comparable — different models produce different coordinate systems. Switch your embedding model and every stored vector is stale: you re-encode the entire corpus and re-run any hybrid search tuning. That’s why the embedding choice is stickier than the generation choice, and why “free trial credits” on a new embedding API hide a migration bill.
Picking One, Practically
- Start with a well-documented general retrieval model — measured on public retrieval evals, from a provider with a spec sheet you can verify.
- Chunk to fit its context window with overlap; bad chunking beats good models.
- Evaluate on your queries: take 50 real questions, check whether the right document lands in the top 5. That beats any public benchmark for your use case.
- Only then look at price — retrieval quality failures cost more than tokens ever will.
Related Reading
- RAG Explained — the pipeline embeddings power.
- Context Window vs. Max Output Tokens — chunking math.
- How to Read a Model Spec Sheet — comparing embedding models on AI-Arena.
Keep reading
Field reports: what people actually run (usage signals, Nov 2026)
Curated usage-signal reports from public spend and preference data — which models people pay to run, per task, and where the surprises are. Editorial, fully sourced.
Long-Context Retrieval: What MRCR Actually Measures
Multi-Round Co-reference Resolution explains why a 1M-token context window is not the same thing as a 1M-token memory. How to read the MRCR rows on our spec sheets.