mcpField
P
phoenix-evals

phoenix-evals

github.com/arize-aiTesting & quality12.0k1.6k installsUpdated today
Repository

About phoenix-evals

A skill for building and validating evaluators for AI and LLM applications. It guides developers through code-based and LLM-based evaluation, experiments, tracing, and CI integration.

Key features

  1. 01Code and LLM evaluators
  2. 02RAG evaluation guidance
  3. 03Datasets and experiments
  4. 04Evaluator validation against humans
  5. 05Tracing and error analysis
  6. 06Test-runner CI integration

Use cases

  1. 01Evaluating RAG retrieval and faithfulness
  2. 02Running evaluation experiments on datasets
  3. 03Gating CI with evaluation tests
  4. 04Reviewing traces and classifying errors

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/arize-ai/phoenix --skill phoenix-evals

After installing, type/phoenix-evalsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
axial-coding.md
common-mistakes-python.md
error-analysis-multi-turn.md
error-analysis.md
evaluate-dataframe-python.md
evaluators-code-python.md
evaluators-code-typescript.md
evaluators-custom-templates.md
evaluators-llm-python.md
evaluators-llm-typescript.md
evaluators-overview.md
evaluators-pre-built.md
evaluators-rag.md
experiments-datasets-python.md
experiments-datasets-typescript.md
experiments-overview.md
experiments-running-python.md
experiments-running-typescript.md
experiments-synthetic-python.md
experiments-synthetic-typescript.md
filter-expressions.md
fundamentals-anti-patterns.md
fundamentals-model-selection.md
fundamentals.md
integrations-pytest.md
integrations-vitest-jest.md
observe-sampling-python.md
observe-sampling-typescript.md
observe-tracing-setup.md
production-continuous.md

Details

From the project README

Phoenix Evals

Build evaluators for AI/LLM applications. Code first, LLM for nuance, validate against humans.

Quick Reference

TaskFiles
Setupsetup-python, setup-typescript
Decide what to evaluateevaluators-overview
Choose a judge modelfundamentals-model-selection
Use pre-built evaluatorsevaluators-pre-built
Build code evaluatorevaluators-code-python, evaluators-code-typescript
Build LLM evaluatorevaluators-llm-python, evaluators-llm-typescript, evaluators-custom-templates
Batch evaluate DataFrameevaluate-dataframe-python
Run experimentexperiments-running-python, experiments-running-typescript
Run evals in a test runner (CI gate)integrations-pytest, integrations-vitest-jest
Create datasetexperiments-datasets-python, experiments-datasets-typescript
Generate synthetic dataexperiments-synthetic-python, experiments-synthetic-typescript
Validate evaluator accuracyvalidation, validation-evaluators-python, validation-evaluators-typescript
Export spansobserve-tracing-setup
Write a span filter (SpanQuery().where)filter-expressions
Sample traces for reviewobserve-sampling-python, observe-sampling-typescript
Analyze errorserror-analysis, error-analysis-multi-turn, axial-coding
RAG evalsevaluators-rag
Avoid common mistakescommon-mistakes-python, fundamentals-anti-patterns
Productionproduction-overview, production-guardrails, production-continuous

Workflows

Starting Fresh: observe-tracing-setup → error-analysis → axial-coding → evaluators-overview

Building Evaluator: fundamentals → common-mistakes-python → evaluators-{code|llm}-{python|typescript} → validation-evaluators-{python|typescript}

RAG Systems: evaluators-rag → evaluators-code-* (retrieval) → evaluators-llm-* (faithfulness)

Gating CI: evaluators-{code|llm}-{python|typescript} → integrations-{pytest|vitest-jest} → production-continuous

Production: production-overview → production-guardrails → production-continuous

Reference Categories

PrefixDescription
fundamentals-*Types, scores, anti-patterns
observe-*Tracing, sampling
error-analysis-*Finding failures
axial-coding-*Categorizing failures
evaluators-*Code, LLM, RAG evaluators
experiments-*Datasets, running experiments
integrations-*Run evals from test runners (pytest, Vitest, Jest) as a CI gate
validation-*Validating evaluator accuracy against human labels
production-*CI/CD, monitoring

Key Principles

PrincipleAction
Error analysis firstCan't automate what you haven't observed
Custom > genericBuild from your failures
Code firstDeterministic before LLM
Validate judges>80% accuracy, >70% TPR/TNR
Binary > LikertPass/fail, not 1-5
Invariants gate, signals trendassert/expect hard invariants (CI red); log LLM-judge quality signals and gate the aggregate (acceptance criteria), not every case

Comments

Markdown supported