Context Window
The maximum amount of text in tokens that a model can hold at one time: the prompt + the dialogue history + the answer.
What It Is
Every time you send a message, the model receives not only that message but the whole dialogue history. The context window is the hard limit of this working memory.
Examples:
| Model | Context |
|---|---|
| DeepSeek-V3 | 128K tokens |
| Gemini 1.5 Pro | up to 1M tokens |
| GPT-4o | 128K tokens |
What Happens When It Overflows
The oldest messages are dropped — the model stops seeing the start of the dialogue and may forget details.
Why It Matters
- long dialogues cost more;
- large documents do not fit into the context — that is what RAG is for;
- the KV cache stores the processed context.