What is a context window?
What is it?
A context window is the amount of text an AI model can consider at one time. It includes your prompt, any previous messages in the conversation and the AI's responses. Once the conversation exceeds the context window, earlier content may be forgotten.
In plain English
Imagine the AI has a notepad with a fixed number of lines. Everything in the current conversation is written on that notepad. When the notepad is full, the oldest lines get erased to make room for new ones. The AI can only work with what is currently on the notepad.
A real-world example
You are using an AI tool to help you edit a long document. You paste in the first half, make changes, then paste in the second half. By the time you are working on the second half, the AI may have forgotten the instructions you gave at the start of the conversation.
Why it matters
Knowing about context windows helps you understand why AI tools can seem to forget earlier instructions in a long conversation, and why it is sometimes better to start a fresh conversation for a new task.
What can go wrong?
If important instructions or context fall outside the context window, the AI may produce inconsistent or lower-quality responses. Very long documents may need to be processed in sections.
Have a go
Start a long conversation with an AI tool, giving it a specific instruction at the beginning (such as 'always respond in bullet points'). After many exchanges, check whether it is still following that instruction.
Context window sizes vary significantly between models and are increasing over time.
Progress is saved in your browser. Sign in to save it permanently.