What is a context window
Also known as: context length, context limit
Definition
A context window is how much text, in tokens, a model can see at once: instructions, files, the chat so far and its reply. What falls outside, it cannot use.
Why it matters
The window explains why a long chat seems to forget its beginning: the model was not shown the old messages again.
Common mistakes
Expecting a model to remember the start of a very long chat that the app has already cut or summarised.
Worked exampleIllustration
A long WhatsApp chat at a fictional pilates studio
A fictional neighbourhood pilates studio answers members on WhatsApp with an AI assistant. The chat is invented for this example.
Message 1
A member writes that she has a 10 class card and can only come in the mornings.
Forty messages later
After class swaps and a question about a friend who wants to join, the chat no longer fits in the window.
What the app does
The app drops the oldest messages. The assistant offers an evening class and asks which card she has.
The fix
The app sends a short pinned note, "10 class card, mornings only", at the top of every call.
The result
The same forty message chat now keeps both facts in every answer.
The model did not forget. It was never shown the old messages again.
Illustration
Keep chatting, watch the window
The chat no longer fits, so the app stops sending the oldest messages, 11 so far. Message 1 is no longer sent, so the assistant does not see the 10 class card or the mornings.
What fills the window
- The assistant’s instructions
- The policy sheet
- The pinned note
- The chat so far
- Room for the answer
The sizes are a drawing, not a measurement.
Definition
A context window is the limit on how much text a language model can take into account in one call, measured in tokens. Everything counts toward it: the tool's hidden instructions, your prompt, attached files, the conversation so far and the answer being written. The model keeps no memory between calls, so the app sends the conversation again with every message. When a chat grows beyond the window, the app decides what to leave out: some apps drop the oldest messages, some summarise them, and some refuse. What is not sent, the model does not see.
Why it matters
It also explains why more is not always better. A 2024 study found that models use information in the middle of a long input less reliably than at its start or end, so a focused input often beats a full one.
Improvement tips
- Pin the facts that must survive a long chat, such as the customer's plan and limits, in a short note sent with every message.
- When your documents do not fit, send only the passages the question needs, which is what RAG does, instead of whole files.
- Put the question and the most important instruction at the start or the end of a long input, not in the middle.
- Start a new chat for a new topic, opening with a short summary of what still matters.
Common mistakes
- Filling the window with whole files when the question needs one passage, which makes the answer slower and less accurate.
- Believing a bigger window means better answers, while the middle of a long input is still used less reliably.
- Pasting whole contracts or customer histories with personal details into a public tool just because they fit.
Related terms
Token
A token is a piece of a word that an AI language model reads and writes. Usage is counted and billed in tokens, and the same text takes more in some languages.
LLM
An LLM (large language model) is AI trained on masses of text to predict the next piece of a sentence. That is how chat tools write answers, right or wrong.
Prompt
A prompt is the instruction you give an AI tool: the question, the task, the context and the format you want. A clearer prompt gets a more useful answer.
RAG
RAG (retrieval-augmented generation) is a method where AI answers from your documents: it first finds the relevant passages, then writes the answer from them.
Inference
Inference is the moment a trained AI model does its job: it takes a new question and produces an answer. It happens on every request, so it is the ongoing cost.
Hallucination
An AI hallucination is an answer an AI model makes up and states with confidence, such as an invented price, rule or source, because it predicts likely words.
Quick check
A chat has grown longer than the model's context window. What happens to the oldest messages?
Choose an answer
Frequently asked questions
What is a context window in simple words?
What counts toward the context window?
Why does a long chat seem to forget its beginning?
What happens when the window is full?
Is a bigger context window always better?
My documents do not fit. What can I do?
How do I keep important facts in a long chat?
Does a longer input use more?
Why do long tasks get slower?
Can I change the size of the context window?
Is it fine to paste long documents because they fit?
Is the context window the same as a chat app's memory feature?
Sources: Anthropic, "Context windows", Claude documentation (platform.claude.com/docs/en/build-with-claude/context-windows), read 2026-09-25, Liu, Lin, Hewitt, Paranjape, Bevilacqua, Petroni and Liang, "Lost in the Middle: How Language Models Use Long Contexts", Transactions of the Association for Computational Linguistics, volume 12, 2024 (aclanthology.org/2024.tacl-1.9), Privacy Protection Authority, Amendment 13 questions and answers (gov.il/he/pages/tikun13_qa), read 2026-08-31
Last reviewed: 2026-09-25
I have worked with
- Google for Startups
- House of Business, Sderot Municipality
- Microsoft Reactor
- GameReady
- Eclipse Capital
- SderoTech
- IUCEL
- Resilience & Health Innovation Hub
- International Resilience Institute of Sderot
- Google for Startups
- House of Business, Sderot Municipality
- Microsoft Reactor
- GameReady
- Eclipse Capital
- SderoTech
- IUCEL
- Resilience & Health Innovation Hub
- International Resilience Institute of Sderot
What Clients Say
From different fields, at different stages of business
Dan Manto
Eclipse Capital
Real Estate Investment and Finance, USA
Arty McLabin
GameReady
Game Development Education and Outsourcing, International

Anna
Beautician
After I finished a cosmetology course at a leading company, I was confused. I didn't know how to open a business, what to sell from home, or how to bring in clients. Since I reached out to Mobius, everything has changed. We built an organized plan with clear steps and no unnecessary risks. Today I see results, and I'm growing and developing every month.

Mark
Massage therapist, Gan Yavne
When I finished a massage course, I imagined a different world. I found out it's a hard field, and financial stability isn't easy to find. When I came to Mobius, something changed. We started an organized process and built a business plan. Without Mobius? I probably would have given up. Today I believe in myself and in my own path.
Wondering where AI actually fits your business?
Alex helps Israeli businesses use AI and data where it pays off, and skip it where it does not. The first call is free.
+972 055-248-6151. Better on WhatsApp: I am in meetings most of the day and answer as soon as I am free. Other ways to reach me