What is a context window?
A context window is the maximum amount of text, measured in tokens, that an AI model can read and consider at one time.
Key takeaways
- The context window covers your instructions, your files, the conversation so far and the answer.
- When a conversation grows past the window, the tool drops or shortens the oldest parts.
- A model uses only what is in the window. It does not remember your other chats unless the tool adds them.
How it works
Each time you send a message, the tool sends the model everything it needs in one block. That block contains the system prompt, the earlier messages, any files and your new message. The block must fit in the context window. Text that does not fit is cut or summarized first.
Example
You work with an AI tool on a long proposal for two hours. Late in the session it forgets a rule you gave at the start. The early messages no longer fit in the window, so the model cannot see them.
Why it matters
Most cases of an AI that forgot something are context window cases. A short reminder of the key rules, or a fresh chat with a clear brief, fixes them.
Common mistake
A large window is not the same as good attention. Models can miss details in the middle of very long input, so put the most important instructions at the start or the end.
Related terms
See all terms in the AI Encyclopedia, the numbers on the AI statistics pages, or build a prompt with the prompt builder.