Module 4 · What the model can see

Chunking: the decision that quietly sets your ceiling

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalBudget a context window across system prompt, history, retrieved material and output; predict where in a long prompt information is most likely to be missed; and explain why prompt injection is a structural property of the input format rather than a bug awaiting a patch.

This chapter’s media

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

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

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

Step 1 of 6Free · no account needed
Lesson steps

The tension

Embed a whole 40-page document as one vector and it means everything and nothing: the vector is an average of forty pages of topics, and it will match weakly against every specific question. Embed each sentence and you get precision with no context: a retrieved sentence saying “This is not permitted for accounts opened before that date” is useless without knowing what “this” and “that” refer to.

Everything about chunking is managing that tension. There is no correct size, but there are clearly wrong ones and a set of decisions that reliably help.

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

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Chunking: the decision that quietly sets your ceiling’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/chunking-decisions (Accessed: 29 November 2026).