# Context window

Canonical page: https://www.theglitch.ai/ai-glossary/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.](https://www.theglitch.ai/images/cards/glossary/context-window.png?v=d1960d9c2e455995)

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](https://www.theglitch.ai/ai-glossary/token) · [Retrieval-augmented generation](https://www.theglitch.ai/ai-glossary/retrieval-augmented-generation) · [Evaluation](https://www.theglitch.ai/ai-glossary/evaluation)

## Try it here

[Build a prompt brief](https://www.theglitch.ai/tools/prompt-workbench)

## Guides that use it

[Pick your AI stack in five minutes.](https://www.theglitch.ai/learn/pick-your-ai-stack) · [27 AI terms to know in 2027.](https://www.theglitch.ai/learn/ai-terms-2027) · [Context engineering is the real job.](https://www.theglitch.ai/learn/context-engineering) · [Claude Code, the operator's way.](https://www.theglitch.ai/learn/claude-code) · [MCP servers and skills, explained.](https://www.theglitch.ai/learn/mcp-and-skills) · [Debugging with AI without going in circles.](https://www.theglitch.ai/learn/debugging-with-ai)

## Sources

- [Google: Long context](https://ai.google.dev/gemini-api/docs/long-context)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
