Skip to content
Minute Campus.

How AI actually worksLesson 041 min

Why does AI read “tokens” instead of words?

Chatbots once miscounted the letters in strawberry because a model never sees letters. Your text is cut into pieces called tokens, and each piece is swapped for a number. Those numbers are all the model receives. A fixed set of pieces, often a hundred thousand or more, lets it build any word. Limits and prices are counted in tokens, about three quarters of a word each in English.

Remember

A model reads numbered pieces of words, so letter-level questions can trip it up.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

For a long time, chatbots could not count the letter R in strawberry. Many said two. The reason: AI does not see letters, or even words. Before your text reaches the model, it is cut into pieces called tokens. A short, common word is usually one token. A long or rare word is split into several pieces. Then every piece is swapped for a number. Those numbers are all the model ever sees. Why not just use whole words? There are too many, and new ones appear every day. With a fixed set of pieces, often a hundred thousand or more, the model can build any word, any name, even a typo. It is also why limits and prices are counted in tokens. In English, one token is about three quarters of a word. Next: why the same prompt gives a different answer each time.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.