Evaluators
Evaluators automatically score your LLM spans to track quality, accuracy, and compliance across your GenAI application. Navigate to Agent Observability → Evaluators (ap1, us1).
Types of Evaluators
| Type | Best For | Execution | Guide |
|---|---|---|---|
| LLM-as-Judge | Nuanced quality assessment, relevance, tone | Calls an LLM to evaluate each span | Setup guide → |
| Code | Deterministic checks: regex, JSON schema, exact match, keyword detection | Runs Python code in an isolated microVM, fast and free | Setup guide → |
How It Works
- Create a template — define what to evaluate (LLM prompt or Python code)
- Create a rule — configure which spans to evaluate, sampling rate, and filters
- Scores appear on the Traces page, attached to each evaluated span
When to Use Each Type
Use LLM-as-Judge when:
- You need subjective assessment (relevance, helpfulness, tone)
- The evaluation criteria are hard to express as code
- You want natural-language reasoning with each score
- You want to use one of the 8 built-in templates (hallucination, relevance, correctness, etc.)
Use Code Evaluators when:
- You need deterministic, repeatable checks
- Speed and cost matter (no LLM API call needed)
- You're validating structure (JSON schema, required fields, format)
- You want exact match, regex, or keyword detection
- You want one of the built-in code checks (PII, tone, refusal, conversation degeneration, etc.), which need no code
Evaluators Page
The evaluators page has three tabs:
Evaluators Tab
Shows all active evaluation rules. Each row displays the rule name, status (Active / Paused), 24-hour evaluation cost, and timestamps. Click a rule to open a detail drawer with a score-over-time chart, execution logs, and the full configuration.
Use the sidebar to filter by status (Active / Paused) and evaluator name.
Library Tab
Browse all available templates: the built-in managed templates and any custom templates your team has created. Click a template to see its full prompt or code, variables, and the rules using it.
The built-in LLM-as-Judge templates cover common evaluation criteria:
- Hallucination
- Helpfulness
- Relevance
- Toxicity
- Correctness
- Conciseness
- Context Relevance (RAG)
- Faithfulness (RAG)
See the LLM-as-Judge guide for details on each template. The built-in code checks are listed in Built-in Code Checks.