Skip to main content

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​

TypeBest ForExecutionGuide
LLM-as-JudgeNuanced quality assessment, relevance, toneCalls an LLM to evaluate each spanSetup guide →
CodeDeterministic checks: regex, JSON schema, exact match, keyword detectionRuns Python code in an isolated microVM, fast and freeSetup guide →

How It Works​

  1. Create a template — define what to evaluate (LLM prompt or Python code)
  2. Create a rule — configure which spans to evaluate, sampling rate, and filters
  3. 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.

Scores Tab​

View all scores produced by evaluators. Filter by time range, score name, value range, and span labels. Click any row to open the corresponding trace detail.

Prerequisites​

  • LLM-as-Judge evaluators require an LLM Connection
  • Code evaluators have no external dependencies
  • Creating evaluators requires the Editor or Admin role

Support

If you need assistance or have any questions, please reach out to us through: