What problem does it solve?
Adding a new LLM-as-a-judge metric to Phoenix evals requires touching many files across Python, TypeScript, benchmarks, and docs; this Skill provides the complete ordered pipeline so nothing is missed.
Core Features & Use Cases
- YAML Config Authoring: Define the evaluator's prompt, labels, score choices, and optimization direction in a single source-of-truth YAML config.
- Cross-Language Code Generation: Compile the config into Python and TypeScript evaluator classes, then wire up exports and vitest tests.
- Benchmarking and Documentation: Build a 30-50 example benchmark with per-category accuracy and a failed-examples printer, then publish a docs page with navigation updates.
- Use Case: You want a new hallucination detection metric in Phoenix. Follow the pipeline to create the YAML config, run
make codegen-prompts, add the Python and TypeScript evaluators, validate accuracy above 80% with a benchmark, and ship the docs page.
Quick Start
Create a new built-in classification evaluator for Phoenix evals that measures whether an LLM answer is faithful to the provided context.