Economic concept

Context window

The amount of information an model can process within a request, measured in tokens.

Definition checked Oct 11, 2026.

Save concept

What it means

A context window is the maximum amount of material a language model can work with during a response, measured in tokens. It is a working space for the current request, rather than a record of everything the model has learned during training. Instructions, conversation history, documents and tool results can all compete for that space, along with the generated response under the model's counting rules.

How it works

An application assembles the context before asking the model to respond. When it approaches the limit, it may remove older messages, select fewer documents or summarize earlier work. The provider can also impose a separate maximum response length. A larger window allows more material to fit, but fitting information inside it does not guarantee that the model will use every detail accurately.

A hypothetical example

Suppose a hypothetical model allows 12,000 total tokens. Instructions use 2,000, documents 6,000 and the conversation 1,000. That leaves at most 3,000 for a response, assuming those are the only counted items. Adding another 2,500-token document leaves only 500. The application must shorten the input, accept a shorter answer or choose a model with sufficient capacity; wishing for a 3,000-token answer cannot overcome the limit.

What to distinguish

Context capacity differs from permanent memory and from a model's knowledge of recent events. A long-context model still needs current information supplied or retrieved. Summaries can preserve decisions but omit details, while retained files can be retrieved again later. When a product advertises a large window, also consider retrieval quality, response limits, latency and whether useful facts survive long conversations.

Sources

In the news

Google adds security and memory-focused TPU systems around existing chips

Anthropic lowers small-model API prices with Haiku release