Embedding
Also: vector embedding, vector representation, vektorová reprezentace
An embedding is a representation of text, an image or other data as a vector, a long list of numbers that captures its meaning. Texts with similar content have vectors close to each other, so a computer can compare meaning rather than just matching words. Embeddings are produced by dedicated embedding models and underpin semantic search, recommendations and RAG.
What it means for a company
Embeddings let people search company documents by the meaning of a question: a query about how long a complaint takes will also find a passage about the resolution period, even though the words differ. They are also used to cluster customer requests, find duplicates, classify content or detect anomalies. The choice of model matters: vectors from different models cannot be compared with each other, so switching models means recomputing the entire archive. Because vectors are derived from company data, they deserve the same protection as the source documents.
In practice
A machinery manufacturer has 20,000 service records. Each record is turned into a vector by an embedding model and stored in a vector database. When a technician types that the machine vibrates and squeals on start-up, the query is also turned into a vector and the system returns the records with the closest vectors, even if they say bearing noise at start. The technician finds earlier fixes without knowing the exact keywords.
Frequently asked questions
What is the difference between an embedding and a token?
A token is a piece of text the model splits input into, such as a word or part of one. An embedding is a numeric vector that represents the meaning of a token, a sentence or a whole document. Tokens determine how much text a model handles and what it costs; embeddings are for comparing meaning.
How many numbers does an embedding have?
It depends on the model, typically hundreds to thousands. For example, OpenAI's text-embedding-3-small returns a vector of 1,536 numbers by default and text-embedding-3-large one of 3,072. Longer vectors can capture finer differences but take up more space in the database.
Can I switch embedding models later?
Yes, but it means re-embedding all your data. Vectors from different models are not compatible and cannot be compared with each other, as Google's Gemini documentation states explicitly. When choosing a model, budget for the cost of recomputing the whole archive in the future.