Software Factories at enterprise scale: A federated platform for agentic developmentDownload the free Whitepaper
AI Native Terms

What Is a Context Window?

Written byre:cinq StaffUpdated 16 Sept 2026

The context window is the amount of text an AI model can remember and consider at one time when generating a response. AI models need to understand the full history of a conversation or the entire scope of a document to provide relevant answers, but they have a limited "short-term memory" for any single task.

Continue readingHow it helps

How it helps#

A larger context window allows the AI to process more information at once, leading to more accurate summaries of long reports, more consistent chatbot conversations, and answers that correctly use all the details you’ve provided.

How it works#

When you give an AI a prompt, like a question or a document, it breaks the text down into smaller pieces called "tokens" (a token is roughly a word or part of a word). The context window is the maximum number of these tokens the model can hold in its active memory for a single task. All the information within this window—your questions, its previous answers, and any documents you've provided—is considered simultaneously to generate the next response.

If the amount of text exceeds the context window's limit, the model effectively forgets the earliest information provided in that specific session. This is why models with larger context windows are better at tasks involving long documents or extended conversations, as they can maintain a complete picture of the task without losing critical details.

Keep up with the Knowledge BaseEvery two weeks, get new terms and updated definitions straight to your inbox.

Related terms

  • Token

    What Is a Token in AI?

    A token is a fundamental piece of text, like a word or part of a word, that an AI model uses to process and understand information.

  • Attention

    What Is Attention in AI?

    A mechanism that lets an AI model focus on the most relevant parts of its input when making a decision or generating output.

Spot something we missed, got wrong or could explain better? Send us a correction or suggestion—help improve the Knowledge Base, and get credited if we publish it.