AISim › Chapter 6: Find the bug
The goldfish
Level 27. "As I said two minutes ago..."
Your coaching chatbot has long conversations with its users, and the bill is under control. The complaint is that it keeps forgetting things: the user's goal, the injury they mentioned, the plan you agreed on ten messages back. They have to repeat themselves constantly.
Goals
- accuracy at least 85%
- cost per 1,000 requests at most $12
- error rate at most 1%
Concepts: Debugging, Conversation memory.
Hint
Look at what the model is actually sent with each message. How much of the conversation does it get to see?
What you learn
Whatever isn't in the prompt doesn't exist for the model. A tight window keeps costs flat but drops everything older than a few turns. Rolling summaries keep the gist cheaply, and long-term memory brings back the specific earlier turns a new message needs.
More in this chapter
- Right answer, wrong question (Level 26)
- Safe and useless (Level 28)
- It found it, then threw it away (Level 29)
- Overthinking "hello" (Level 30)
- Three bugs, one system (Chapter 6 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).