liveBook · Manning

Context window

As explained in Grokking AI Applications

A context window is the maximum number of tokens a language model can process in one prompt.

A context window is an LLM’s working memory for one prompt: the maximum number of tokens it can process at once. More text is not always better; long calls can reduce performance before reaching the hard limit. section 6.1 section 1.6

This limit matters when designing agents. Giving one agent too many tools, tasks, and descriptions clutters its available context, makes tool selection less reliable, and complicates debugging. Splitting work among specialized agents keeps each context more manageable. section 6.1

GPT-3 prompt capacity

GPT-3 allowed a maximum of 2,048 tokens in one prompt—roughly three pages. Modern models can accept much larger contexts, sometimes including entire books, but practical performance can still decline as calls grow longer. section 1.6 section 6.1

Figure 6.1 It’s difficult to be a solo agent with too much on its plate!

Use the overloaded-solo-agent illustration to visualize how excessive tools and tasks crowd an agent’s working context. section 6.1

How Grokking AI Applications covers it

How deep it goes
Defines token capacity, gives a GPT-3 example, and explains practical degradation without detailing context implementation.
Examples
Uses GPT-3’s 2,048-token prompt limit and an overloaded solo-agent scenario.
What you can do after
Evaluate prompt and tool-load trade-offs when designing language-model agents.
How it connects
Connects tokens, prompts, language models, agents, tool selection, and multi-agent systems.

Also explained in

Compare how 22 books explain context window →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking AI Applications. The section links point to the parts of the book it draws on.