Definition

Context Window

The context window is everything the model can see for a single request: system prompt, conversation history, retrieved documents, tool schemas, and tool results. The book's mental model is that the LLM is a CPU and the context window is its RAM; nothing outside it exists to the model. Windows grew from 512 tokens to over a million, but attention cost scales quadratically with length.

Context Window diagram from Intelligence at Scale
Diagram from chapter 8, Prompt Engineering and Context Engineering

Explained in

Chapter 8: Prompt Engineering and Context Engineering

The number one practical skill for anyone working with AI.

Related terms

This is one term. The chapter is the argument.

Intelligence at Scale: 22 chapters, 65,000 words, 80-plus diagrams. Kindle, paperback and hardcover on Amazon.

Buy on Amazon.com
← All terms