← Glossary · Concepts

context window

Concept

Fact-checked May 20, 2026

Also called: context length, window size, sequence length

The context window refers to the amount of information an AI model can 'see' and process at any given time when generating a response. It's like the AI's short-term memory.

Imagine you're having a conversation. You remember what was just said to understand the next sentence. An AI model works similarly, and its 'context window' is the limited space it has to hold onto that prior conversation or input. This window determines how much information from earlier in a prompt, document, or chat history the model can consider when formulating its next output. If the conversation or text goes beyond the context window's capacity, the older information is essentially 'forgotten' by the model, which can affect its ability to maintain coherence and accuracy over longer exchanges.

Larger context windows allow AI models to process and generate longer, more complex, and more consistent content. For example, a model with a small context window might struggle to summarize a long document because it can only 'read' a small portion at a time. A model with a larger context window, however, can digest the entire document, or a significant part of it, providing a more comprehensive summary. Improving context windows is a key area of research in AI, as it directly impacts the practical applications and capabilities of these powerful models.

Learn AI in 5 minutes a day.

Daily Deck explains terms like context window as part of a free seven-card daily brief. No jargon. No fluff.

Start free