Context window

The amount of material a model can handle within a request. Its limits and accounting depend on the model and API.

Context window, common card #062 in The Glitch AI glossary: The amount of material a model can handle within a request. Its limits and accounting depend on the model and API.
GLS 062 · common

Also called: Context length.

For: Must know · Builders

Why it matters

It caps how much a model can see at once, which decides whether it can take in your whole document, codebase or chat history.

In practice

Instructions, conversation history and retrieved passages all compete for space.

Watch for

Fitting a document does not prove the model uses every detail correctly. Test questions that depend on specific passages.

Related terms

Token · Retrieval-augmented generation · Evaluation

Try it here

Build a prompt brief

Guides that use it

Pick your AI stack in five minutes. · 27 AI terms to know in 2027. · Context engineering is the real job. · Claude Code, the operator's way. · MCP servers and skills, explained. · Debugging with AI without going in circles.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term