New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Same bot, brand new question, and it's still stuck on the topic from five minutes ago.
What you'll have at the end
A chat that answers a new question cleanly instead of dragging in leftover context from a topic you already left.
You need
You have a multi-turn chatbot that keeps some state between turns, recent messages, looked-up facts, or both, and sends that state back to the model on every call.
Not covered
Trimming history because the conversation is running long for the token budget is a separate technique, covered by the recipe on compacting old turns; this only covers dropping the old topic's facts because the topic itself changed, at any length.
Checked 15 Aug 2026
Part of the Context Engineering cookbook