Discuss your project

Glossary

Context Window

The context window is the maximum amount of text that a language model can take into account in a single request. It is measured in tokens and includes instructions, conversation history, documents, and usually also the answer.

October 13, 2026Context WindowLLMToken

With every request, a language model only takes into account what fits into its context window. Everything outside it does not exist for the model. This explains many everyday observations: why an assistant seems to forget earlier instructions in a very long chat, why you cannot evaluate any number of documents at the same time, and why long requests cost more.

The size of the context window is an important criterion when selecting a model. It has grown significantly in recent years but still differs greatly between models.

How does the context window work?

A large language model does not store anything between two requests. To make a chat appear coherent nonetheless, the application resends the previous history with every new message. The context window typically includes:

All of this is measured in tokens. When the window is full, the application has to shorten: older messages are cut off or summarized, and documents are shortened or rejected.

A large context window does not automatically mean that all content is taken into account equally well. With very long inputs, individual pieces of information can be overlooked.

Typical examples

What companies should keep in mind

How it differs

The context window is not long-term memory. Some assistants offer a memory feature that remembers preferences or facts across multiple conversations. Technically, this stored information is loaded back into the context window when needed and also takes up space there.

View AI software development

YOUR NEXT STEP

What should
work better
next?

Tell us briefly what you have in mind. We will assess it and suggest a sensible next step.