Skip to main content
Evaluators are the scoring logic that determines whether your AI system meets quality standards. They transform subjective assessments into measurable metrics—from semantic correctness and tool execution accuracy to safety guardrails and custom business logic. Use them with evaluations to build automated quality pipelines.

Why Evaluators Matter

Without systematic scoring, you can’t measure improvement or catch regressions:

Evaluator Types

Netra offers several approaches to scoring, each suited to different use cases:

LLM as Judge

Best for subjective quality, semantic correctness, and nuanced criteria. Uses AI models to evaluate AI outputs.

Code Evaluator

Best for deterministic checks—JSON validation, regex matching, calculations, and custom business logic in JavaScript or Python.

Rule-Based Checks

Library evaluators for latency, cost, token usage, tool-call matching, semantic similarity, regex, and JSON comparison—configured without writing prompts or code.

Evaluators Dashboard

Navigate to Library → Evaluators from the left navigation panel. The interface has two tabs: Evaluators page showing Library and My Evaluators tabs

Creating Custom Evaluators

Click Add Custom in the top right corner to open the creation wizard.
You can also customize any pre-built evaluator from the Library by clicking the Add button on its card. This pre-fills the prompt, pass criteria, and variables so you can tailor it and save it as your own.
The wizard has two steps:
  1. Choose the type — LLM as Judge or Code Evaluator
  2. Choose the turn scope — Single turn or Image. Multi-turn scope is reserved for simulation evaluators.

LLM as Judge Configuration

Use LLM as Judge when you need to evaluate subjective criteria like answer quality, relevance, or helpfulness. LLM as Judge configuration window
1

Name Your Evaluator

Provide a descriptive name (e.g., “Answer Correctness - Customer Support”) and an optional description.
2

Configure Prompt Template

  • Write your evaluation prompt using {{variable_name}} placeholders
  • Every placeholder is automatically detected and becomes an input variable for this evaluator
  • Variables map to evaluation fields, agent responses, or trace metadata at runtime
Example prompt:
3

Select the Judge Model

Choose the provider and model that will run the evaluation (e.g., OpenAI / GPT-4o). You can add providers from Settings if yours is not listed.
4

Set Output & Pass Criteria

5

Test in Playground

  • Enter sample values for each variable using the field inputs, or paste raw JSON
  • Run the evaluator against a real model in real-time
  • Refine your prompt until results are consistent
Scores from 1-5 judge scales are normalized to a 0-1 range automatically.

Code Evaluator Configuration

Use Code Evaluators for deterministic checks that don’t require AI judgment.
1

Name Your Evaluator

Provide a descriptive name (e.g., “JSON Schema Validator”).
2

Write Your Code

Use the code editor to write JavaScript or Python. A handler function is required, receiving the evaluation item’s input, the agent’s output, and the expected output:JavaScript example:
Python example:
3

Set Output & Pass Criteria

4

Test in Playground

  • Input sample data
  • Execute your code in real-time
  • Debug and refine until it handles edge cases correctly

Configuring Rule-Based Library Evaluators

Some library categories are neither prompts nor code—they are configured through dedicated forms:
Once created, your evaluator appears in My Evaluators and becomes available when creating evaluations.

Library

The Library contains pre-built evaluators across 12 categories, ready to use or customize. Library tab

Customizing Pre-built Evaluators

Start with a library evaluator and tailor it to your needs:
1

Browse the Library

Find an evaluator that matches your use case.
2

Click Add

Opens the configuration window with pre-filled settings.
3

Customize

  • Modify the prompt template
  • Adjust variables and mappings
  • Change pass/fail thresholds
4

Test in Playground

Validate your changes with sample data.
5

Save

Click Create to save to My Evaluators.

Using Evaluators in Evaluations

Once created, evaluators become available when building evaluations:
  1. Create or edit an evaluation
  2. In the evaluator selection step, choose from Library or My Evaluators
  3. Map variables to connect evaluator inputs to your data
  4. Run evaluations and view results in Test Runs

Best Practices

Choosing the Right Evaluator Type

Writing Effective LLM Prompts

  • Be specific: Define exactly what “correct” or “good” means
  • Provide examples: Include sample inputs and expected scores
  • Set clear scales: “Rate 1-10” is better than “rate quality”
  • Test edge cases: Validate with ambiguous or tricky inputs

Testing Before Deployment

Always use the Playground before adding evaluators to production evaluations:
  • Test with representative samples from your actual data
  • Include edge cases and potential failure scenarios
  • Verify pass/fail thresholds produce expected results

Using Text Evaluators in Voice Scenarios

Text evaluators are not limited to text-only outputs. When a voice interaction completes, Netra produces a transcript of the conversation. You can attach text evaluators to the same evaluation to evaluate the conversation content — giving you coverage of both what was said and how it sounded.
When configuring a voice simulation evaluation, you can select both voice evaluators (for audio quality) and text evaluators (for transcript quality) on the same evaluation. This gives you end-to-end evaluation of the interaction.
Last modified on August 28, 2026