PromptItIn logoPromptItIn
AI glossary · Prompting

Context Window

The maximum number of tokens a model can process in a single input-output interaction.

PromptItIn team

A bookshelf with one card pulled out

What it means

The context window defines how much text — including the system prompt, conversation history, retrieved documents, and the model's own output — a model can 'see' at once. Tokens inside the window are available for attention; tokens outside are simply invisible.

Modern models range from 4k tokens (older GPT-3.5) to over 1 million tokens (Gemini 1.5 Pro).

A larger context window lets you include more examples, longer documents, and richer history, but also increases compute cost and can introduce 'lost in the middle' effects where the model pays less attention to content buried in the centre of a very long context.

Examples

  • Pasting a 50-page PDF into Claude's 200k-token context window and asking questions about specific sections.
  • A customer support chatbot keeping the last 10 conversation turns in context so it doesn't ask the user to repeat themselves.

Prompt Compression

Reducing prompt length while preserving the information needed for accurate responses.

Token

The basic unit of text a language model processes, roughly corresponding to a word or word fragment.

Context Length

The maximum number of tokens a model can handle in a single forward pass.

Put this into practice

PromptItIn applies techniques like context window for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

Few-Shot Prompt Formatter →Context Stuffing: Maximizing the Context Window →How to Write Prompts for Claude — The Complete Guide →AI Token Counter →How to Use Role in AI Prompts →Prompt Engineering Guide 2026: What Actually Works →
← Browse the AI prompt glossary