Generate a continuation
Continue one phrase in two ways and see how each word changes what might follow.
A model predicts just the next word. To write more, a program selects a continuation, appends it and feeds the updated context back in. Each choice influences the words that follow.
A small example
Start with “outside the window”. Try adding “rain”, then try “children” instead. What words would follow naturally in each version? Generation repeats this decision in a loop. A step limit can stop the loop even when an end marker never appears.
Trace a generation step
Start with “outside the window” and allow two new words. First the model picks “children”. On the second step it continues “outside the window children”, which makes “play” a plausible choice. The result reads “outside the window children play”, and both steps have been used. Words in the starting phrase do not count towards this limit.
Had the first choice been “rain”, the likely next words would have changed too. To understand why two runs diverged, find the first word where their choices differed.
Done reading?
Mark the lesson as read to move your track progress forward.
Lesson marked as done.
Now build your own version
Generate a continuation with your model. Update the context and verify that generation stops at an end marker or token limit.
What practice includes and how much it costs
MCP includes the full lesson and a local project with starter files. Work through the task with your agent, ask for a hint and run the checks on your computer.
One payment, no auto-renewal · Terms
Progress saved in this browser
Clear your history or open this on your phone, and the marks will be gone. Leave your email and they'll move to your account. No password needed.
Done. moved to your account. You can see your progress on any device. My progress