Uploaded October 2026 | Updated December 2026, 3 hours ago
In Lesson 22, every word got a list of numbers, and similar words ended up close together. But who decided those numbers? Nobody — they were learned. In this lesson, we see how.
We play the game an embedding model plays: hide a word and guess it from its neighbours. Each wrong guess nudges the word lists themselves, so words that fill the same blanks drift together on the map. Then we see how sentence embeddings are trained by pulling matching pairs together and pushing mismatched pairs apart, and how this powers search by meaning (the same idea behind smart search and suggestions in many apps).
In this lesson:
- You can tell a lot about a word from the words around it.
- The hide-a-word game, and how it moves words on the map.
- Pulling matching sentence pairs together, pushing others apart.
- Search by meaning and "similar" suggestions.
- What "close on the map" really means — and the unfair patterns a map can learn.
Try both quiz questions before the answers appear: do "hot" and "cold" end up near or far, and how is a search embedding model trained?
▶ Previous lesson — Why Is Training AI So Expensive? youtube.com/watch?v=xZIZvweztE8
▶ Full AI for Beginners course (free): youtube.com/playlist?list=PLZRvbQ5k8TxM
Chapter 8, Lesson 27. No coding required. Lessons 20 and 22 give useful background. Real embedding maps have hundreds or thousands of unnamed directions; the 2-D map in this lesson keeps the idea simple.
Subscribe to The Practical School for short lessons that make ideas practical.
#AIForBeginners #Embeddings #ThePracticalSchool
In Lesson 22, every word got a list of numbers, and similar words ended up close together. But who decided those numbers? Nobody — they were learned. In this lesson, we see how.
We play the game an embedding model plays: hide a word and guess it from its neighbours. Each wrong guess nudges the word lists themselves, so words that fill the same blanks drift together on the map. Then we see how sentence embeddings are trained by pulling matching pairs together and pushing mismatched pairs apart, and how this powers search by meaning (the same idea behind smart search and suggestions in many apps).
In this lesson:
- You can tell a lot about a word from the words around it.
- The hide-a-word game, and how it moves words on the map.
- Pulling matching sentence pairs together, pushing others apart.
- Search by meaning and "similar" suggestions.
- What "close on the map" really means — and the unfair patterns a map can learn.
Try both quiz questions before the answers appear: do "hot" and "cold" end up near or far, and how is a search embedding model trained?
▶ Previous lesson — Why Is Training AI So Expensive? youtube.com/watch?v=xZIZvweztE8
▶ Full AI for Beginners course (free): youtube.com/playlist?list=PLZRvbQ5k8TxM
Chapter 8, Lesson 27. No coding required. Lessons 20 and 22 give useful background. Real embedding maps have hundreds or thousands of unnamed directions; the 2-D map in this lesson keeps the idea simple.
Subscribe to The Practical School for short lessons that make ideas practical.
#AIForBeginners #Embeddings #ThePracticalSchool










