Wink Pings

After Reviewing 16 Eval Frameworks, the First Thing to Test Is the Grader

After comparing 16 eval frameworks, Sergii Makarevych distills what they share into four things: data, the target under test, judgment, and run records. What is truly easy to overlook is that the grader also needs to be evaluated. The comments pull the discussion back to production: cost per completed task, tool-call correctness, repeated runs, and paired replays.

After laying out and comparing 16 eval frameworks, Sergii Makarevych offers a simple starting point: an eval is a repeatable check - run the system on a set of inputs, score each output, and let a change be judged by numbers rather than by the impression from a demo. Models can give wrong answers in a very confident format, and reading one pretty demo says nothing about the next request. Frameworks turn that worry into a loop: collect inputs that look like real traffic, and write down reference answers wherever you can; run the system under test and keep the outputs and traces; score at the right level; save it as a comparable experiment and use it as a gate for the next change.

He distills the common skeleton of popular frameworks into four things: Data, Target, Judgment, and Run. Data is the test cases: inputs, expected answers, context, metadata, and labels. Target is what is under test, which may be a model call, a prompt plus model, a chain, a full agent with tools, a retriever, or an entire trace. Judgment is the grader: rule-based code, a second model as judge, a decision model that returns options with probabilities, pairwise comparison, or human review. Run is the saved comparison: experiments, log sets, matrix views - so that there is evidence that version B beats version A on key slices.

The levels at which you can score, from smallest to largest: final answer, single step, tool choice, entire path, entire conversation, retrieval and generation separately, and system billing. A trajectory is the complete ordered record of one agent run, including prompts, model calls, tool calls with parameters, retrieved passages, and the final answer. A span is one step within it, such as one retrieval or one tool call. This split is very engineering-minded, because many teams score trajectories with a harness that only looks at the final text, then wonder why the numbers do not move after they have fixed things for ages. Sergii's article puts the grader directly inside the system: it, too, must be tested. Every eval needs two numbers: product quality, and the agreement rate between the grader and humans. The classic form of self-deception is an uncalibrated judge giving very confident scores.

The article divides the tools into several layers. In the code-first layer, Inspect writes Tasks in Python, with a core of solver plus sandbox plus repeats; it suits agents that use tools, write code, and need retries, but trajectory and RAG metrics have to be written by hand. DeepEval uses pytest as its runner; its selling point is a ready-made metric catalog and judge modes, while trajectory metrics depend on its own tracing, and it has no sandbox or repeats primitive. Pydantic Evals pulls the data model toward types and reports; per-case judges, report-level rollups, and native online sampling are very practical, but agent checks only see tools executed locally, and ready-made metrics are somewhat thin. SkillEvaluator is an emerging category: it evaluates the skill folder itself and its effect on agent behavior, with formal safe loading, overlap, and sandboxed controlled trials with and without the skill; it is highly experimental. In the config-first layer, lm-evaluation-harness trades YAML tasks for repeatable benchmark numbers; seeds, repeats, caching, and batch tuning are strengths, but it only sees final outputs. Promptfoo uses a matrix of prompt × provider × case, plus assertions, red teaming, and pipelines; it is good for fast regression and multi-model comparison, and results are fairly local. OpenAI Evals is only suitable as a design reference; its hosted path is being retired. HELM is used as a coverage checklist, not as a runner. Eval-first platforms sell experiments: Braintrust saves data, task functions, and scores as versioned experiments, with online rules and pipeline gates, but it has no repeat statistics, and domain metrics must be hand-built. MLflow GenAI is a self-hosted option: traces become datasets, judge calibration is measurable, and pytest gates are available, at the cost of needing a server and SQL. Observability-first tools start with traces and then attach evals. Langfuse connects online filtered sampling and offline dataset experiments into a complete loop, but its metric library is thin. LangSmith is hosted-first, strong in one agent stack and pairwise, thread-level scoring. Phoenix's evaluators are ordinary functions; spans, trajectories, and threads are natural, and there are many built-in templates, but the online loop relies on scripts. TruLens's feedback function and three-part RAG checks are representative; judge benchmarks and tuning recipes are selling points, while the platform loop is somewhat thin. Evidently is row-level table checking; more than a hundred built-in checks suit data and quality gates, but there are no trajectory primitives. Ragas only solves RAG metrics; four core numbers separate retrieval and generation: faithfulness, answer relevancy, context precision, and context recall. It does not provide history, gates, tracing, or a production loop; it is suitable for plugging into other loops.

In follow-up tweets, Sergii says he is refactoring how he builds agents and evals, mapping by eval type, target under test, and how agent code is isolated. The two images below show the correspondences he gives; tool names are not the point - the point is how agent code should be split so that evals can run.
eval type and agent code isolation mapping 1
eval type and agent code isolation mapping 2
Original tweet link: https://x.com/sermakarevich/status/2124537584843911627

The comments pull the topic back to production. One commenter says most frameworks answer what performs best, but not what performs best per dollar. Another reply makes the cost point clear: a cheap model is not cheap if it needs three retries. Someone ranks production gates: first tool-call correctness - whether the tool is right and whether the parameters are right - then cost per completed task; answer quality matters, but those two expose regressions earlier. Another person reminds that when an agent keeps memory, you should look at the score curve across repeats, because averages can hide whether later runs get better. Regulated teams will first ask who checks the checkers, which is the same thing as Sergii's grader testing. Someone also points out that trajectory and tool-call correctness still do not have fixed meanings: run the same set of traces with reference answers through two frameworks, and where they disagree is where the same word means two different tests. A more practical question is whether a framework supports paired replay: the same batch of cases, run once with the change and once without. That capability is closer to a release decision than one more metric.

Tool selection can be reasoned backward from the question. To compare models or prompts on public sets, use lm-evaluation-harness, and check whether seeds, repeats, and the filter chain are recorded together with the scores. For fast regression and multi-model comparison in a pipeline, use Promptfoo, and check each assertion threshold and versioned cases. For agents with tools and untrusted code, use Inspect, and check sandbox, limits, full transcripts, and repeat variance. For pytest-style gates, use DeepEval; do not pile on too many metrics, pin the judge version, and use flaky markers for noise checks. For typed contracts and per-case rubrics, use Pydantic Evals, and check per-case judges, report rollups, and online sampling. For release history, slices, and turning production failures into new cases, use Braintrust if hosting is acceptable, or MLflow if self-hosting is mandatory; check versioned datasets, calibrated judges, and pipeline gates. For debugging paths and online monitoring, look at Langfuse if self-hosting matters, LangSmith if you already have a LangChain stack, and Phoenix if span functions fit; check online reference-free checks, offline reference-based checks, and evaluator cost ceilings. When judge quality is the bottleneck, put TruLens's feedback mode and calibration recipes into the above loop, and measure human-machine agreement before automating. Use Evidently for row-level table gates. If you only care about retrieval quality, plug Ragas into the loop, first look at the split between precision and faithfulness, then decide whether to fix search or generation.

The material also includes a set of bookmarks, where Sergii puts together a general introduction to evals, agentic evals, eval-driven development, a framework overview, embedding all kinds of evals into agentic structures, and skills evals:

If you remember only one thing: first name the level you are scoring, then choose the brand. Final answer, single step, tool choice, entire path, conversation, and cost are different checks. A framework's popularity can only be a reference for maintainability, not evidence of coverage. What is more worth doing first is to build a small human-labeled set for the grader, measure its agreement rate with humans, and only then wire automated scores into release gates. Otherwise, teams will keep staring at a green dashboard until quality quietly drifts away.

发布时间: 2026-12-04 03:35