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

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

This interactive level needs JavaScript. Built by (cybernerdie).