Computer science
How does AI know “king” is close to “queen”?
Inside a chat AI, every word is a point on a map of meaning. Similar words sit close, and the same step means the same change.
In this lesson
A tiny meaning map with two directions.
Your notebook page
- Every word is a point on a meaning map.
- Close = similar.
- Same arrow, same change.
- king − man + woman ≈ queen.
Where you'll see it today
A search that finds “cheap flights” when you type “low-cost tickets”, a music app's similar songs, a translation app.
The course
Build your own ChatGPT
Every lesson adds a part. Finish them all to build the Pocket chatbot.
- 1Next wordsHow does ChatGPT pick the next word?
- 2Keyboard guessesHow does your keyboard guess your next word?
- 3TokensWhy does ChatGPT chop words into pieces?
- 4Meaning mapsHow does AI know “king” is close to “queen”?
- 5AttentionHow does AI know what “it” means?
- 6Learning from mistakesHow does a neural network learn from mistakes?
- 7TemperatureWhy does ChatGPT sometimes make things up?
- 8Build the chatbotCan you train a mini chatbot?
