Skip to main content

Module ab_test

Module ab_test 

Source
Expand description

§A/B Testing Framework

Statistically rigorous A/B testing for LLM model and prompt experiments. Supports weighted traffic splits, deterministic user assignment via FNV hash, two-proportion z-test significance testing, and automatic experiment completion.

Structs§

AbTestConfig
Configuration for a single legacy two-variant A/B experiment.
AbTestManager
Manages multi-variant A/B experiments.
AbTestResult
Statistical result of a legacy two-variant A/B experiment.
AbTestRunner
Thread-safe legacy two-variant A/B test runner.
Assignment
Records that a user was assigned to a specific variant.
Experiment
A multi-variant experiment definition.
ExperimentResult
Aggregated results for one variant.
ExperimentVariantSpec
A single variant in an experiment.

Enums§

EndCondition
Condition that triggers automatic experiment completion.
ExperimentStatus
Status of an experiment lifecycle.
SuccessMetric
The metric used to evaluate variant quality (legacy API).
Variant
Which A/B variant a request is assigned to (legacy two-variant API).