Skip to main content

Command Palette

Search for a command to run...

Vector Embeddings

Published
•2 min read•View as Markdown
Vector Embeddings

Vector Embeddings: How AI Knows Things Are Related

Mom, you know how when you go to the market, you can tell which fruits are similar? Apples and oranges are both fruits, so you’d put them near each other. But a packet of rice? That goes in a different section.

AI does something similar when it’s trying to understand words, pictures, or anything else. But instead of arranging them on a shelf, it arranges them in a kind of map made of numbers.


Putting Meaning into a “Number Map”

Here’s the tricky part: a computer doesn’t understand “apple” the way you do. For it, “apple” is just letters: A-P-P-L-E.

So we turn “apple” into a list of numbers — something like [0.9, 0.1, 0.3].
We do the same for “orange” — [0.88, 0.12, 0.29].

Because these numbers are close, the computer knows they’re related. If “dog” turns into [0.1, 0.95, 0.7], those numbers are far apart from apple and orange, so the computer knows they’re different.


Why This Is Helpful

Once everything has its “number map,” AI can:

  • Find similar things (like looking up recipes that are close to the one you love).

  • Suggest things you might like (like recommending a movie similar to your favorite).

  • Understand that “gato” in Spanish is the same as “cat” in English.


Everyday Example

It’s like when you arrange your kitchen:

  • All the spices are together.

  • All the fruits are together.

  • All the cleaning supplies are in a separate spot.

You do it by meaning. AI does it with vector embeddings — turning meaning into numbers so it can sort, search, and suggest things for you.