AI & Machine Learning

Embeddings

Also known as: vector embeddings, text embeddings, embedding vectors, embedding

Embeddings are lists of numbers, called vectors, that an AI model produces to represent the meaning of a piece of content such as a word, sentence, image, or document.

Content with similar meaning gets similar numbers, so a computer can find related items by measuring distance between vectors. While embeddings sound abstract, they quietly power semantic search, recommendations, duplicate detection, and the retrieval step behind most AI chatbots that answer from company documents.

Embeddings, explained at three levels

At home

Imagine a giant map where every song, photo, or sentence gets a spot, and things with similar meaning are placed near each other. An embedding is the set of coordinates for one item on that map, except the map has hundreds of directions instead of two. When an app shows you 'more like this,' it looks up your item's spot and returns its nearest neighbours.

At work

An embedding is a list of numbers that an AI model produces to capture what a piece of content means. Because similar meanings get similar numbers, software can search by meaning instead of exact keywords, so a search for 'vacation policy' finds a document titled 'time off rules.' For a business, that means staff and customers find answers even when they don't know the official wording.

Real-world examples

At home

Jerome searched his photo app for 'beach at sunset' and it found pictures he had never tagged. The app had created embeddings for every photo and matched them to the meaning of his words.

At work

Sophie runs IT at a Toronto law firm. She set up an internal search tool using embeddings, so lawyers could find past memos by describing the issue rather than guessing exact keywords.

How it compares

featureEmbeddingsKeyword search
Matches onMeaningExact words
SynonymsHandled naturallyMust be added manually
Exact codes and namesCan miss themStrong
ExplainabilityHarderEasy

Embeddings find meaning; keywords find exact terms. Many systems combine both.

For analysts

When a team proposes AI search, I'd ask which embedding model they're using and how they'll test retrieval quality. Bad retrieval is the most common reason company chatbots give wrong answers.

History & origin

The idea that a word's meaning comes from the company it keeps dates to linguists such as J.R. Firth in the 1950s. Yoshua Bengio's team at the Université de Montréal used learned word vectors in a neural language model in 2003. Tomas Mikolov and colleagues at Google released word2vec in 2013, which famously showed that 'king' minus 'man' plus 'woman' landed near 'queen.' Stanford's GloVe followed in 2014. Transformer models such as Google's BERT in 2018 produced embeddings that changed with context, and OpenAI's CLIP in 2021 placed images and text in the same space. Embedding APIs from OpenAI, Cohere, Google, and others then became standard building blocks. In my view, embeddings are the most important AI idea most people have never heard of.