← All lab updates

Embeddings, explained: how meaning becomes a list of numbers

An embedding turns a piece of text into a list of numbers, placed so that texts with similar meaning sit close together. It is how a search finds "broken item" when you typed "damaged goods", how RAG picks passages, and the first thing a language model does with every word. How it works, five lines of code, and its limits.