Log per request: prompt version, model, retrieved chunk IDs, tool calls, latency, token counts, cost, and safety decisions (store prompt hashes if raw text is sensitive).
Dashboards and alerts: latency percentiles, error and refusal rates, cost per user, groundedness score, and drift in query topics.
Feedback loop: user ratings, escalations, and sampled human review feed a failure set.
Safe changes: version prompts and models, run the eval suite on every change, and roll out with canaries and A/B tests.
Keep a regression set so fixed bugs stay fixed.
Loading…