evaluators

Designs and calibrates code or LLM-as-a-judge evaluators that score Phoenix experiment run outputs.

11.3k|1.1k|Updated Nov 9, 2022
One-click install
npx skills add https://github.com/Arize-ai/phoenix --skill evaluators
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evaluators
Source: https://github.com/Arize-ai/phoenix/tree/main/src/phoenix/server/agents/prompts/skills/evaluators
Command: npx skills add https://github.com/Arize-ai/phoenix --skill evaluators

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building a reliable evaluator for LLM experiment outputs is hard: you must pick the right labels, locate the signal in run fields, choose between deterministic checks and LLM judges, and calibrate against representative cases. This Skill guides that entire authoring loop so evaluators actually measure the failure mode you care about.

Core Features & Use Cases

  • Evaluator Authoring Loop: Derives the grading task from a stated hypothesis, inventories existing evaluators for reuse, chooses mutually exclusive labels, and locates the signal in run fields like output, reference, messages, or tool_calls.
  • Judgment Structure Selection: Chooses among deterministic primitives (exact-match, regex, levenshtein, embedding distance), single LLM judges, composite scores, LLM juries, and pairwise comparisons based on sandbox capabilities and task need.
  • Calibration Discipline: Tests the evaluator against representative cases covering named failure modes, changing one variable at a time so fixes stay attributable.
  • Use Case: You ran a prompt experiment in Phoenix and want to know which variant produces correct answers. Use this Skill to design an evaluator that reads each run's output, compares it against the dataset reference, and returns calibrated pass/fail labels with explanations.

Quick Start

Ask the agent to create an evaluator that scores whether each experiment run's output correctly answers the dataset example's reference answer.

Frequently Asked Questions about evaluators

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

FAQPage Schema
How do I create an LLM-as-a-judge evaluator for Phoenix experiments?

Derive the grading task from your hypothesis, choose a small mutually exclusive label set, then write a judge prompt whose rubric ties each label to observable evidence in the run's output fields. Calibrate against several representative cases before saving the evaluator.

When should I use a code evaluator instead of an LLM judge?

Use a deterministic code evaluator whenever the judgment can be computed, such as exact-match, regex, JSON distance, or structural tool_calls checks. Reserve LLM judges for reading-comprehension or open-ended quality judgments that primitives cannot settle.

What is the difference between golden and baseline-snapshot references?

A golden reference is a hand-labeled ideal output where deviation is a defect, warranting strict comparison. A baseline-snapshot is a captured current-state output used only to detect behavior change, so losing to it is a signal rather than a verdict.

How do I choose labels for an evaluator?

Choose a small, mutually exclusive, collectively exhaustive set, often binary like correct/incorrect or pass/fail. Add labels only to distinguish failure modes that matter, since every extra label introduces boundary ambiguity.

Why does my evaluator mislabel calibration cases?

Mislabeling usually comes from an ambiguous rubric, wrong field selection, or unrepresentative test cases. Change one thing at a time between rubric, logic, labels, and cases, and fix unrepresentative cases before blaming the evaluator logic.

When should I not use the evaluators skill?

Do not use it for manual prompt drafting, which belongs to the playground skill, for running or comparing experiments, which belongs to the experiments skill, or for cross-trace failure diagnosis with no evaluator in scope, which belongs to debug-trace.