agent-eval

Builds and calibrates layered evaluations for LLM and agent systems using golden sets and judges.

37|17|Updated May 4, 2025
One-click install
npx skills add https://github.com/milvus-io/milvus-workshop --skill agent-eval-milvus-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-eval
Source: https://github.com/milvus-io/milvus-workshop/tree/main/agent/.claude/skills/agent-eval
Command: npx skills add https://github.com/milvus-io/milvus-workshop --skill agent-eval-milvus-io

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Non-deterministic LLM and agent systems fail quietly: generic metrics create false confidence, regressions slip through unmeasured dimensions, and teams optimize the wrong things. This Skill applies eval-driven development to define quality gates before shipping, derive metrics from observed failures, and keep a small set of calibrated graders the team can trust. ## Core Features & Use Cases - Failure-mode discovery and golden sets: Run realistic inputs, read every transcript, categorize failures by hand, and build 50-100 row versioned golden sets that include failures, not just successes. - Layered graders: Combine programmatic checks (L1), LLM-as-judge prompts with rubrics and few-shot anchors (L2), and human review (L3), with judge calibration against human labels targeting high-80s-90s percent agreement. - Agent-specific evaluation: Grade trajectory, tool, and outcome layers separately, and report both pass@k and pass^k reliability metrics across repeated trials. - Use Case: Before shipping a RAG feature, define faithfulness and citation-correctness gates, write a calibrated LLM-as-judge for each dimension, and block the release until per-dimension scores pass their thresholds. ## Quick Start Ask the agent to build an eval plan with golden questions and calibrated judges for the current AI feature before shipping it.

Frequently Asked Questions about agent-eval

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build evals for an LLM application?

Start by running realistic inputs through the system and reading every output to categorize observed failure modes. Turn those categories into eval dimensions, build a 50-100 row golden set including failures, then layer programmatic checks, LLM-as-judge graders, and human review.

How do I write an LLM-as-judge prompt?

Write one judge per dimension with a rubric of checkable criteria, explicit negative examples, and few-shot anchors spanning the score range. Ask for chain-of-thought before the verdict, emit structured JSON output, and calibrate against human labels to high-80s-90s percent agreement.

What is the difference between pass@k and pass^k?

pass@k measures whether an agent succeeds in at least one of k trials, showing capability. pass^k measures success in all k trials, showing reliability, which is what users actually experience; a 75 percent per-trial agent has pass@4 near 99 percent but pass^4 near 32 percent.

How do I evaluate a multi-step AI agent?

Grade three layers separately: the trajectory layer for correct sub-agent and workflow invocation, the tool layer for invocation and parameter accuracy, and the outcome layer for final environment state. Run k independent trials per task in fresh environments with complete transcripts captured.

Why does my LLM judge disagree with human reviewers?

Disagreement usually comes from ambiguous rubric criteria, missing few-shot anchors for near-miss cases, or known biases like verbosity and position bias. Read every disagreement, classify it as judge error, label error, or rubric ambiguity, and iterate until agreement reaches the target.

When should I not automate evaluation with an LLM judge?

Do not automate when the rubric is ambiguous and human experts themselves disagree on labels, since no judge can outperform the humans it imitates. Keep high-stakes ambiguous calls with human experts until the rubric stabilizes.