L024 · Under the hood · 2 min · Interactive
Embeddings: meaning as a map
An embedding turns a word or sentence into a list of numbers, so things with similar meaning sit close together.
01 · The idea
Computers cannot compare meanings directly. So we convert text into numbers, called an embedding. Think of it as a position on a huge map.
On this map, "doctor" lands near "nurse" and "hospital", far from "football". "Cheap flights to Bangkok" lands near "low-cost plane tickets Thailand", even with no shared words.
This is how modern search finds what you mean, not just what you typed. It powers recommendations, duplicate detection, and lets chatbots find the right page in your documents.
Try it below: tap any word on the map to see its nearest neighbours, then try the word maths.
02 · Think of it like this
It is like a supermarket. Apples sit near bananas, soap sits near shampoo. You find things by walking to the right area, not by reading every label.
03 · Try the toy
A map of meaning
An AI stores each word as a point. Words that mean similar things end up close together. Tap a word.
- Animals
- Food
- Vehicles
- Feelings
- Countries
- People
Tap any word to see its three closest neighbours.
Word maths: directions mean something too.
The dashed arrow is the step from “man” to “woman”. Take the same step from “king” and see where you land. This is how search and chatbots find things that mean the same, even when the words differ.
04 · Do it now
05 · Quick check
Words in this lesson
See also
L028Under the hood · 2 min
Fine-tuning vs prompting
Before you train your own AI, try a better prompt and your own documents; that solves most problems faster and cheaper.
L167Under the hood · 3 min
The journey of one question through an AI app
Between pressing send and seeing an answer, your question passes through checks, extra context, the model, maybe some tools, and more checks.
L026Under the hood · 2 min
AI agents: AI that takes action
An agent is AI that does not just answer but takes steps: it plans, uses tools, checks the result, and keeps going.
L027Under the hood · 1 min
MCP: a universal plug for AI
MCP is a shared standard that lets any AI assistant connect to apps and data, like a USB-C port for AI.