What are embeddings?
A clear explanation of embeddings: how text becomes vectors, why similar meanings cluster, and how they power search and RAG.
Overview
An embedding is a list of numbers (a vector) that represents the meaning of a piece of text, an image, or another object. Models are trained so that items with similar meaning end up close together in that space. Distance then becomes a way to search.
Embeddings are the retrieval engine behind semantic search and most RAG systems.
How they are used
- Split your corpus into chunks (paragraphs or sections, not whole books).
- Embed each chunk and store the vectors in a vector database or a relational extension.
- Embed the user’s query with the same model.
- Return the nearest chunks and pass them to an LLM or show them as search results.
What embeddings are good at
- Finding passages that use different words for the same idea.
- Clustering related tickets, docs or emails.
- Deduplicating near-identical text.
Real limits
- Not a fact store. A close neighbour can still be outdated or wrong.
- Model lock-in. Vectors from model A cannot be mixed with model B. Changing models means re-embedding the corpus.
- Chunking dominates quality. Too large and the vector is muddy; too small and you lose context.
- Names and codes. Rare product SKUs and IDs often retrieve poorly unless you also do keyword search.
Practical advice
Use hybrid search (keyword + vectors) for support and policy content. Measure retrieval with a labelled set of questions before you tune the generator. See AI evaluation basics.
Related
Last verified: August 2026. Technology and pricing change — always confirm current details with the vendor.