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:
Creating Custom Evaluators
Click Add Custom in the top right corner to open the creation wizard. The wizard has two steps:- Choose the type — LLM as Judge or Code Evaluator
- 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.
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
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
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 Python example:
handler function is required, receiving the evaluation item’s input, the agent’s output, and the expected output:JavaScript 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.
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:- Create or edit an evaluation
- In the evaluator selection step, choose from Library or My Evaluators
- Map variables to connect evaluator inputs to your data
- 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.
Related
- Evaluators Overview - Understand the full evaluator framework
- Voice Evaluators - TTS, STT, and conversational evaluators
- Image Evaluators - Multimodal and rule-based image evaluators
- Evaluation Overview - Evaluations, test runs, and the evaluation framework
- Evaluations - Create test cases that use your evaluators
- Test Runs - View evaluation results and scores
- Quick Start: Evaluation - Get started with evaluations
