What are embeddings?
Embeddings turn text into lists of numbers so AI can search by meaning instead of exact words.
In a hurry? Watch the one-minute version.
Someone said "we'll use embeddings" and everyone nodded. In about two minutes: what an embedding actually is (a piece of text turned into a list of numbers, its spot on a map of meaning), why that lets software search by meaning instead of spelling, how the same trick powers recommendations and helps RAG find the right pages, and why the closest match isn't always the right one. Featuring bananas and pineapples as neighbours, a tax return in exile, and a robot tucking words into bed.
Read Tim's takeBefore you add RAG, clean the cupboardRAG lets an AI answer from your own documents, and it can only be as good as what it finds. Most RAG projects that disappoint don't have an AI problem. They have a filing problem.What you'll be able to explain
Explain that an embedding turns text into a long list of numbers (coordinates on a map of meaning) so that similar meanings land close together, which powers search by meaning, recommendations, grouping and RAG retrieval; and that closeness reflects the training text, biases included, and means related, not correct.
"Great, how do we know the closest match is the right one?"
Search by meaning finds the most similar text, not necessarily the correct or current one. Someone has to test it with real questions.
A good answer sounds like: A set of real test questions with known right answers, checked regularly. All the questions →
Transcript
Everyone nodded
Someone in your meeting just said: we'll use embeddings. Everyone nodded. Somebody pictured a robot tucking words into bed. Nobody asked what they actually are. Let's fix that.
Same meaning, zero results
Normal search matches words. Type baby time off, and the policy called parental leave never shows up. Not one word in common. Same meaning, zero results. Computers are brilliant with numbers and clueless about meaning. So we turn meaning into numbers.
A map of meaning
Picture a map of meaning. Every word, sentence or document gets a spot. Bananas land next to pineapples. Both fruit, both tropical. Your tax return lands very far away. An embedding is that spot, written as a list of numbers: its coordinates.
Search by meaning
Real embeddings use hundreds, often thousands of numbers per spot. Nobody can picture that, so here's the flat version. Similar meaning, close together. Your question gets a spot too. Baby time off lands right next to parental leave. Search by meaning, not spelling.
Same trick, many jobs
Same trick powers recommendations, sorting feedback, and RAG finding the right pages. And the classic demo, from early word embeddings in 2013: king, minus man, plus woman, lands closest to queen. Maths. On meaning. They're called vectors, and they often live in a vector database. Another episode.
Close isn't correct
Here's the catch. Close means related, not right. The nearest page can still be last year's policy. And the map is drawn from the text it learned from, stereotypes included. A 2016 study of word embeddings trained on Google News was literally titled: Man is to Computer Programmer as Woman is to Homemaker?
Is the closest match right?
And those words tucked into bed? Close. Every word gets a spot. On a map, not a mattress. Next time someone says embeddings, nod. Then ask the question that silences the room: great, how do we know the closest match is the right one? Silence. Congratulations. You're nodding with intent.
Sources
Every claim in this episode was checked against these 4 sources on before recording. AI moves fast: if something here is out of date, tell Tim.
Related

A large language model (LLM) is the AI behind chatbots like ChatGPT and Claude: it predicts the next word, extremely well.

Tokens are the chunks of text AI models read and write, and the unit AI is priced and limited in.

RAG (retrieval-augmented generation) lets an AI look things up in your documents before it answers.