AI, Actually ExplainedLesson 25 of 92

Module 3 · What a chatbot is actually doing

The desk it works on, and what falls off it

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 6 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
Eight things competing for one deskThe hidden system promptProduct-supplied instructions; length and roledepend on the application.Stored memoriesSaved records selected and included by the product,if it supports this.Tool descriptionsThe tools offered for this request and how to invokethem.Attached files and imagesIncluded text or image representations; tokenaccounting depends on the model and input settings.Retrieved search resultsSelected passages with source identifiers where theproduct supplies them.Selected earlier conversationSelected earlier messages or summaries, rather thannecessarily the entire history.Your current messageYour request and any relevant material you includewith it.The reply being generatedGenerated tokens, within the model’s applicableinput and output limits.Depending on the product and model, selected material from these categories can share a request’scontext budget. Not every item is always present, and earlier material may be summarised, retrieved oromitted. Inclusion does not guarantee correct use; billing and cache rules are separate.
Depending on the product and model, selected material from these categories can share a request’s context budget. Not every item is always present, and earlier material may be summarised, retrieved or omitted. Inclusion does not guarantee correct use; billing and cache rules are separate.

Figure

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

Everything the model can see

The context window limits the amount of input and generated material a model can handle in a request, using model-specific token or representation rules. The desk analogy helps: only supplied material is directly available in that context. It is not the same as learned knowledge in the weights or durable storage maintained by the product.

Depending on the application, these eight kinds of material can share that working space:

  • instructions supplied by the product
  • your current message
  • selected earlier conversation, possibly summarised
  • text or representations from attached files and images
  • retrieved search results
  • saved memories that the product selects and includes
  • descriptions of tools available for this request
  • the reply being generated, subject to the model’s input and output limits

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) ‘The desk it works on, and what falls off it’, in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/the-context-window (Accessed: 29 November 2026).