Prerequisite: You need a Netra API key (Get started here) and the meeting summarization pipeline from the Multi-Tenant Cost Tracking cookbook. The code below reuses the
MultiTenantMeetingSummarizer class and tenant configurations from that cookbook.What You’ll Learn
Build a Shared Test Dataset
Create test cases that both configurations will be evaluated against
Configure Quality Evaluators
Set up evaluators for answer correctness and conciseness
Run Parallel Test Suites
Trigger separate evaluation runs for each configuration via the SDK
Compare Results & Decide
Interpret scores across runs to make data-driven configuration decisions
Why A/B Test AI Configurations?
Different configurations serve different trade-offs. Systematic A/B testing answers these questions with data:
Netra’s evaluation framework makes this straightforward: create one dataset, run it against each configuration as a separate Test Run, and compare evaluator scores in the dashboard. See the Evaluation Overview for a deeper look at the framework.
Now, let’s walk through the process of A/B testing two configurations:
Step 1: Create Evaluators
You need two evaluators from the library.Answer Correctness (Library)
Go to Evaluation → Evaluators, switch to the Library tab, and add Answer Correctness from the Quality category.Conciseness (Library)
Add Conciseness from the Quality category.
You can test each evaluator in the Playground before using it in a dataset. See Evaluators for the full reference.
Step 2: Create a Dataset
Go to Evaluation → Datasets and click Create Dataset. Name it “A/B Test Dataset” and attach the two evaluators from Step 1. You already have traces from running the meeting summarization pipeline in the Multi-Tenant Cost Tracking cookbook. Add them to your dataset directly:1
Select a trace
Go to Observability → Traces and select a trace from the Multi-Tenant Cost Tracking cookbook. Choose traces with different meeting types (short standups, planning sessions, open-ended discussions) to get a diverse set of test cases.
2
Add to Dataset
Click on the trace, then click Add to Dataset. Select the “A/B Test Dataset” you just created. Fill in the Expected Output with the correct summary for that meeting transcript.
3
Repeat for more traces
Add 3–5 traces covering different meeting types — short standups, complex planning sessions, and ambiguous discussions. More diverse test cases give you a clearer comparison between configurations.
query and expected_output to Dataset item fields, and agent_response to Agent response. See Datasets for the full mapping reference.
Step 3: Trigger Test Runs
The key to A/B testing is running the same dataset against different configurations as separate test runs. Copy the Dataset ID from the dataset page and trigger one run per configuration.Step 4: Compare Results
Go to Evaluation → Test Runs to see both runs listed. Click into each run to see per-evaluator, per-item results.Build a Comparison Table
Pull the evaluator scores from each run and compare:
You can also click View Trace on any result to inspect the exact LLM input, output, and token usage for that test case. This is useful for understanding why one configuration scored higher on a specific item.
Interpreting Scores and Making Decisions
Quality vs. Cost Analysis
Combine evaluator scores with cost data from your traces to see the full picture:Decision Framework
Use the comparison data to make an informed decision:
After making a decision, re-run the evaluation periodically to confirm the quality gap hasn’t changed — model behavior can shift with provider updates.
Continuous A/B Testing Strategy
Run A/B tests regularly as part of your development workflow:- Before model upgrades — Compare the new model against your current one before switching in production
- After prompt changes — Measure the impact of prompt modifications across all quality dimensions
- When optimizing cost — Verify that a cheaper configuration maintains acceptable quality
- For tier validation — Confirm that premium tiers deliver measurably better results than lower tiers
See Also
Multi-Tenant Cost Tracking
Set up the tier-based meeting summarization pipeline this cookbook evaluates
Evaluation Overview
Deep dive into Netra’s evaluation framework: datasets, evaluators, and test runs
Evaluating Agent Decisions
Evaluate tool selection, escalation, and workflow completion in agents
