Skip to main content
With Edgit’s independent versioning, you can run:
  • 2 agent versions × 3 prompt versions × 2 configs = 12 variants
  • All running in production at the same time
  • Each user gets a consistent experience
  • Data-driven decisions on what actually works

A/B Testing Basics

Simple A/B Test

Test two prompt versions:
Ensemble configuration:

Test Results

Multivariate Testing

Test multiple variables simultaneously.

2×2 Test: Prompt × Model

3×3 Test: Agent × Prompt × Config

Results: Discover that analyzer v2.0.0 + prompt v1.0.0 + config v2.0.0 is the optimal combination.

Sticky Sessions

Critical: Users must get the same variant every time.

Bad (Random)

Problem: Inconsistent experience. User sees different results each time they refresh.

Good (Sticky)

Benefit: Consistent experience. Same user always gets same variant.

Implementation

Or simpler with modulo:

Traffic Splitting

50/50 Split

90/10 Split

33/33/33 Split (3 variants)

Dynamic Split (via KV)

Update split via KV:

Metrics Collection

Track variant performance:
Query results:

Advanced: Sequential Testing

Don’t run forever. Stop when you have statistical significance.

Bayesian A/B Test

Auto-Promote Winner

Real-World Examples

Example 1: Prompt Iteration

Result: “with-examples” variant wins with 97% success rate. Deploy to all.

Example 2: Model Selection

Result: Claude has 94% success rate at 40% the cost of GPT-4. Winner!

Example 3: Agent Implementation

Result: v2.0.0 has 99% success rate vs 92% for v1.0.0. Deploy new version.

Best Practices

1. Start with Small Traffic

2. Use Statistical Significance

3. Test One Thing at a Time

4. Monitor for Weeks, Not Hours

5. Consider Sample Size

Next Steps

Deployment Strategies

Canaries, progressive rollouts

Versioning Guide

Master independent versioning

Rollback & Time Travel

Emergency rollbacks

CLI Reference

Complete command documentation