Skip to content

The Vocabulary of Large Language Models

Embeddings: How AI Represents Meaning

Computers only work with numbers, so before an AI model can do anything with words, images, or other content, that content has to be converted into numbers. The specific technique used for this in modern AI is called an embedding.

What an embedding actually is

An embedding is a long list of numbers (a "vector") that represents the meaning of a piece of content, positioned in a huge mathematical space. The key property that makes embeddings useful: things with similar meaning end up with similar numbers, and therefore end up positioned close together in that space.

For example, the embeddings for "puppy" and "dog" would land close together, while the embedding for "spreadsheet" would land far away from both — even though none of those words share any letters in common. The model isn't comparing spelling; it's comparing learned meaning.

Where you'll encounter this term

  • Search and recommendations: "semantic search" tools compare embeddings instead of exact keywords, so a search for "affordable laptop" can also surface a result titled "budget-friendly notebook."
  • Retrieval-Augmented Generation (RAG): a common pattern where a system converts your question into an embedding, finds the most similar chunks of a document collection, and hands those chunks to an LLM as extra context before it answers.

Key takeaway: embeddings turn meaning into numbers, which lets computers measure "how similar" two pieces of content are — even if they don't share any exact words.