Warm-up · Activity 1 of 7
// Lesson 1 of 3 · ~20 min · Beginner
Tokens and context windows
After this lesson you can work out what a model can “see” on any turn of a conversation, and plan a long chat so the important parts never fall out.
You will be able to
- Name everything that counts toward the context window
- Calculate how input grows turn by turn
- Plan a long-document chat that leaves room for the answer
Predict · Activity 2 of 7
You paste a 300-page contract into a chat that has a long system prompt, and ask for a summary. Which of these count toward the context window of that request? Pick all that apply.
Practice · Activity 3 of 7
Worked example. Turn 1: you send 2,000 tokens and the model replies with 500. Turn 2: you send 300 tokens. Ignoring caching and trimming, roughly how many input tokens does the model receive on turn 2?
Practice · Activity 4 of 7
Your turn, with the support removed. Continue the same chat: the model replied to turn 2 with 400 tokens, and on turn 3 you send 200. How many input tokens now?
tokensPractice · Activity 5 of 7
Match each term to what it means.
Brain teaser · Activity 6 of 7
Brain teaser. A model has a 1,000,000-token context window. You load a 900,000-token codebase and ask for a 150,000-token rewrite in a single reply. What happens?
Apply · Activity 7 of 7
Mini-task. You want to ask many questions about a long report in one chat. Write a short plan (4–6 lines) for keeping the chat useful from the first question to the last.
Check your work against this list
Exit ticket
5 questions, no hints. Score 80% or more to complete the lesson.
Finish every activity above to unlock the exit ticket.