Learning paths · Evals · Step 3 of 3
Evals · Tools

Using tools to build evals

AI assistants and eval platforms can do the slow parts for you: drafting datasets, writing scorer code, running the suite and showing the results. They cannot decide what failure means for your product. That part stays with you.

The split: let the tools do the typing, counting and running. You do the reading, naming and deciding. If a tool writes a rubric, you still have to read it, test it against examples and sign it off.

Using an AI assistant to help

Coding assistants such as Claude Code or OpenAI Codex can write eval scaffolding inside your project: the dataset file, the runner script, the code-based checks. Useful prompts look like this:

Here are 3 real outputs that failed, and my note on each failure.
Write a binary judge rubric for the failure "invents a refund rule".
Give one PASS and one FAIL example. Do not add other criteria.

Three checks before you trust the output:

Eval platforms

Three commonly used tools, with different centres of gravity. Check each vendor's current features and pricing before you commit. These change often.

Promptfoo

Open-source, command-line first, with the test cases in config files. Good for running evals in a continuous integration pipeline, so a failing test blocks a release. It also includes red-team tests for prompt injection and unsafe outputs.

Braintrust

A hosted platform built around experiments: run a dataset against two versions, compare the results side by side, and add human review in a web interface. Good for teams where product managers and engineers share the review work.

Langfuse

Open source and self-hostable, centred on tracing: record every model call, then build datasets and evals from real traces. Useful when you need data to stay on your own infrastructure.

How to choose

  1. Start with no tool. A spreadsheet with 30 labelled outputs is enough for your first round of error analysis.
  2. Pick a tool when the suite runs often. If you run evals on every change, put them in a tool that runs in your pipeline (Promptfoo is a common start).
  3. Pick a platform when people other than engineers review outputs. A shared review interface (Braintrust, or Langfuse with annotation) saves arguments about who scored what.
  4. Pick self-hosted when data cannot leave your systems. Langfuse and Promptfoo both run locally.

Sources

Tool descriptions are summaries from vendor material and third-party comparisons, which can be out of date. Check current features before you choose.