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

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

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