Explainer · Updated November 28, 2026 · 3 minute read
What is an embedding?
The short answer
An embedding is a list of numbers that represents the meaning of a piece of text, an image or another item. An AI model produces the numbers so that items with similar meanings get similar lists. Software can then compare meanings by comparing numbers, which is how search tools find related content even when the wording differs.
How embeddings represent meaning
Computers cannot compare the meaning of two sentences directly, but they can compare numbers quickly. An embedding model reads a piece of text and outputs a fixed-length list of numbers, often several hundred or a few thousand of them. Mathematicians call such a list a vector, and each one can be treated as a point in a space with that many dimensions.
The model is trained so that related items land close together. A sentence about a late delivery ends up near one about a missing parcel, and far from one about a recipe. No single number in the list means anything on its own. The information is in how close one point sits to another.
What embeddings are used for
Most uses come down to finding items that sit close to each other.
- Semantic search returns results that match the meaning of a query, even without shared keywords.
- Retrieval-augmented generation (RAG) uses embeddings to find the passages a chatbot should read before it answers.
- Recommendation systems suggest songs or articles that sit near ones a person already liked.
- Clustering tools group similar documents, such as support tickets about the same fault.
Embeddings inside language models
Embeddings are also the first step inside every large language model. The model breaks text into tokens and converts each one into an embedding before any other processing happens. In news coverage the word usually refers to the standalone kind described above, which represents a whole passage and comes from a separate embedding model.
Limits
An embedding compresses a passage into one point, so detail is lost. Two texts can sit close together because they share a topic while saying opposite things about it. Search built on embeddings can also miss exact matches, such as a product code or an unusual name, that keyword search would catch.
Embeddings from different models are not interchangeable. Switching models means recomputing the embedding for every stored item.
Common questions
What is a vector database?
A vector database stores embeddings and can quickly find the ones closest to a given query. It is the storage layer behind most semantic search and many RAG systems.
Is an embedding the same as a token?
No. A token is a small chunk of text, and an embedding is the list of numbers a model uses to represent a token or a longer passage.
Can the original text be recovered from an embedding?
Often in part, and sometimes closely. Researchers have reconstructed short passages from their embeddings almost word for word, so embeddings of private documents should be protected like the documents themselves.