AI, Actually ExplainedLesson 21 of 92

Module 3 · What a chatbot is actually doing

Text is chopped up before the model sees it

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 of 11 in this chapter

This chapter’s goalTrace text through tokenisation and next-token generation, distinguish training from inference, and explain how attention, decoding, context management, retrieval and product controls affect an assistant. Check sources instead of treating fluent answers or citations as proof.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch11:01Watch12:27
Full audiobookNot availableNot available
One passage, five hypothetical token countsEncoding example A14Encoding example B17Encoding example C46Encoding example D48Encoding example E52illustrative token counts, not measured language resultsThese five counts are hypothetical, not results for English, Spanish, Hindi, Bengali or Tamil. Theyillustrate the arithmetic: more tokens for a passage can use more of a fixed token window and costmore on a token-billed API. Actual multilingual differences must be measured with the exact texts andtokenizer; Ahia and colleagues’ 2023 study provides evidence for the systems it tested.
These five counts are hypothetical, not results for English, Spanish, Hindi, Bengali or Tamil. They illustrate the arithmetic: more tokens for a passage can use more of a fixed token window and cost more on a token-billed API. Actual multilingual differences must be measured with the exact texts and tokenizer; Ahia and colleagues’ 2023 study provides evidence for the systems it tested.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Text becomes token identifiers

Before a text model processes a message, a tokenizer converts it into token identifiers, which are then represented by numerical vectors. The model does not receive a printed page in the way a person sees it. But it can learn information about spelling; tokenisation does not make letters unknowable.

A token may represent a word, part of a word, punctuation, bytes or other symbols. Four characters per token, or about three quarters of an English word, is only a rough English-text estimate for some tokenizers. Seven hundred and fifty words might be around one thousand tokens; an actual book must be counted with the chosen tokenizer.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Meenal, your AI tutor

How to cite: Addaly (2026) ‘Text is chopped up before the model sees it’, in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/words-into-tokens (Accessed: 29 November 2026).