Context Window
The maximum amount of text, measured in tokens, that a model can consider in one request.
Reviewed May 7, 2026
What it is
The context window includes the system prompt, conversation history, retrieved documents and the model's own output. When the window is full, older content must be dropped, summarised or retrieved selectively.
Why it matters
A large context window is not a substitute for good retrieval. Models can lose track of details in the middle of very long inputs, and irrelevant context can distract them. Curating the input often improves quality more than increasing the limit.
Practical note
Design for the smallest context that contains the necessary evidence. Keep instructions near the start or end, label sections clearly, and test whether removing a document changes the answer.
Keep learning
Concepts are easier to remember when you apply them. The foundations path connects this term to practical exercises.
AI foundations path →