Match each eval-integrated framework to the workflow it most directly optimises for
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Ragas = RAG metrics; TruLens = feedback functions; Phoenix = trace-first observability; DSPy = optimiser with eval in the compile loop.
Picture a restaurant kitchen with four different inspectors. Ragas tastes the food and grades each dish on specific qualities. Saltiness, doneness, presentation. TruLens watches the cook and asks custom questions like 'did they wash their hands' or 'did the dish match the order'. You write the questions. Phoenix is the security camera in the corner; it records everything that happens and lets you replay any night, then run inspections on the footage later. DSPy is the head chef who tastes a hundred versions of the same dish during a practice session and picks the recipe that scored best. Four different ways of asking 'is this LLM app any good', each born from a different starting concern.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: each framework's birth story, primary primitive, sweet spot, and how to combine them without overlap.
| Framework | Primary primitive | Best for | Weakest at |
|---|---|---|---|
| Ragas | Canonical RAG metric | Defensible RAG scores fast | Custom non-RAG evaluators |
| TruLens | Composable feedback function | Bespoke product-specific evals | Out of box RAG metrics |
| Phoenix | OpenInference span / trace store | Trace exploration, drift analytics | Optimisation, prompt tuning |
| DSPy | Program + metric in a compile loop | Auto-tuning prompts and demonstrations | Production monitoring of a deployed app |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating Ragas, TruLens, Phoenix, and DSPy as interchangeable 'eval tools' and picking by familiarity instead of by the workflow each one was designed for.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.