Vector Embeddings

AniAni
2 min read

⚠️ Heads-up: This is a super simplified, high-level explanation — just enough to get what’s going on in systems like GPT, without drowning you in scary math symbols.


Me: “Hey Mom, want to know what vector embeddings are?”
Mom: “Mmm… sounds like something from your computer-nerd world. I’ll pass.”

📱 She’s already scrolling through her phone.
💡 Challenge accepted.


Me: “Okay… but it’s basically how computers remember stuff — kinda like how you remember people’s faces.”
Mom: “Hmm? Faces?” 👀


Me: “You know how you might not remember someone’s name, but you remember they wore a 💚 green saree at your cousin’s wedding, had curly hair, and laughed really loudly?”
Mom: “Oh, yes! Like that lady from two years ago—what’s her name—uhh…”
Me: “Exactly! You don’t store the whole person in your head, just details. That’s kinda what vector embeddings do for computers.”


Mom: “So… a computer remembers details instead of the whole thing?”
Me: “Yep ✅. If I give a computer a word, a sentence, or even a picture 🖼️, it doesn’t keep the thing itself. It turns it into a list of numbers — each number describing a tiny detail. That list is called a vector embedding.”


Mom: “List of numbers? Sounds boring again.” 😑
Me: “Think of it like a recipe. 🍲”
Mom: “Now you’re talking.” 😏
Me: “If I give you a recipe, you can recreate the dish without having the dish right there. The recipe is like the vector embedding — not the thing itself, but it has all the important details.”


Mom: “So these ‘vectors’ are like recipes for words or pictures?”
Me: “Exactly 🎯. And here’s the cool part — because everything’s numbers, the computer can compare them. If two recipes are similar, it knows the dishes are similar. That’s how Google finds similar images 📷 or Spotify recommends songs 🎵 that feel alike.”


Mom: “Wait… so that’s also how that AI thing you use ‘understands’ me?”
Me: “Bingo. 💥 GPT takes your words, turns them into embeddings, looks for related ideas in its giant memory of embeddings, and responds in a way that makes sense.”


📱 She puts her phone down.
🏆 Victory.

Mom: “Okay… that’s actually clever. Show me how it works.”
And just like that, she’s asking about cosine similarity while sipping tea.


🔹 Wrap-up

Vector embeddings = a computer’s way of remembering details (as numbers) instead of the whole thing. Think of them as recipes for data — makes it easy to compare and find similarities.

0
Subscribe to my newsletter

Read articles from Ani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ani
Ani