Context Window
Last updated
What is Context Window?
The context window is the amount of text an LLM can process in a single request, measured in tokens. It includes the system prompt, conversation history, retrieved documents, and the model's own output as it generates a response. Once the total content exceeds this limit, older or lower priority information has to be dropped, summarized, or moved out of the active context. Model providers have expanded context windows significantly over the past few years, but a larger window does not guarantee the model uses all of it well.
Free resources to learn Context Window
More in stage 2: How LLMs Work
Context Window: common questions
Can I learn Context Window in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Context Window in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Context Window tutorial for beginners?
It is lesson 18 of 189 in the free AI Engineer roadmap, in stage 2, How LLMs Work. If you are new to AI Engineer, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.