RAG Observability
In this article
- Record one trace per request with a span for each stage, carrying ids, scores and versions instead of customer text.
- Find the stage and the release that broke answers by comparing traces from before and after a change.
- Set an alert on a slice of traffic, such as error-code questions, instead of on an overall average.
- Terms defined here: span.
Overview
The weekly release went out on Tuesday morning. By Wednesday, customers who ask about an error code on their router press thumbs-down far more often, yet the dashboard's average satisfaction has hardly moved. Something broke for some questions. Which step broke, and which change broke it?
In a made-up example, Brightline, a home-internet provider, runs a support assistant for its customers: its search code finds chunks of help pages, router manuals, the staff handbook and past conversations with vector and keyword search together, and puts the best 3 into the prompt. You will learn to record each question as one trace with a part per step, to point at the failing step and release, and to alert on the group of questions that suffers.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- One request, one trace
- What a span records
- Finding the broken span
- Before and after the release
- Alerts on slices
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions