---
Title: "What Is a Context Window in AI? Explained"
Url: "https://computer.io/glossary/context-window"
Topic: "AI foundations"
Description: "A context window is the maximum amount of text, measured in tokens, an AI model can consider at once. Why it matters and how to manage it."
---

# What is a context window?

A context window is the maximum amount of information, measured in tokens, that a language model can consider at one time, including instructions, conversation history, retrieved documents and its own output. Anything beyond the window is not seen by the model.

## Why it matters

| Issue | Effect |
| --- | --- |
| Too little context | Model misses facts |
| Too much context | Higher cost, slower, may miss details |

## Managing context

Retrieve only relevant information, summarize long threads and store long-term facts in memory or a knowledge graph.

## Larger windows

Windows have grown from thousands to millions of tokens, but relevance still matters more than size.

## FAQ

### What happens when the context window is full?

Older content is dropped or must be summarized.

### Is a bigger context window always better?

Not always; quality can drop with irrelevant content.

### Is context window the same as memory?

No, it's short-term; memory systems store information longer.

## Related terms

- [Tokens (in AI)](https://computer.io/glossary/tokens-in-ai)
- [Context engineering](https://computer.io/glossary/context-engineering)

## How Computer helps

- [How computer works](https://computer.io/how-computer-works)

## Further reading

- [Knowledge graph missing layer ai agents](https://devrev.ai/blog/knowledge-graph-missing-layer-ai-agents)
