Embeddings in Modern AI
Definition
Embeddings are dense numerical vectors used to represent text, images or other objects in spaces where distance or similarity can be computed.
What is an embedding?
An embedding is a dense numerical vector that represents an object such as a piece of text, an image or a user profile. Similar objects are trained or designed to occupy nearby regions of the vector space.
How semantic search uses embeddings
A document can be split into passages and converted to embeddings. A user's query is embedded with the same model, and the system finds passages whose vectors are close to the query vector. Those passages can then be returned directly or supplied to an LLM.
Embeddings inside and outside LLMs
Transformers use token embeddings internally, but application developers also use standalone embedding models for retrieval, clustering, deduplication and recommendation. The vectors are useful because distance can approximate semantic similarity.
Related terms, defined
Reference guide and primary sources
Wikipedia is used here as a terminology and history reference guide. Current model versions, institutional statistics and product-specific claims are also linked to first-party or institutional sources because those details can change faster than encyclopedia articles.