Table of Contents
Embeddings Explained: How AI Turns Words Into Coordinates
Embeddings explained: how AI turns words into numbers, why king minus man plus woman lands near queen, and the study-guide feature the idea quietly powers.
An embedding is a list of numbers that gives a word, sentence, or document a position in a space where distance means difference in meaning. Thatâs it. âDogâ becomes something like [0.21, -0.88, 0.04, âŠ] with a few hundred or a few thousand entries, and âpuppyâ lands nearby while âalgebraâ lands far away.
This is the quietest important idea in AI, and itâs also the most teachable. Your kid already understands coordinates from a map. Embeddings are a map with hundreds of directions instead of two. And when Gemini in Google Classroom, live since August 10, 2026, builds flashcards from a teacherâs uploaded materials rather than from the internet, embeddings are how it finds the right passage.
Key Takeaways
- An embedding turns text into a vector: a fixed-length list of numbers. Similar meanings get nearby vectors, which is the entire point.
- Mikolov et al.âs 2013 word2vec paper showed that these vectors capture relationships well enough to do arithmetic with meaning, learning âhigh quality word vectors from a 1.6 billion words data setâ in under a day.
- Similarity is measured by distance or angle between vectors, not by shared letters. âCarâ and âautomobileâ are close; âcarâ and âcardâ are not.
- Embeddings are the search step in every âchat with your documentsâ feature, including study guides built from class materials.
- The failure mode to teach: embeddings capture statistical association, which means they also capture bias present in the training text.
What a vector actually is, and why numbers beat words
Start with the problem. A computer needs to compare meaning, and letters donât help. âCarâ and âcardâ share three characters and mean nothing alike. âCarâ and âautomobileâ share one and mean the same thing.
So the trick is to represent each word as a point in space, positioned so that position encodes meaning. Instead of two coordinates like a map, use several hundred. Each dimension is a learned direction that captures some aspect of how the word is used, and none of them has a human name.
How does the model learn where to put each word? By looking at context. Words that appear in similar surroundings get similar positions. âThe ___ barkedâ and âthe ___ fetched the ballâ both tend to have âdogâ in the blank, so âdogâ ends up near other words that fit those slots.
The foundational paper is Mikolov, Chen, Corrado, and Dean, âEfficient Estimation of Word Representations in Vector Spaceâ, 2013. It introduced two architectures, CBOW and Skip-gram, and the reason it mattered was efficiency: it learned âhigh quality word vectors from a 1.6 billion words data setâ in less than a day, which put embeddings within reach of anyone with a computer.
The result that made it famous is the arithmetic. Because relationships are encoded as directions in the space, you can add and subtract vectors. Take the vector for âking,â subtract âman,â add âwoman,â and the closest word to the result is âqueen.â The direction from âmanâ to âwomanâ turns out to be roughly the same direction as from âkingâ to âqueen,â and from âuncleâ to âaunt.â Nobody programmed that. It emerged from counting which words appear near which other words.
The reason modern embeddings can tell âriver bankâ from âbank accountâ is the attention mechanism introduced in Vaswani et al.âs 2017 paper. Modern systems have moved past single-word vectors to contextual and sentence-level embeddings, where âbankâ gets a different vector in âriver bankâ than in âbank account,â and where a whole paragraph gets one vector. The core idea is unchanged: meaning becomes position, and similarity becomes distance.
Where your kid meets embeddings without knowing it
Every feature that searches your own material uses embeddings. The pattern is always the same three steps.
Step one: index. Split the source material into chunks and compute an embedding for each. Store them.
Step two: query. Compute an embedding for the studentâs question.
Step three: retrieve. Find the stored chunks whose vectors are closest to the questionâs vector, and hand those to the model as context. Lewis et al.âs 2020 NeurIPS paper formalized this pattern as retrieval-augmented generation, pairing a âdense vector index of Wikipediaâ with a text generator.
Thatâs how Gemini in Google Classroom generates flashcards and practice quizzes from a specific assignment. The August 4, 2026 announcement says the feature incorporates âthe relevant title, assignment instructions, and curriculum materials as context directly from Google Classroom,â and includes syncing to Gemini Notebook for study guides and audio overviews. It went live on the web August 10 and on mobile August 17. That grounding, class materials rather than the whole internet, runs on embedding similarity. Our companion piece on retrieval-augmented generation walks through the full pipeline.
Googleâs broader August 2026 roundup lists the same grounding pattern in SAT prep and study tools. Same mechanism, other places your kid already touches: the ârelated videosâ list on a learning platform, plagiarism detection that catches paraphrases, a search bar that finds âhow do I calculate areaâ when the document says âcomputing surface measurements,â and spam filters that recognize a scam written in new words.
The important consequence for a student: retrieval by meaning means bad chunking produces bad answers. If a teacherâs PDF is split mid-sentence, the vector for that chunk represents half an idea, and the retrieved context will be subtly wrong. When a study tool gives a confidently incomplete answer, this is often why.
What embeddings get wrong
Embeddings learn from text, so they learn what the text contains, including things nobody wanted them to learn.
The canonical demonstration used the same arithmetic that made word2vec famous. If âking minus man plus womanâ gives âqueen,â then analogies involving occupations can produce results that reflect stereotypes present in the training corpus rather than anything about the world. The mechanism is neutral. The data is not.
Two more limitations worth knowing:
Similarity isnât truth. Two passages can be close in embedding space and contradict each other, because theyâre about the same topic. Retrieval finds relevant text, not correct text.
Negation is hard. âThe experiment workedâ and âthe experiment did not workâ are close in embedding space, because they share nearly all their words and topic. Thatâs a real and persistent weakness, and it matters for anything where a kid is trying to find whether a source supports or refutes a claim.
Those two together explain a class of AI study-tool errors that look like hallucination but arenât. The model retrieved something relevant and then reasoned from it. The retrieval wasnât wrong exactly; it was insufficiently precise.
How to Teach Your Kid About Embeddings
Embeddings are coordinates. Every kid whoâs played Battleship or read a map already has the concept; youâre adding dimensions and meaning.
Ages 5â8: The floor map of words
Clear a space on the floor. Put a paper labeled âanimalsâ in one corner and âfoodâ in the opposite corner. Hand your kid word cards (dog, cat, pizza, apple, horse, bread, tiger, cake) and have them place each card closer to whichever corner fits. Now add a third label, âbig,â on a chair, so height becomes a dimension. Ask where âelephantâ goes. Name it: âYou just gave every word a place. Computers do this with hundreds of directions instead of three, and thatâs how they know which words mean similar things.â
Ages 9â12: Two-dimensional word math
Draw an x-y grid on graph paper. Put âmanâ at (2,2), âwomanâ at (2,6), âkingâ at (8,2). Ask your kid where âqueenâ should go. Most kids say (8,6) immediately, because they see the pattern. Then tell them thatâs exactly what happens in real embeddings: the direction from âmanâ to âwomanâ is the same direction as from âkingâ to âqueen,â which Mikolovâs team published in 2013. Then try a few more (uncle/aunt, boy/girl) and one that breaks (car/cars vs. child/children) and talk about why irregular cases are harder.
Ages 13+: Rank by similarity, then check the machine
Have your teen write one target sentence and ten candidate sentences, some on-topic with different words, some off-topic with shared words. Their job: rank the ten by meaning-similarity to the target, by hand. Then paste the same eleven into an AI tool and ask it to rank by semantic similarity. Compare the two rankings. Where they disagree is the interesting part, and negation cases (âthe treatment helpedâ vs. âthe treatment did not helpâ) will usually be where the machine looks worst.
The question to ask: âHow would you explain to a computer that âhappyâ and âgladâ mean the same thing, if it canât understand words?â
Word to vector: a worked demonstration
| Word or phrase | Simplified 3-dimensional position (living, size, edible) | Nearest neighbor in this toy space | Why |
|---|---|---|---|
| dog | (0.9, 0.4, 0.0) | cat | Both living, small-to-medium, not food |
| cat | (0.9, 0.3, 0.0) | dog | Same region |
| elephant | (0.9, 1.0, 0.0) | horse | Living and large |
| pizza | (0.0, 0.3, 1.0) | bread | Non-living and edible |
| bread | (0.0, 0.2, 1.0) | pizza | Same region |
| car | (0.0, 0.7, 0.0) | truck | Non-living, large, not edible |
| card | (0.0, 0.0, 0.0) | paper | Shares letters with âcarâ and nothing else |
A real embedding has 300 to 3,000+ dimensions instead of 3, and no dimension has a human-readable label like âedible.â This table is a teaching simplification, not a real vector. The point it makes accurately: âcarâ and âcardâ end up far apart despite sharing letters, and âpizzaâ and âbreadâ end up together despite sharing none.
What to do at home
Teach the word âsimilar,â not âsameâ
Embeddings find similar. Thatâs different from finding correct, and different from finding the answer. A kid who says âthe tool found something similar, let me check whether itâs rightâ has internalized the right model of the machine.
Test the negation trap once
Have your kid ask a study tool whether a source supports a claim, using a source that explicitly contradicts it. Watch whether the tool notices. Often it retrieves the relevant passage and then handles the negation correctly, but not always, and seeing the failure once makes the lesson permanent.
Point at the grounding
If your kidâs school tool builds quizzes from class materials, tell them the tool is searching the teacherâs documents by meaning, not by keyword. That changes how they phrase questions: describing the concept works better than guessing the exact wording.
Notice the bias question early
âWhere did these numbers come from?â leads directly to âthey came from counting how people actually write,â which leads to why stereotypes show up in outputs. Itâs a natural, non-preachy entry point, and it connects to the broader picture in when AI is wrong.
What not to do
Donât tell your kid the computer âunderstandsâ the words. It has positions, and it computes distances. Whether that constitutes understanding is a genuinely open philosophical question, and the honest answer (âit behaves as if it does, using geometryâ) is more interesting than either extreme. Our guide to how large language models work sits one level up from this.
What to Watch For Over the Next 3 Months
- Week 4: Your kid can say that words become lists of numbers and that closer means more similar in meaning.
- Month 2 red flags: They think the AI is looking up keywords. Or they treat âthe tool found this passageâ as âthe tool proved this point.â
- Month 3 self-check: Ask them to predict which of three phrasings will retrieve the right section of a document. If they reason about meaning rather than matching words, theyâve got it.
Frequently Asked Questions
What exactly is an embedding?
A fixed-length list of numbers representing a word, sentence, or document, positioned in a space where nearby vectors mean similar content. Typical sizes run from a few hundred to a few thousand numbers, and the individual numbers have no human-readable meaning.
Does âking minus man plus woman equals queenâ really work?
It works well enough to be a famous demonstration, published by Mikolov, Chen, Corrado, and Dean in 2013, and itâs not a parlor trick: relationships genuinely are encoded as consistent directions. It doesnât work on every analogy, especially irregular ones, and modern contextual embeddings behave somewhat differently than the original single-word vectors.
How is this different from a keyword search?
Keyword search matches characters. Embedding search matches meaning, so it can find âcomputing surface measurementsâ when the student typed âhow do I calculate area.â The trade-off is that it can also retrieve something merely on-topic rather than actually relevant.
Do embeddings have bias?
Yes, because theyâre learned from human text and encode the statistical associations in it, including stereotyped ones. This isnât a bug in the math; it reflects the data. Itâs worth knowing about before your kid takes a retrieved passage as neutral fact.
Why does my kidâs AI study tool sometimes pull the wrong section?
Usually one of three reasons: the source was chunked badly, so a vector represents half an idea; the question was phrased in a way that lands near a different topic; or the retrieved passage is genuinely about the topic but says the opposite of whatâs needed. Negation is a documented weak spot.
About the author
Ricky Flores is the founder of HiWave Makers and an electrical engineer with 15+ years of experience building consumer technology at Apple, Samsung, and Texas Instruments. He writes about how kids learn to build, think, and create in a tech-saturated world. Read more at hiwavemakers.com.
Sources
- Mikolov, T., Chen, K., Corrado, G., & Dean, J. (2013). âEfficient Estimation of Word Representations in Vector Space.â arXiv:1301.3781. https://arxiv.org/abs/1301.3781
- Google Workspace Updates. (2026, August 4). âGemini in Google Classroom is expanding to users of all ages with contextualized Gemini starter prompts for students.â https://workspaceupdates.googleblog.com/2026/08/gemini-in-google-classroom-is-expanding-to-users-of-all-ages-with-contextualized-Gemini-starter-prompts-for-students.html
- Lewis, P., Perez, E., Piktus, A., et al. (2020). âRetrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.â NeurIPS 2020. https://arxiv.org/abs/2005.11401
- Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). âAttention Is All You Need.â NeurIPS 2017. https://arxiv.org/abs/1706.03762
- Google. (2026, August). âGoogle AI updates, August 2026.â The Keyword. https://blog.google/innovation-and-ai/technology/google-ai-updates-august-2026/
- Liu, N. F., Lin, K., Hewitt, J., et al. (2023). âLost in the Middle: How Language Models Use Long Contexts.â TACL. https://arxiv.org/abs/2307.03172
- Common Sense Media. (2026, August 18). âTeens in the AI Era: Schoolwork and Skills That Matter.â https://www.commonsensemedia.org/research/teens-in-the-ai-era-schoolwork-and-skills-that-matter