Wink Pings

Choosing an eval framework: first figure out which layer you're measuring

A quick-reference comparison of 16 eval frameworks. Answers, steps, tool calls, paths, conversations, cost — first figure out which layer you're scoring, then pick a tool. The scorer itself also needs to be scored.

LLMs fail fluently. It gives a confident, grammatically correct answer, but it may be wrong, unsafe, or completely ungrounded. Reading one pretty answer tells you nothing about judging the next hundred. An eval framework turns that worry into a loop: collect inputs, run the system, score each output, store the results as comparable experiments. Use it before release to confirm things work, before every change to block regressions, and after launch use production traffic to find failures the test set missed.

Almost every serious tool requires you to build four things, just under different names: data, the thing under test, the scorer, and run records. Scorers come in four shapes: code rules, a second model, a typed decision model, a human.

The original author notes: the figures come from public docs, repo pages, and papers; vendor claims are labeled as claims. No new experiments were run for this article — practices vary too much across teams, and a single concrete case would get copied as a template.

The original author emphasizes one point: the scorer is part of the system, not a neutral ruler. Every eval needs two numbers — how good the product is, and how well the scorer agrees with humans. The most common self-deception among teams is getting confident scores from an unvalidated scorer.

This line is probably the most counterintuitive part of the whole piece. One commenter said it should be printed and put on the wall; the first question auditors ask is: who checks the checker.

Eval frameworks cheat sheet

Frameworks split into four layers by shape, plus one single-purpose tool. Before choosing, answer: are you scoring the final answer, a single step, tool selection, the whole path, the conversation, or cost? Six levels, each mapping to different tools.

Code-first: an agent's depth is determined by the solver

Inspect is the representative of this layer. Evals written in Python, with a built-in agent solver: multi-turn model calls, tool use, file reading, code execution in a sandbox, cross-turn memory, sub-agent handoffs. Running is a one-liner: inspect eval security_guide.py --model

DeepEval stays in Python form, with pytest as the runner and the metrics catalog as its moat. Trajectory is a first-class citizen, retrieval and generation are tested separately, and multi-turn conversations have dedicated checks. Limitation: trajectory metrics are tied to its own tracing, there's no sandbox, and no repeats primitive.

Pydantic Evals makes types concrete. Typed cases, per-case judges, report rollups, native online sampling. Agent checks are deterministic: expected tool sets, call order, argument checks, budget checks. Limitation: it only sees locally executed tools, and its ready-made metric family is thin.

The difference at this layer is the solver, not the number of metrics. If you need tools plus sandbox plus retries, start with Inspect; if you need ready-made trajectory metrics, start with DeepEval.

Config-first: reproducible benchmark numbers

lm-evaluation-harness is the backend of open-source leaderboards. Tasks defined in YAML, with repeats, seeds, caching. It only measures final output — no judge, no tools, no trajectory. Comparability is the product, not product regression.

Promptfoo productizes the same config idea. A YAML matrix, prompt × provider × test cases, supporting tool calls, trajectories, RAG, conversation assertions. Results stay local; there's no central history.

OpenAI Evals is kept only as a design reference; the hosted platform is being retired. HELM is only a checklist, in maintenance mode.

What you buy at this layer is comparability and speed, not depth. The original author points out: teams score trajectories with a harness that only sees the final text, then wonder why fixing things doesn't improve the score.

Eval-first platforms: the experiment is the product

Braintrust is the representative. Immutable experiments, versioned datasets, online scoring rules, pipeline gates. By default it scores final output; scope supports span, trace, session group. No repeat statistics.

MLflow GenAI is the self-hosted version, same shape. Datasets live in the tracking server, the built-in judge catalog is larger, pytest gates, and explicit judge calibration.

What the platform layer buys you is the closed loop from failure to dataset to gate, not metric cleverness.

Observability-first: traces come first, eval hangs off them

Langfuse has the most complete loop. Traces, sessions, prompts feed into scores, datasets, experiments, monitoring. Scoring can land on a single observation, a full trace, a session, or a dataset run. It has cost controls, judge versioning, and human-machine agreement calibration.

LangSmith has the same shape but is hosted-only. Phoenix's evaluators are functions; span, path, thread are first-class citizens; there's no native online rules engine. TruLens's core is the RAG triad check and judge calibration. Evidently is row-level descriptors with no trajectory concept.

Observability tells you what happened; by itself it doesn't say good or bad. You need an explicit judge plus thresholds, otherwise traces become TV with no verdict.

Single-purpose RAG metrics

Ragas is a Python metrics library. Four core metrics: faithfulness, answer relevancy, context precision, context recall. The original author points out: low precision means fix search, low faithfulness means fix generation. A blended score hides whether you should tune the index or change the prompt.

SkillEvaluator doesn't fit this taxonomy; it evaluates the skill folder itself: schema, safety, loading, overlap, and behavioral differences with and without the skill. Currently marked experimental, suited to scenarios where the skill is the unit of release.

Choosing

Start from the problem, not the brand:

  • Which model or prompt wins on a public set: lm-harness
  • Fast regressions and multi-model comparisons in a pipeline: Promptfoo
  • Agents with tools and unsafe code: Inspect
  • Fail the build like unit tests: DeepEval
  • Typed contracts plus per-case rubrics: Pydantic Evals
  • Want release history, slices, production failures turned into new cases: Braintrust or MLflow
  • Debugging paths, monitoring in production: Langfuse, LangSmith, Phoenix
  • Only care about retrieval quality: Ragas, run inside another loop

A few discussion points worth remembering

One commenter pointed out that "trajectory" and "tool-call correctness" don't have fixed meanings yet. Run a set of traces with known correct answers through two frameworks, and the same trace gets different verdicts, which tells you the two columns measure different things. Define your own terms before you run.

A commenter asked: of the 16 frameworks, how many can easily turn a bad production trace into a new test case? Reality is, everyone ends up hand-rolling this loop.

A commenter suggested gating two scores first in production: tool-call correctness — right tools, right arguments — and cost per completed task. Answer quality matters, but these two scores can catch most regressions before users find them. Someone else said most frameworks only answer what performs best, never what performs best per dollar.

Takeaways

An eval is Data + Target + Judgment + Run; even by hand you have to build all four.

Define the layer before picking a brand. Final answer, single step, tool selection, whole path, conversation, cost — these are different checks.

The scorer needs its own scoring. Measure its agreement with humans before automating.

Code-first suits agents with tools and state. Config-first suits benchmark numbers and fast matrices.

The platform layer buys versioned data, comparisons, gates, prod loops — not statistical repetition.

Trace-first tools buy debugging ability; you need an explicit judge plus thresholds to say good or bad.

RAG metrics buy failure localization. Test retrieval and generation separately, with a loop that records history.

发布时间: 2026-11-24 08:08