# What is a context window in AI? — QANATONE

> The context window is the total text a model can consider at once: your question, the chat history, any documents and the answer.

Kaynak: https://www.qanatone.com/en/nedir/context-window-nedir/

---

[Explainers](https://www.qanatone.com/en/nedir/)

# What is a context window in AI?

15 Sep 2026 2 min read Core Concept · Context Window

The context window is the total text a model can consider at once: your question, the chat history, any documents and the answer.

## What is a context window?

The context window is the total amount of text a language model can consider in a single request. It includes your question, earlier messages in the chat, any documents you give the model and the answer the model writes. It is measured in [tokens](https://www.qanatone.com/en/nedir/token-nedir/), not words or pages.

Think of the model as someone who can read any paper placed on their desk, but the desk has a fixed size. Pages that do not fit are not read. When the window fills up, the application cuts or summarizes the oldest messages and the model no longer sees them.

## What changes as windows grow?

Early chat models had windows of a few thousand tokens. Today windows reach hundreds of thousands of tokens, and some models go past a million. You can now give a model a long contract, a book or much of a software project in one go.

A bigger window does not solve everything. With long inputs, models tend to use information at the start and end better than information in the middle, an effect researchers call "lost in the middle". Filling the window also raises cost and response time, because the model processes the whole text again on every request.

## Is the context window the same as memory?

No, although the two are often confused. The window is the text in front of the model during the current conversation, and it is gone when the chat ends. Remembering across conversations needs a separate [memory](https://www.qanatone.com/en/nedir/ai-memory-nedir/) layer that stores information and puts it back into the window when needed.

## Using the window well

In practice, what you put in the window matters more than its size. Picking the passages that match the question instead of sending a whole archive (this is what [RAG](https://www.qanatone.com/en/nedir/rag-nedir/) does), summarizing long chats from time to time and keeping the [system prompt](https://www.qanatone.com/en/nedir/system-prompt-nedir/) short improve both answer quality and cost.

## More articles

[Business · Digitalization ### What is digitalization? How it differs from transformation 15 Sep 2026 · 1 min](https://www.qanatone.com/en/nedir/dijitallesme-ne-demek/)[Architecture · Embedding ### What is an embedding? Turning meaning into numbers 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/embedding-nedir/)[Guide · AI Tools ### Which is the best AI? A guide to choosing the right tool 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/en-iyi-yapay-zeka/)[Prompting · Few-shot ### What is few-shot prompting? 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/few-shot-nedir/)[Model Training · Fine-tuning ### What is fine-tuning and when do you need it? 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/fine-tuning-nedir/)[Architecture · Memory ### What is memory in AI assistants and agents? 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/ai-memory-nedir/)[Applications · Function Calling ### What is function calling in AI? 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/function-calling-nedir/)[Safety · Guardrails ### What are guardrails in AI? 15 Sep 2026 · 2 min](https://www.qanatone.com/en/nedir/guardrail-nedir/)
