The Third Umpire · Lesson 7 — The Same Step ← Course

The same step — meaning has directions.

Embeddings don't just cluster similar things. Their directions carry meaning too — so you can do arithmetic with them.

Last page, close meant similar. There is more to it: the directions in the space mean things as well. A fixed step in a fixed direction makes a consistent change in meaning — and those steps add and subtract like numbers.

The famous demonstration was king − man + woman ≈ queen. In cricket the same trick reads Tendulkar − India + West Indies ≈ Lara: start at “Tendulkar”, take the step that leads from “India” to “West Indies”, and you land on “Lara” — West Indies' great in place of India's.

Why does it land? Because an embedding is just a list of numbers. Give each a tiny two-number vector — (which country, how great a batsman). The greatness number is relative: put the all-time greats at the top, 10, and lesser batsmen lower (a very good one around 6, a steady international around 3). Subtract India and the country cancels, leaving pure greatness; add a new country and you get that country's great.

Pick a country and watch the same step — Tendulkar − India + that country — land on its own all-time great.

The step from India to another country is the same step from Tendulkar to that country's great.

Add and subtract the vectors, take the nearest.

The analogy is literally vector arithmetic on the embeddings, then a nearest-neighbour lookup — the same “find the closest point” from the last page.


      

Relationships are directions.

Closeness told us two things mean the same. Directions tell us how two things differ — and because the differences are just vectors, they add and subtract. “The star of a country” is one such direction, and it points the same way whichever country you start from.

Meaning laid out as geometry: near points are alike, and consistent relationships become consistent steps you can do arithmetic with. That is the real reason a search by meaning works so well.

Next: cutting the tape →
Go deeper — how literally to take this optional

The axes aren't really labelled

The clean “x = country, y = greatness” split is a teaching simplification. A real embedding has hundreds of numbers, and no single one means “country” or “greatness” — those ideas are smeared across many dimensions at once. What is genuine is that consistent directions exist in the space, even though they don't line up with individual axes. The 2D picture just flattens all that so the step is visible.

It's a tendency, not a law

The examples are cherry-picked. Two players are never at exactly the same greatness, so Tendulkar − India + West Indies lands near Lara, not dead on him — and “Lara” is simply the closest real player to that spot. That is why it is written “≈”, and why you take the nearest neighbour rather than an exact hit.

Word vectors vs passage vectors

This tidy arithmetic is clearest with word embeddings — one vector per word, the classic king/queen result. The passage embeddings RAG actually uses place whole sentences in the space, where the property that does the real work is plain “near = similar”, not neat analogies. The analogy is the intuition; retrieval leans on the closeness.