An embedding is a list of numbers, a vector, that an AI model produces to represent the meaning of a piece of data, so that similar items such as related sentences or images have similar vectors.

Definition
Computers cannot compare meaning directly, but they can compare numbers. Embeddings bridge that gap. An embedding model reads an input, such as a word, a sentence, a document, an image or a product record, and outputs a fixed-length vector, typically hundreds or thousands of numbers long. The model is trained so that inputs with related meanings land near each other in this space and unrelated inputs land far apart.
That property makes embeddings one of the most useful building blocks in applied AI. They power semantic search, where a query finds documents by meaning rather than keywords; retrieval for RAG systems; recommendations; clustering similar customer feedback; deduplication; and classification with little training data. Embeddings are also used inside larger models, where every token is turned into a vector before processing. Different embedding models suit different content and languages, so the choice of model has a direct effect on search and retrieval quality.

How it works
Embedding models are neural networks trained on large amounts of data with objectives that pull related items together. For text, a common approach is contrastive training: the model sees pairs that belong together, such as a question and its answer, and pairs that do not, and learns to place matching pairs close and mismatched pairs apart. Image and multimodal embedding models learn in similar ways, sometimes mapping text and images into one shared space.
Using embeddings is straightforward. You send content to the model and receive a vector. To compare two items, you calculate the distance between their vectors, most often with cosine similarity, which measures the angle between them. Scores near the top of the range indicate close meaning. For large collections, the vectors are stored in a vector database or vector-enabled search index for fast similarity lookup.
Practical details matter. Long documents are usually split into chunks, each with its own embedding, because one vector cannot capture everything in a long text. The same model must embed both stored content and queries. Embeddings can also be reduced in size or quantized to save storage, with some loss of precision, and they should be regenerated when the embedding model is upgraded.
Keep learning
Put it into practice
AI consulting, LLM and generative AI applications, NLP and AI integration engineered into the products and systems you already run.
Explore serviceCustom machine learning models for prediction, scoring, forecasting and detection, deployed with the MLOps needed to keep them accurate.
Explore serviceFAQ
No. Embeddings are the vectors themselves, the numeric representations of meaning produced by a model. A vector database is a storage and search system designed to hold large numbers of embeddings and quickly find the most similar ones. You can use embeddings without a vector database for small datasets, by comparing vectors directly in code.
Test candidates on your real content. Build a small set of realistic queries with known correct results, embed your documents with each model and measure how often the right items appear near the top. Also consider supported languages, maximum input length, vector size, cost, speed and whether the model can run where your data must stay.
Yes. Models produce embeddings for images, audio, code, products, users and even rows of structured data. Multimodal models place text and images in the same space, so a written description can retrieve matching photos. The same principle applies throughout: similar items get similar vectors, which makes comparison and search possible.
Talk to a solution architect about where it fits in your roadmap.
