Context window

Appears in 2 papers · 5 tutorials

The maximum number of tokens the model can see at once.

As used in Paper 10 — Improving Language Understanding by Generative Pre-Training →

The maximum number of tokens the model can see at once. GPT-1: 512 tokens. GPT-2: 1024. GPT-3: 2048. Modern models: up to 1 million+.

As used in Paper 12 — Language Models are Few-Shot Learners →

The maximum number of tokens the model can attend to at once. GPT-3's context window is ~2,000 tokens (roughly 1,500 words). Longer documents must be truncated or split into chunks.

As used in AI Agents →

The maximum amount of text (in tokens) a model can consider at once — its short-term "working memory" or "desk."

As used in How Claude Code Works →

The maximum amount of text (measured in tokens) a model can consider at once — its working memory. Fill it with the right things; when it's full, older content must be summarized or dropped.

As used in Prompt Engineering →

The maximum amount of text (in tokens) a model can read at once — instructions, examples, and question together must fit inside it.

As used in AI Production Engineering →

The maximum number of tokens a model can read at once (its short-term memory / desk space). Everything in the prompt counts against it. (Mod 1)

As used in Git, GitHub & GitHub Copilot →

Copilot's finite short-term working memory (in tokens) for one session — prompt, code, instructions, skills, memories. (Mod 13)