Context window
The context window is the limited amount of information that a language model can consider simultaneously in a single processing run. It is measured in tokens and includes instructions, inputs, provided documents, the conversation so far and, depending on the system, also the generated answer.
What does not fit into the context window cannot be considered by the model. For content teams this means: select sources by relevance instead of passing on as much material as possible unfiltered.
Why this matters for you
The context window determines how much an AI model can consider at the same time: brand guidelines, source documents, conversation history and the task. Whoever knows its limits understands why long chats lose quality and how to prepare documents so that the AI captures what matters.
Context
The context window is measured in tokens, that is word and syllable components. In English, a token roughly corresponds to four characters. Depending on the provider, modern models process several hundred thousand to over a million tokens, which corresponds to hundreds to thousands of pages. Everything a model should consider for an answer must fit into this window: system instructions, documents, history so far and the actual question.
A large window does not mean that all content is considered equally well. Studies show that information in the middle of long inputs is more easily overlooked. If the window is exceeded, older parts are cut off or summarized. That is why it is worth selecting context deliberately instead of simply passing on everything.
How do you work with the context window for long documents?
For long documents, you work best with the context window by dividing and condensing material instead of passing everything on at once.
- Select deliberately: only pass on the sections needed for the task. With a great deal of material, models more often overlook individual details.
- Divide: process very long documents in parts, for example chapter by chapter, and then combine the results.
- Summarize: have long sources condensed in advance and continue working with the checked summary.
- Repeat what is important: put central requirements such as audience or tone at the beginning and remind the model again in long conversations.
- Start fresh: start a new chat when the topic changes so that old content does not distort the result.
For permanently large knowledge stocks, retrieval-augmented generation is suitable, in which the system specifically retrieves suitable passages.
What to do when the context window is exhausted?
When a chat becomes too long or documents are no longer fully considered, these measures help:
- Start a new chat: summarize the most important results and start again with this summary.
- Shorten documents: only pass on the relevant sections instead of entire manuals.
- Split tasks: process long documents chapter by chapter and then combine the results.
- Outsource recurring content: store brand guidelines permanently in a context profile or knowledge base.
- Important content at the beginning and end: place central instructions where they receive the most attention.
A very long set of documents is selected by relevance before processing.
Typical mistakes
- Working endlessly in the same chat: as the history grows, accuracy and consideration of earlier requirements decrease.
- Passing on everything: unnecessary documents dilute the context and increase costs.
- Confusing a large window with thoroughness: even with plenty of space, details are overlooked.
Frequently asked questions
Context window or memory: what is the difference?
The context window is the working memory of a single processing run; the memory of some AI assistants stores information beyond individual conversations. What is in memory is loaded back into the context window when needed and takes up space there. If a conversation ends without a memory function, its content is no longer available to the model the next time.
How much text fits into a context window?
How much text fits into a context window depends on the model and is specified in tokens, not in words or pages. A token is often part of a word; German texts usually need more tokens than English ones. The limits differ greatly between models and grow with new generations. Check the figure for the specific tool you use.
What happens when the context window is full?
When the context window is full, depending on the tool, older parts of the conversation are cut off or summarized, or the input is rejected. Early instructions on tone or audience can then be lost without the tool pointing this out. So store permanent requirements in the system prompt or in project settings instead of only in the first message.
Does a large context window replace RAG?
A large context window does not completely replace RAG. It allows more material to be passed on directly but becomes more expensive and slower as the amount grows, and details can be overlooked. RAG selects suitable passages from a large stock with each request. For individual long documents, the context window is often enough; for entire knowledge stocks, RAG is suitable.
What does context window mean in AI?
The context window is the amount of text that an AI language model can process at the same time. This includes instructions, documents passed on, the conversation so far and the current question. What does not fit in cannot be considered by the model for its answer.
