← Back to course

Tokens & context windows

Module 1 — How models read your prompt

Understanding tokens & context windows

Language models process text as tokens — roughly 3/4 of a word each. Every model has a context window: the maximum number of tokens it can process in a single request.

This matters for prompt design because everything in your prompt — instructions, examples, and the user's input — must fit within the context window. Longer contexts cost more and can dilute the model's attention.

Key takeaway: Be concise. Put the most important instructions first. Use delimiters to separate sections clearly.

Try it

Write a prompt to summarize this customer email. Click Run to see a sample response.

Problem set 1

Complete these questions to finish the lesson.

Question 1 of 3

Which change most reliably improves a model's output format consistency?