# Long context

Canonical page: https://www.theglitch.ai/ai-glossary/long-context

Models that can take very large inputs at once, from whole books to entire codebases.

[Long context, common card \#131 in The Glitch AI glossary: Models that can take very large inputs at once, from whole books to entire codebases.](https://www.theglitch.ai/images/cards/glossary/long-context.png?v=8a150a995c48a59d)

GLS 131 · common

For: Builders

## Why it matters

It lets you skip some retrieval work, but cost and accuracy still depend on what you put in.

## In practice

A lawyer asks questions across a 300-page contract in one go.

## Watch for

Models often miss facts buried in the middle of long inputs; test what you rely on.

## Related terms

[Context window](https://www.theglitch.ai/ai-glossary/context-window) · [Context rot](https://www.theglitch.ai/ai-glossary/context-rot) · [Retrieval-augmented generation](https://www.theglitch.ai/ai-glossary/retrieval-augmented-generation)

## Sources

- [Liu et al. (2023): Lost in the Middle](https://arxiv.org/abs/2307.03172)

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)
