AI glossary
Embeddings
Also called: embedding, embedding vector
Embeddings are lists of numbers that place a piece of text, an image, or another item in a vector space so that similar items sit close together. In 2026 they are the usual engine behind semantic search and most RAG indexes, rather than a research curiosity.
How they get used
An embedding model reads a passage and writes a vector, perhaps 768 or 3,072 numbers long, depending on the model. You store those vectors, then embed a question the same way and look for the nearest neighbours. “Holiday leave” and “annual vacation rules” can match even if they share few keywords.
Cosine similarity is a common scoring method. The absolute score only means something inside one embedding model. Vectors from two different models must not be mixed in the same index.
Design choices that matter
Chunk size, metadata filters, and whether you embed questions with a different prefix than documents (some models want that) all change recall. A late-interaction or rerank stage can fix cases where a single vector is too coarse, at extra cost.
What embeddings cannot do
They do not replace a structured lookup for an exact invoice id. They do not update themselves when a policy changes; you must re-embed the new text. And a close vector is a retrieval hint, not a proof that the passage answers the question.
A concrete example
Example The queries “holiday leave policy” and “annual vacation rules” land near the same policy document in embedding space.
FAQs about Embeddings
Is an embedding the same as a language model completion?
No. An embedding model returns a vector, not a paragraph. Some vendors train both kinds of model, but you call different endpoints and you use them for different jobs.
How often should I re-embed my documents?
Re-embed when the text changes, or when you switch embedding models. A nightly job is common for living knowledge bases. Unchanged pages do not need a daily rebuild.
What dimension should I pick?
Use the dimension the model was trained to emit, unless the vendor offers a documented shortened vector. Shorter vectors save space, sometimes with a small quality trade-off the vendor has already measured.
Can I use the same embeddings for clustering and for search?
Often yes, if the model is a general text embedding model. Still test: a space that works for nearest-neighbour search may or may not give tidy clusters for your topic set.
