Context window
Also: Kontextové okno, context length, model context
A context window is the amount of text a language model can process at once in a single request. It covers the system instructions, the conversation so far, attached documents, tool results and the response the model is generating. It is measured in tokens. It works as the model's working memory: anything that does not fit, or drops out, is not taken into account in the answer.
What it means for a company
The size of the context window decides how much company material can be handed to a model in one go. Current models handle hundreds of thousands to a million or more tokens, enough for long contracts or a large part of a codebase. A bigger window does not automatically mean better results: accuracy drops as the amount of text grows, and information in the middle is easier to miss. Every token in the window is also paid for and adds latency. For large knowledge bases it is usually cheaper and more reliable to put only the relevant passages into the window, for example with RAG.
In practice
A purchasing team uploads three supplier framework agreements, about 400 pages in total, to an AI assistant and asks how the late-delivery penalties differ. If the texts fit into the context window, the model can compare them in one pass. In a long conversation, however, accuracy declines and older parts may drop out of the window. A more reliable approach is to ask about each contract separately and require the article number behind every answer.
Frequently asked questions
How much text fits into a context window?
It depends on the model. Current large models typically offer between 200,000 and one million tokens, some even more. According to Google's documentation, one million tokens is roughly 50,000 lines of code or eight average-length English novels.
Does the model remember the context window between conversations?
No. The context window applies only to the current request or conversation. In a new conversation the model does not see earlier content unless the application inserts it again, for example through a memory feature or document search. Knowledge learned during training is not affected.
Is a bigger context window always better?
No. Research and vendor documentation show that accuracy declines as the amount of text grows and that models make poorer use of information placed in the middle of a long input. Longer input is also more expensive and slower. It pays to include only what the task really needs.