ai/embeddings-how-a-computer-measures-that-a-kitten-is-like-a-cat.md
Embeddings: how a computer measures that a kitten is like a cat
How does a computer know that kitten is closer to cat than to car? It can't read meaning, but it can measure it. An *embedding* turns a word or sentence into a list of numbers, so that similar meanings land close together.
Drag a point around a tiny map of words and watch the nearest neighbours change, then run the same idea in a few lines of Python.