Glossary
Context Window
KON-tekst WIN-doh
The maximum amount of text an AI model can consider at once, measured in tokens.
The context window is how much text an LLM can take into account in a single request: your prompt, the conversation so far, any attached files and its own answer. It’s measured in tokens.
How it works
Everything inside the window is visible to the model. Anything that doesn’t fit gets cut off or has to be summarized. Modern models have windows from around 128K to over 1 million tokens.
Why it matters
- A bigger window lets you include whole codebases or long documents.
- More context means higher cost and slower responses.
- Models can still miss details buried in very long inputs, so focused context beats dumping everything in.
Related: RAG, a way to send only the context that matters.