LearnAI
Module 13 · Memory and Context in AI Applications (Pro) · Lesson 1/5
← Back to catalog
Task

Context window

What is important to know about the context window? Return JSON {"facts": [list of 2+ facts], "why": "briefly"}.

Unlock access to submit solutions for instant AI review.Start for free
Model memory is limited
💡 A bit of theory

The model has a limited context window - how much text (in tokens) it sees at a time: the system prompt, history, documents, and response. Key facts: the window is finite - endless history does not fit in, the old is forced out; each token in the window costs money and time on each request; the model “remembers” only what is currently in the window - it itself does not store past chats; closer to the limit, quality and attention to detail decline. Therefore, in the application you decide for yourself what to put in the window. Rule: the context window is the model’s desktop, not its long-term memory; it is limited and paid, put only what you need there.

How it's graded · passing score 70

  • 1Valid JSON without text around it30%
  • 2There is an array facts and why35%
  • 32+ facts: the window is of course, tokens cost money, he only remembers what was in the window, the quality drops at the limit35%
Your promptClaude ⌄