Context window what AI sees at once.

The context window is an AI model’s working memory: everything it can see at a given moment. Here is why a long chat “loses” earlier agreements and how to allow for that when AI works with your documents.

DefinitionA context window is the limit on how much text a language model takes into account for a single answer: the instructions, the conversation history, any attached documents and the answer itself. It is measured in tokens, and anything that does not fit is left out. The context window is the model’s working memory, not the knowledge it gained in training.

What goes into the context window?

Everything the model receives with a given question. In a chat, that is your messages, its earlier replies, any attached files and the provider’s hidden instructions. In an automation, it is the instruction, data from a system (for example the text of a customer’s email) and any document passages someone has added.

The model remembers nothing between conversations unless the tool itself adds earlier information back in. Each answer is produced only from what is in the window at that moment.

Why does AI forget what we agreed at the start?

Because the window has a limit, and in a long conversation the oldest messages may drop out of it or be shortened to a summary. Even when everything fits, a model picks up details less reliably in a very long context. Providers say so themselves: more text does not automatically mean a better answer.

Example: a salesperson spends an hour refining a proposal in a chat and finally asks for a summary. The summary brings back a discount that was rejected early in the conversation. The fix is simple: after an important change, start a new conversation and paste in only the current decisions.

What does it mean when AI works with your documents?

That it is not worth putting everything into the model at once. The full terms, price list and a hundred emails are a lot of tokens, a higher cost for every request and a bigger chance the model misses an important sentence. It is better to give it only what fits the question. That is how RAG works: the system first finds a few relevant passages and only then passes them to the model.

  • Short and focused. One task per conversation, or per step of an automation.
  • Key rules up front. Repeat the essential rules in the instruction rather than hoping the model finds them in a long file.
  • Check the result. When an answer relies on long material, ask which passage it comes from.

How an assistant picks the right passages from your documents is covered in the article on an AI assistant that answers from your documents.

Frequently asked questions

Is a bigger context window always better?

Not always. A bigger window lets you include more material, but every token costs money, and in a very long context the model can miss a detail more easily. Less, well-chosen information usually works better.

Is the context window the same as ChatGPT’s memory?

No. The context window applies to a single answer. “Memory” features in chat apps save selected information separately and add it to later conversations, so it also takes up space in the window.

See also

Sources

From the blog

Before you decide,
read this.

Last updated:

Contact

Let’s talk.

Write a few sentences about what you want to build. I reply within 24 hours.

Your details are used only to reply. More in the privacy policy.