Skip to main content
LLM-as-a-Judge is an evaluation approach that uses an LLM to assess the quality of another model’s outputs. LLM evaluation is extremely flexible, because you can specify the rules and criteria in mostly plain language, similar to how you would ask human evaluators to grade your responses. You can run thousands of evaluations across curated datasets without the need for human intervention. This creates a scalable form of evaluation using only scoring or classification prompts to measure performance. Arize AX uses the Phoenix Evals library which is designed for simple, fast, and accurate LLM-based evaluations. LLM evaluators are saved to the Eval Hub, where they are versioned and reused across tasks. See Where evaluators live.
Data flow for an online LLM-as-a-judge evaluator, from span attributes through variable mapping into the prompt template, then the judge model returning a label, score, and explanation written back to the span

How data reaches an LLM judge and where its result lands

What to evaluate

Start where problematic traces cluster: repeated confusion or dissatisfaction in user messages is a good cue to build a user frustration eval and measure how often it fires. Your eval input can be any mix of the agent’s inputs, outputs, metadata, and prompt variables, pulled from whole traces or from the specific spans that show the behavior you care about.

Arize eval templates

If you don’t want to start from scratch, Arize has predefined evaluation templates. These prompts are tested against benchmarked datasets. These are built into Phoenix Evals and are an easy way to get reliable evals up and running fast. You can access these templates directly when creating an evaluation in the Arize AX UI, or use them programmatically in code.

Faithfulness

Conciseness

Correctness

Retrieval Relevance

Tool Selection

Tool Invocation

Tool Response Handling

Refusal

Exact Match

Matches Regex

Precision / Recall / F-Score

Q&A on Retrieved Data

User Frustration

Toxicity

Summarization

SQL Generation

Custom eval templates

Custom evaluation criteria and prompt templates let you measure what actually matters for your agent - going beyond what generic templates can assess. For example, you might create a custom eval to check for regulatory compliance, tone consistency, or task completion accuracy. In the guide below, we walk through how to build three types of custom LLM-as-a-Judge evaluators:
  • Categorical Classification Evaluator – for labelling outputs (ex: “Compliant” vs. “Non-compliant”).
  • Numeric Classification Evaluator – for scoring responses (ex: rating helpfulness from 1-10).
  • Fully Custom LLM Evaluator – for more complex evaluations such as multi-step reasoning or domain-specific accuracy.

Custom LLM Evaluators Guide

How to configure

Set up an AI provider integration, write your eval template, map variables to your data, and save it to the Eval Hub. For when to use span, trace, or session scope, see Eval scope. You can create an LLM-as-a-judge directly in the UI, or have Alyx or Arize Skills do it for you.
Use the Arize skills plugin in your coding agent and the arize-evaluator skill to create evaluators via the ax CLI without leaving your editor. See the skill doc for supported commands. Then ask your agent:
  • “Create a hallucination evaluator for my project”
  • “Create an evaluator from blank with correct/incorrect labels”
  • “Update the prompt on my correctness evaluator”
Coding agent terminal using the arize-evaluator skill and ax CLI to create an evaluator from natural language
Create Via Agent (Skills) modal with install command, API key and space ID setup, and an example prompt for your coding agent

Run it over your data

An evaluator on its own doesn’t score anything until you attach it to a task. See Run evals on your data for online and offline tasks, sampling, and cadence.