AISim › Chapter 7: Production readiness
Why did it say that?
Level 32. A customer has a screenshot. You have nothing.
A customer sent a screenshot of your assistant confidently quoting the wrong refund policy. Engineering wants to know what the model was sent and what retrieval found, but nothing was recorded. Every complaint like this takes two days of guessing. Be able to answer "why" within a few hours, without a huge storage bill.
Goals
- time to find the cause of a bad answer at most 4 hours
- accuracy at least 70%
- cost per 1,000 requests at most $11.1
Concepts: Tracing, Observability, Sampling.
Hint
You need a record of what happened inside a failed request. Which requests do you actually need to keep, and what has to be in the record to explain a wrong answer?
What you learn
Wrong answers don't throw errors, so you need traces: the prompt, what was retrieved, each model call. Keeping every request is expensive and mostly useless; random samples miss the rare failure you're hunting. Keep every failure plus a small sample of the rest, store the text (with personal data redacted first), and you can answer "why did it say that?" in minutes.
More in this chapter
- The key was in the app (Level 31)
- The average looks fine (Level 33)
- Launch review (Chapter 7 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).