What is a context window?

Definition

The context may contain instructions, conversation, documents, multimodal input and generated output. A large limit lets more information fit but can increase latency, cost and memory demand.

A headline token count does not show how reliably the model uses distant details. Practical evaluation should test retrieval and reasoning across the claimed range with realistic projects and distractions.

ELI5

A context window is the amount of information an AI model can consider at one time. It can include the current request, earlier conversation, documents, instructions, and results returned by tools.

For example, if a long software project no longer fits, the system may keep the requirements and recent changes while summarizing older discussion. A larger window holds more, but filling it with irrelevant material can still confuse the task.

Does a one-million-token context window guarantee useful recall?

No. It describes capacity, while retrieval and reasoning tests show whether distant information is used reliably.

What costs can grow with context length?

Memory use, processing time and provider charges can increase as more tokens enter the request.

  1. Jack Roberts and Nick Saraev beside the words The Free Model Mystery
  2. GLM 5.3 Flash - Local Sweet Spot beside a flat layered model block with a small active core
  3. Bilawal Sidhu beside the headline Video Becomes a World
  4. Thomas Wolf and Olive Song beside the words Million-Token Context
    Why AI Agents Need Million-Token Context
    AI Engineer20m 48s1 VIEW
  5. Memory Hungry - Compute Light beside a flat memory stack feeding sparse compute nodes
  6. David Ondrej and Ahmad M. Osman beside the words Own Your AI Compute
  7. Portrait of Bijan Bowen beside the words Ox Alpha Shows Promise
  8. A flat attention-blue local-agent chip on a black background beside the headline ‘27B LOCAL AGENT’.
  9. 0xSero against a black background beside the blue and white headline "Local AI Tradeoffs".
  10. Louis-François Bouchard, Omar Solano and Samridhi Vaid comparing cached conversation history, compaction and retrieval for an AI tutor.
Definition card for context window: What is a context window?

A context window is the maximum amount of tokenized information an AI model can consider during one processing session.