Skip to main content
Experiments allow you to systematically evaluate and compare different runnables using a set of evaluators. Each experiment is associated with a specific runnable and can test multiple candidate variations against defined evaluation criteria.

Creating an Experiment

To create an experiment, you’ll need:
  • A base runnable to test variations against
  • Previous runs of the base runnable to use to source realistic input resources from
  • A set of automated evaluators and/or gold labels from previous runs
  • Configuration for candidate runnables to test

Experiment Configuration

Key fields in the experiment configuration:
  • runnable_id: The ID of the base runnable being tested
  • evaluator_ids: Array of evaluator IDs to use for assessment
  • run_filters: Optional filters to select specific runs for evaluation
  • candidate_runnables: Configuration for variations to test
  • timeout_seconds: Maximum time allowed per run (-1 for no timeout)
  • max_runs: Maximum number of runs to evaluate

Managing Experiments

List experiments for a runnable:
Load a specific experiment:
Cancel a specific experiment:

Experiment Results

Results are available through the run evaluations associated with each experiment run. You can analyze these to compare performance across different configurations.

Best Practices

  1. Evaluator Selection: Choose evaluators that measure relevant aspects of performance for your use case.
  2. Timeout Configuration: Set appropriate timeouts based on expected processing time.
  3. Run Filters: Use filters to focus evaluation on specific types of inputs or scenarios.
  4. Resource Management: Monitor resource usage when running large experiments.