Skip to content
Updated Nov 11, 2026

Term · How models work

Context window

The maximum amount of text, measured in tokens, that a model can take into account at once: the conversation, attached documents, its instructions and its own answer. It is its working memory.

Also called
context windows
Category
How models work

What it is

The context window is everything the model “sees” at a given moment: the GlossarySystem promptFixed instructions a model receives before any conversation: who it is, how it should talk and what it can and can’t do. People chatting with it usually don’t see them, but they shape every answer.More about System prompt →, previous messages, the files you give it and what it is writing. It’s not the same as what it learned in training. It’s measured in GlossaryTokenA chunk of text a language model works with: a word, part of a word or a symbol. Models read and write in tokens, and AI APIs charge and set limits based on how many you use.More about Token →, and each model has its own.

In practice

That’s why, in very long conversations, the assistant can seem to forget what you told it at the start: it no longer fits in the window, or the tool has had to summarize it to make room. If you’re going to ask it to compare two 200-page reports, a large window saves you from splitting up the documents.

Watch out for…

Just because something fits doesn’t mean it gets used well. With a lot of text, models can miss details. For important tasks, open a new conversation for each topic and make clear in your message which part of the document you care about.

Learn more at ibm.com (opens in a new tab)

Appears in

Actions