Explaining Vector Embeddings to Your Mom

Aman KumarAman Kumar
3 min read

Hey Mom,
Today I want to tell you about something interesting from Artificial Intelligence (AI), but don’t worry, I’ll keep it simple — no complicated math, just an easy story.


What Are Vector Embeddings?

Imagine you want to explain “Chai” (tea) to someone who has never tasted it. Instead of saying the word “Chai,” you describe how it smells, tastes, and makes you feel. You’re giving a detailed description to capture the whole experience.

In AI, vector embeddings are like that description — but instead of words, computers use numbers. They turn every word, sentence, or even a whole paragraph into a set of numbers that capture its meaning.


Why Numbers?

Computers don’t understand words like we do. They only understand numbers. So, when you say the word “Chai,” the AI changes it into a special code made of numbers — this is called an embedding.

Think of an embedding as a secret numeric fingerprint of the word, capturing its “essence.”


How Does This Help AI?

When the AI reads a sentence like “How are you?”, it doesn’t see the words directly. Instead, it sees a series of numbers — like “22456 223 3456.” These numbers help the AI understand the relationship between words and their meanings.

Because each word’s embedding is a set of numbers showing its meaning and context, the AI can compare them and find patterns — like knowing that “Chai” and “Coffee” are similar because their embeddings are close to each other.


The Indian Touch — Bollywood Songs Example

Think about Bollywood songs — each song has a mood: happy, sad, romantic, or energetic. Instead of listing every word, you tell your friend the vibe you want. That vibe is like the embedding of the song — a numeric summary of its feeling.

Similarly, vector embeddings capture the “feeling” or “meaning” behind words and sentences, so AI understands them better.


Embeddings and GPT

GPT (Generative Pre-trained Transformer) uses these embeddings to predict the next word you might say.

For example, you say: “I’m feeling hungry.”
GPT looks at the embeddings of these words and guesses: “Let’s eat.”

This happens because GPT understands the meaning behind your words thanks to embeddings.


Wrapping Up

  • Vector embeddings turn words into numbers so computers can understand meaning.

  • These numeric codes capture the “essence” of words and sentences.

  • AI uses embeddings to find connections between words and predict what comes next.

  • This is how smart assistants and chatbots understand and respond to you.

So next time you chat with your phone or a bot, remember — behind the scenes, your words are converted into secret number codes that help the AI understand you like a friend.

10
Subscribe to my newsletter

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

Written by

Aman Kumar
Aman Kumar