Long Context and Working with Documents
How to use a 1M-token window well: the "documents at the top, question at the bottom" prompt layout, quotes before the answer, projects and connectors for documents, and when to switch to knowledge-base search.
What long context gives you
All current Claude models (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5) have a 1M-token context window. In the API it is the default, with no beta header. From Claude 4.6 on, long requests are billed at standard prices, with one exception: on Haiku 5.5, prompts over 100,000 tokens cost more. The 200k-token window remains only on older models. In Claude chat on paid plans, current models also have a 1M-token window.
For scale: on Claude 4.7 and later models, a million tokens holds about 555,000 words.
A big window guarantees nothing by itself. Anthropic says it directly: as context grows, accuracy and recall degrade, an effect known as context rot. So put in only what the task needs, and pay attention to how the prompt is built.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


