Configure automated evaluations for your GenAI application spans using Evaluator Rules. Learn to map evaluators to span data, define filters, and manage backfill configuration.
Evaluator Rules define how automated evaluations are applied to your application’s spans. They connect evaluators (LLM-based or rule-based functions) with span data, specify what inputs to use, and determine which spans qualify for evaluation.
Overview
Evaluator Rules provide the configuration layer between your evaluators and your application’s telemetry data. When properly configured, they automatically assess the quality, safety, and performance of your GenAI application based on real-time span data.
What Are Evaluator Rules?
An Evaluator Rule determines how and when an evaluator runs against your application’s spans. Each rule consists of four key components:
Evaluator - The Custom Judge or predefined evaluator the rule runs, from the Evaluator Library
Input Field Mapping - How span data is passed to the evaluator’s input variables
Filters - Conditions that determine which spans qualify for evaluation
Backfill Configuration - Whether to apply evaluations to historical data
How Evaluator Rules Work
When a new span is created in your application:
The system checks all enabled Evaluator Rules
Each rule evaluates whether its filters match the span’s attributes
If a match is found, the system extracts data from the span using Input Field Mappings
The evaluator runs with the mapped data as input
Results are stored and made available in dashboards and analytics
Key Concepts
Evaluators
An evaluator is a Custom Judge (an LLM-as-a-Judge evaluator you configure) or a predefined evaluator from Fiddler.
Evaluators live in the Evaluator Library and are shared across all projects.
Input Mappings
Input Mappings define how data flows from spans into evaluators. Each variable used in an evaluator’s prompt (such as {{input}} or {{context}}) must be mapped to a field or attribute in the span data.For example, if your evaluator prompt includes {{input}}, you must map that variable to a span attribute like gen_ai.llm.input.user.Or turn on Use semantic mapping to map inputs to concepts such as Input and Output instead of attribute keys
(Semantic Mappings).
Filters
Filters determine which spans qualify for evaluation.
Rules filter by Span Name or Span Type only:
AND across conditions - A span must match ALL conditions
OR within one condition - A span can match ANY value within a single condition
Example:
Condition 1: Span Type is one of llmCondition 2: Span Name is one of ChatOpenAI, ChatAnthropicResult: Evaluates llm spans named ChatOpenAI or ChatAnthropic
Backfill
Backfill controls whether evaluations apply retroactively to existing historical data or only to spans created after the rule is configured.
The backfill process runtime depends on the volume of data in your history. Be certain to backfill only as needed.
Backfill respects the rule’s sampling rate. If a rule uses evaluator downsampling, a backfill evaluates the same fraction of traces — and because the sampling decision is deterministic, a backfill at the same rate re-applies the same outcome and skips the same traces. To score traces a downsampled rule skipped, create a new rule (or recreate the rule) with a higher sampling rate and backfill enabled.
Rule Limit
Each application supports up to 100 evaluator rules by default. This soft cap keeps evaluation and monitoring performant as the number of rules grows. On self-hosted deployments, an administrator can raise or lower the limit through configuration.When an application reaches the limit, creating another rule returns a 422 error. Delete rules you no longer need to make room.
Note: Disabling a rule does not free a slot — disabled rules still count toward the limit. Delete unused rules to reduce the count.
Create an Evaluator Rule
Prerequisites
Before creating an Evaluator Rule, ensure you have:
Active Application - A GenAI application with span data
An evaluator in the Evaluator Library, or create one while adding the rule
On the application’s Evaluator Rules page, select + Add Rule (or Add Your First Rule).You need the Project Admin or Project Writer role.
Org Admins can always add rules.
2
Choose an Evaluator
Choose one of these options:
Use Existing Evaluator: Select an evaluator from the list.
Only Active evaluators appear.
Create New Evaluator: Select Next to open Add Evaluator.
When you finish, you return to the rule with the new evaluator selected.
See Evaluator Library.
Choose an existing evaluator or create a new one
The Configure step of Add Evaluator for a Custom Judge
3
Apply Filters (Optional)
Specify which spans to evaluate.
With no filters, the rule applies to all spans.
Select + Add Filter Condition.
In Filter By, choose Span Name or Span Type.
Pick suggested values or type your own.
A filter that limits the rule to llm spans
4
Choose Input
Map each evaluator input to a span attribute.
Required inputs are marked with an asterisk (*).Or turn on Use semantic mapping to map inputs to concepts instead of attribute keys.Next stays disabled until every required input is mapped.
Required inputs mapped to span attributes
5
Review and Save
Enter a Rule Name (required).
Choose a Backfill Configuration (required, no default):
Apply to all past data
Apply from a specific past date: Pick a Backfill date.
The date can’t be in the future.
No backfill
Set the Sampling Rate.
This field appears when evaluator downsampling is on.
It accepts 0.01% to 100% and defaults to 100%.
Select Save.
The rule starts enabled.
Performance Tip: Start with No backfill to test your evaluator configuration. Once validated, you can create a new rule with backfill enabled.
Rule name, backfill, and sampling rate
Summary of the evaluator, input mappings, and filters
Manage Evaluator Rules
View Rules
Navigate to the Evaluator Rules tab in your application to see all configured rules.The Evaluator Rules table displays:
Column
Description
Name
The rule name you assigned
Evaluator
The evaluator the rule uses. Select it to open a side panel with the evaluator’s details.
Type
The evaluator type
Rules
The rule’s filters
Input Mappings
Mapped input fields
Outputs
Expected output fields
Sampling Rate
Fraction of matching traces evaluated, shown as a percentage (100% = evaluate everything). Visible when evaluator downsampling is enabled for your deployment.
Status
Enabled or Disabled
Created
Date the rule was created
Enable or Disable a Rule
Change a rule’s status without deleting it:
Use the Status column, or
Select Enable or Disable in the row menu.
After you create a rule, you can change only its status and, when evaluator downsampling is on, its sampling rate, which you edit in the rule’s Sampling Rate cell.
To change anything else, such as the evaluator, filters, or input mappings, create a new rule, then disable or delete the old one.
Delete a Rule
Remove a rule permanently:
Locate the rule in the Evaluator Rules table
Select Delete in the row menu
Confirm the deletion when prompted
Deleting a rule also deletes the scores it generated, so they no longer appear on your spans.
It also deletes any alert rules that use the rule, along with their notification settings.
Breach events from those alert rules no longer appear.
Its evaluator cost is kept:
the Evaluator Costs REST API keeps reporting it,
with the rule’s ID and name set to null.
Best Practices
Evaluator Configuration
Use Descriptive Names - Name evaluators and rules clearly (e.g., rag_faithfulness_prod instead of rule1)
Test Before Backfill - Create rules without backfill first, validate results, then create a new rule with backfill if needed
Version Your Prompts - Include version identifiers in custom judge names (e.g., topic_classifier_v2)
Input Mapping
Validate Paths - Ensure span attributes exist before mapping
Use Consistent Paths - Standardize attribute naming across your application
Filters
Start Broad, Refine Later - Begin with simple rules, add complexity as needed
Avoid Over-Filtering - Don’t create rules so specific that they match too few spans
Test Rule Logic - Verify spans are matching as expected using span search
Performance Optimization
Limit Backfill Scope - Use date-based backfill instead of “all past data” for large datasets
Monitor Evaluation Latency - Track how long evaluations take and optimize prompts if needed
Batch Similar Rules - Group related evaluations to reduce overhead
Troubleshooting
Evaluator Not Running
Issue: Rule is enabled but not producing results.Solutions:
Verify filters match actual span attributes
Check that all input mappings point to valid span fields
Ensure LLM Gateway credentials are valid and not expired
Review span data to confirm matching spans exist
Missing Input Data
Issue: Evaluator fails due to missing input values.Solutions:
Verify the span attribute path is correct
Check that the attribute exists in your span schema
Ensure spans contain data for the mapped field
Use a different attribute or add the field to your instrumentation
Backfill Taking Too Long
Issue: Historical evaluation is processing slowly.Solutions:
Use date-based backfill instead of all past data
Start with recent data and expand the date range gradually
Consider creating multiple rules for different time periods
Disable unnecessary rules to free up processing capacity
Unexpected Evaluator Results
Issue: Evaluator produces unexpected scores or classifications.Solutions:
Review the evaluator prompt template for clarity
Verify input mappings are passing the correct data
Test the evaluator with sample data outside Fiddler
Check for prompt ambiguity or missing context
Adjust the prompt and create a new rule version
Evaluator Rule Limit Reached
Issue: Creating a new evaluator rule fails with a 422 error stating the application has reached the per-application rule limit.Solutions:
Delete evaluator rules you no longer need — each application supports up to 100 rules
Remember that disabling a rule does not free a slot; disabled rules still count toward the limit
Contact Fiddler support if your use case requires a higher limit
Related Documentation
Evaluator Library - Create and manage your organization’s evaluators