embedding
Embedding converts text, images, or audio into a sequence of numbers so that items with similar meanings have number sequences close to each other.
In plain terms
The computer does not understand words, only numbers. Embedding is the translation that creates a long sequence of numbers from a word, sentence, or even an image, ensuring the numbers preserve the meaning rather than the letters.
Imagine it like a map. Just as every city on a map has coordinates, and Győr is closer to Tatabánya than to Szeged, on the map of meanings 'dog' is close to 'puppy', further from 'cat', and very far from 'interest rate'. Only here there are not two coordinates but several hundred or several thousand.
This enables the machine to search by meaning, not just literally. If you type "the boiler broke," it will also find text containing "heating fault," because the two expressions are adjacent on the map.
This is what distinguishes it from traditional keyword search: the latter looks for character sequence matches, while embedding looks for semantic similarity.
How it works
- The embedding model learns on vast amounts of text. It observes which words and sentences appear in similar contexts, and modern models also practice on related text pairs (for example, a question and its answer). From this, it learns what is semantically close to what.
- When it receives text, it breaks it down into smaller units called tokens, then generates a fixed-length sequence of numbers from the whole, technically called a vector.
- These vectors are stored, in a vector database designed for large quantities, so they can be compared quickly later.
- During search, a vector is also created from your question, and the system returns those stored texts whose vector is closest to it.
- Search results are often received by a language model, which formulates the answer based on them; this is called retrieval-augmented generation.
An everyday example
You type into an online store search bar: 'warm shoes for winter that do not slip.' This sentence does not appear anywhere in the product descriptions, yet you receive lined boots with ridged soles because the search engine compared the meaning of your request with the meaning of the product descriptions.
Who is affected
A common misconception
Limits and risks
- Similarity does not equal correctness: the vectors of the sentences 'interest rates are rising' and 'interest rates are falling' may be close because they refer to the same topic.
- Embeddings absorb the biases of training data, so they may associate gender or ethnic stereotypes with occupations.
- Vectors from different models are not compatible with each other, often not even with those from a newer version of the same model. If you switch models, the entire dataset must be re-embedded.
- A vector is not encryption: research shows that a significant part of the original text, even word-for-word in short texts, can be reverse-engineered from it. Therefore, the embedding of sensitive data must be protected just like the text itself.
Similar, but not the same
- tokenization – Tokenization only breaks text into pieces and assigns numbers to them, whereas embedding assigns a meaning-carrying number sequence to them.
- vector database – The embedding itself is the number sequence, while the vector database is the storage that holds and quickly searches for them.
- large language model – A large language model writes text, while an embedding model produces nothing but a sequence of numbers representing the received content.
Related concepts
machine learning, Natural language processing, representation learning
word embedding, sentence embedding, multimodal embedding
A brief history
The idea originates from linguistics: Zellig Harris formulated it in 1954, and John Rupert Firth in 1957, stating that the meaning of a word can be known from the company of words in which it appears. Computer versions appeared in the early 1990s (latent semantic analysis), and in 2003 Yoshua Bengio and colleagues trained word vectors with a neural network. The method became widely known through Google researchers' 2013 publication of the word2vec procedure, because it produced high-quality word embeddings cheaply from massive amounts of text. Today's sentence and document embeddings are built on transformer-based language models.
Where things stand
By the end of 2026, embedding is a standard building block of search engines, recommendation systems and corporate AI assistants, and the major providers offer ready-made embedding models. The trend points toward multilingual and multimodal models that handle text, images and audio in a shared space.
Also known as
embedding · embedding · embeddings · vector embedding · vector representation · word embedding · word embedding · vector embedding
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.