What is a context window?
The context window is the maximum amount of text, measured in tokens, that a language model can process at once: the prompt, attached materials, the conversation history and the answer.
Explanation
The context window is a kind of working memory of the model. Everything that fits into it, the model "sees" and can work with. What does not fit does not exist for the model. In long conversations, applications therefore shorten or summarise the older parts.
The size of the window differs between models, from tens of thousands to more than a million tokens. A larger window makes it possible to insert, for example, a whole contract, an annual report or a large piece of code at once. It does not automatically mean a better answer, though: with a very long input the model may overlook a detail, and every input token is paid for.
That is why even models with a large window are often combined with RAG, which puts only the relevant parts of documents into the window. The context window is also not permanent memory: once the conversation ends, the model remembers nothing unless the application stores the history and sends it again.
Example from a company
In a tender, all the bids fit into the context window at once, so AI compares them against the same criteria. With thousands of documents in an archive, search through RAG is used instead.
Related terms
Related AICO service
ChatGPT and Claude for business: ChatGPT and Claude for business: company accounts, data protection, usage rules, connection to documents (MCP), training. From €990 excl. VAT.
Not sure where to start? Order a free AI Discovery: our person goes through your company with you, and within 24 hours you have an opportunity map.