Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

phoenix-evals

БесплатноБез исполняемых скриптовНе проверен

Write and run evaluators with the Phoenix evals library (arize-phoenix-evals in Python, @arizeai/phoenix-evals in TypeScript), including code checks…

Arize-aiот Arize-ai★ 12 510 звёзд на GitHub

Об этом скилле

Phoenix evals

The Phoenix evals library scores any data. Each evaluator declares the inputs it reads, and an input mapping adapts whatever records you have to those inputs, so one evaluator runs on a dataframe, in an experiment, or over traces without changing its prompt or your data. Evaluators work with any supported model provider and run with or without a Phoenix server. With a server, the evaluators' own runs are traced, and you can log scores back onto spans, traces, sessions, and documents as annotations.

Other Phoenix skills cover the neighboring jobs:

  • phoenix-experiments runs evaluators on a dataset as an experiment, compares experiments, and gates CI.
  • phoenix-judge-alignment measures how well an LLM judge agrees with human labels and improves it.
  • phoenix-error-analysis finds what's failing before you write any evaluator.
  • phoenix-cli reads traces, spans, annotations, datasets, and experiments from the terminal.

Workflows

Write an evaluator

  1. Prefer one failure per evaluator. "Cites a source that's in the retrieved documents" is checkable, and "good answer" isn't. A multi-score evaluator can make sense when its scores share inputs or computation. If you don't know the failures yet, start with error analysis.
  2. Use code when code can decide. Format, JSON validity, a required field, a regex, an exact or set match against a reference, a tool that must or must not be called, or a number within tolerance. Code is usually cheaper, faster, and more reproducible than a model call.
  3. Use a model for judgment calls, such as groundedness, relevance, tone, or whether a reply followed a spec. An LLM judge returns a label and an explanation. A decision model returns a label and its probability, with no explanation, and can cost less. Either one picks from named labels: two (pass/fail) or several (positive/neutral/negative). Prefer labels with a meaning over a numeric scale.
  4. Start from a pre-built evaluator when one is close to the failure you care about. Use it as is, or copy its prompt and adapt the definitions, labels, and inputs. Check its inputs and direction first, because some score the bad outcome as 1. See pre-built.
  5. Check a judge before people act on its numbers. Human labels are the strongest check (see phoenix-judge-alignment). When there are none yet, a small labeled set of common and edge cases that you write yourself can be enough to start.

Score data in Phoenix

The usual job is "score what's in this project and write the results back":

  1. Read the records at the level the check applies to: a span (one LLM call or one retrieval), a trace (one request, usually its root span), a session (a whole conversation), or a document (one retrieved chunk).
  2. Build the evaluator's inputs from those records, with the evidence a reviewer would check. Tool calls and results, retrieved documents, and earlier turns often live on child spans of the same trace. Read the real attribute values, and don't assume output.value is plain text.
  3. Run the evaluators.
  4. Log one annotation per record, with the name and labels the user asked for, on the same level you read: span, trace, session, or document annotations. Leave out records the evaluator failed on, and count them.
  5. Read a few results with their explanations before reporting a rate.

When the user wants this to keep running, write a script that skips a record only when its annotation came from the current evaluator version and is newer than the record's last activity, so a session that got new turns gets rescored. After you change an evaluator, rescore everything it covers.

Task Python TypeScript
Install and configure a judge model setup setup
Write code and LLM evaluators evaluators-python evaluators-typescript
Use a pre-built evaluator pre-built pre-built
Write a judge prompt judge-prompts judge-prompts
Score spans, traces, or sessions and log annotations score-traces-python score-traces-typescript
Evaluate retrieval and generation separately rag rag
Replace llm_classify, run_evals, OpenAIModel legacy-python none
Avoid known mistakes common-mistakes common-mistakes

The Phoenix evals docs have the full API and more examples. These references cover the choices and mistak

Полный SKILL.md на GitHub

Установить phoenix-evals в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/common-mistakes.mdreferences/evaluators-python.mdreferences/evaluators-typescript.mdreferences/judge-prompts.mdreferences/legacy-python.mdreferences/pre-built.mdreferences/rag.mdreferences/score-traces-python.mdreferences/score-traces-typescript.mdreferences/setup.md

FAQ

Что делает скилл phoenix-evals?

Write and run evaluators with the Phoenix evals library (arize-phoenix-evals in Python, @arizeai/phoenix-evals in TypeScript), including code checks, LLM-as-a-judge and decision-model classifiers, and pre-built metrics such as faithfulness and retrieval relevance. Use when the user wants to score LLM or agent output, such as traces, spans, sessions, retrieved documents, or a dataframe of records, log the scores to Phoenix as annotations, write or fix a judge prompt, or find out why eval numbers look wrong. Also use for code that calls llm_classify, run_evals, or OpenAIModel.

Как установить скилл phoenix-evals?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл phoenix-evals запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить phoenix-evals с