For the complete documentation index, see llms.txt. This page is also available as Markdown.

Variations

A/B testing with variations across models and configurations.

Variations let you run the same test with different configurations to compare results side by side. Each variation can override the profile, run count, context IDs, and feature configuration.

How Variations Work

When you execute a test with variations:

  1. The framework runs the default configuration first (RunCount times)

  2. Each variation runs with its own settings (RunCount times, inherited or overridden)

  3. All runs share a single execution ID

  4. The response includes separate metrics for the default config, each variation, and an aggregate

This lets you compare how different models or settings perform on the same test.

Variation Properties

Property
Type
Required
Description

Name

string

Yes

Display name (for example, "GPT-4o", "Claude Sonnet")

Description

string

No

What this variation tests

ProfileId

guid

No

Profile override. Null inherits from the test.

RunCount

int

No

Run count override. Null inherits from the test.

ContextIds

guid[]

No

Context IDs override. Null inherits from the test.

TestFeatureConfig

JSON

No

Feature config override (deep-merged with the test's config).

Deep Merge Behavior

When a variation provides TestFeatureConfig, the framework deep-merges the variation config with the test's base config:

  • Object properties are recursively merged

  • Arrays and primitives are replaced (not merged)

  • Null properties in the variation are ignored (the base value is kept)

This means you only need to specify the properties you want to override.

Creating a Test with Variations

Add Variation form showing name, description, and override fields for profile, contexts, and run count

In this example:

  • The default config (GPT-4o) runs 3 times

  • The "Claude Sonnet" variation runs 3 times (inherited)

  • The "GPT-4o Mini" variation runs 5 times (overridden)

Reading Variation Results

The execution response includes per-variation metrics:

Comparing Variations

Use the compare-variations endpoint to do pairwise drill-down between any two variation groups (or default vs variation):

Set sourceVariationId to null to compare the default configuration against a variation.

The response includes pass rate deltas, duration deltas, and regression/improvement indicators.

Last updated

Was this helpful?