Computer science
Why does ChatGPT chop words into pieces?
It doesn't read letters or whole words. It reads tokens: common chunks of words, like “un”, “believ” and “able”.
In this lesson
One word chopped three ways, and a message measured in tokens.
Your notebook page
- AI reads tokens: common chunks of words.
- A token is a bit less than a word.
- Long, rare words split into pieces.
- Limits and prices count tokens.
Where you'll see it today
A chat app's “message too long” warning, AI prices per million tokens, a long PDF that won't fit in one chat.
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?
