Skip to content
Inference Academy

Eval-driven development and choosing evaluation tools

A day-to-day workflow where every prompt, model or retrieval change starts from a failing evaluation case, plus a tool-neutral guide to evaluation and observability tools (tracing platforms such as Langfuse and Arize Phoenix, test runners such as promptfoo, RAG metric libraries such as Ragas): what each category does, how they connect through OpenTelemetry, and how to pick.

By

14 min · verified 2026-11
Share

Teams that build good LLM features have a habit in common: they do not change a prompt, model or retrieval setting without an evaluation telling them what happened. This lesson describes that habit as a workflow, then maps the tools that support it so you can pick without a vendor shoot-out.

#The workflow

  1. 1
    Observetraces, user feedback, support tickets
  2. 2
    Captureturn each failure into a test case with an expected result
  3. 3
    Changeprompt, model, retrieval, tools
  4. 4
    Evaluaterun the suite; compare with the current release
  5. 5
    Shipmerge if quality holds and cost and latency budgets are met
  6. 6
    Monitoronline metrics and sampled traces feed back into Observe

#1. Every bug becomes a test case

When a user reports a bad answer, do not edit the prompt yet. Add the case to your golden set with the expected behaviour, and confirm it fails. Now you have proof of the bug, a way to know when it is fixed, and protection against it coming back.

#2. Small changes, full runs

Change one thing at a time and run the whole suite, not just the new case. Prompt fixes often break something else; the suite shows you what.

#3. Compare, do not just score

The question is never "is 0.84 good?" but "is it better than what is live, by more than the noise?" Report the difference with an interval or a paired test (the statistics you need), plus cost and latency.

#4. Gate merges

Run the suite in CI on any change to prompts, models, retrieval settings, tool descriptions or guardrails (regression testing in CI). Fast deterministic checks on every pull request; the slower judged suite nightly or before release.

#5. Close the loop from production

Sample production traces, score them with the same checks (online evaluation), and send failures back to step 1. Over months the golden set becomes a record of everything your product has learned.

#The tool categories

Category What it does Examples (not an endorsement)
Tracing and observability Captures prompts, model and tool calls, tokens, latency and cost per request; search, dashboards, annotation Langfuse, Arize Phoenix, LangSmith, Braintrust, Helicone, or your own OpenTelemetry stack
Evaluation runners Run a dataset through your app, apply checks and judges, compare runs promptfoo, Inspect, DeepEval, OpenAI Evals, the observability platforms' own runners, or a harness you write
Metric libraries Ready-made metrics, especially for RAG (faithfulness, context precision and recall) and agents Ragas, DeepEval, TruLens
Annotation tools Human review queues, labelling, agreement statistics Built into most platforms; Label Studio, Argilla
Guardrail frameworks Runtime checks, which you also evaluate NeMo Guardrails, Guardrails AI (guardrails)

The categories overlap; several products cover tracing, evaluation and annotation in one.

#How they connect

The glue is traces. Instrument your app once, ideally with OpenTelemetry and the generative-AI semantic conventions, and the same spans feed debugging, dashboards, online evaluation and new test cases (distributed tracing). Instrumenting with open conventions keeps you free to change back ends later.

#Choosing

Ask these in order:

  1. Where may the data go? If prompts contain personal or confidential data, you may need a self-hosted tool. Langfuse and Phoenix, among others, can be self-hosted.
  2. What do you need first? Usually tracing. You cannot evaluate what you cannot see.
  3. Does it fit your CI? Evaluations must run from the command line and return a pass/fail exit code.
  4. Can you export your data? Datasets, traces and labels should come out in an open format.
  5. Are its judged metrics validated on your data? Check any LLM-judged metric against 50 to 100 of your own human labels before trusting it (LLM as judge).

A small team can start with a self-hosted tracing tool and a few hundred lines of its own harness. Buy or adopt more when the manual work, not the idea of it, becomes the bottleneck.

#Common mistakes

  1. Adopting a platform before having a single golden test case.
  2. Trusting out-of-the-box RAG scores without checking them against human judgement.
  3. Running evaluations by hand before releases, so they are skipped under deadline.
  4. Instrumenting with one vendor's proprietary SDK everywhere, making a later switch expensive.

#Exercises

  1. Take the last three bad answers your app gave and turn each into a test case. Do they fail today?
  2. Draw your current flow from production traces to test cases. Where is it manual?
  3. List your constraints (data residency, budget, CI system) and use them to pick one tracing tool and one evaluation runner. Write down why.

Quick quiz

+10 XP per correct answer, +25 XP for a perfect score

  1. 1. In eval-driven development, what comes first when a user reports a bad answer?

  2. 2. What is the main job of a tracing and observability platform for LLM apps?

  3. 3. Why does OpenTelemetry support matter when choosing a tool?

  4. 4. A RAG metric library reports 'faithfulness 0.91'. What should you do before trusting it?

  5. 5. Which change is most likely to need a full evaluation run before merging?

Up next · 120 min · Pro, first part free

Capstone: evaluate an LLM feature end to end

Take one LLM feature, build its golden dataset and metrics, check a judge against humans, add a regression gate and a monitoring plan, and report results with uncertainty. Deliverables, rubric and where to go next.

Continue →

Found this useful?

Send it to someone who is learning the same thing.

Share this lesson