Exercises: Build a Trace Cost Report
Turn raw RAG trace events into a report a product team can act on.
Your tasks
- Aggregate latency and token cost by pipeline stage.
- Identify the slowest stage and most expensive stage.
- Flag quality risks such as empty retrieval or unsupported answers.
- Return a concise operations recommendation.