Skip to main content
The experiments client methods are generally available. The list_runs method is currently in BETA — the API may change without notice, and a one-time warning is emitted on first use.
Track and evaluate changes to prompts, models, and retrieval strategies. Run experiments with automatic tracing and evaluation.

Key Capabilities

  • Automatic tracing of all LLM calls during experiments
  • Concurrent execution for faster evaluation
  • Dry-run mode for testing without logging
  • Built-in evaluator support
  • Compare experiments side-by-side in the UI

List Experiments

List all experiments, optionally narrowed by dataset or space:
  • dataset — only experiments run on that dataset.
  • space — every experiment in that space, both those associated with a dataset and those without one. This is the only way to list experiments that aren’t associated with a dataset.
  • Neither — every experiment across all spaces you can read.
Passing both applies the narrower dataset scope, with space used only to resolve a dataset name.
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Create an Experiment

Log pre-computed experiment results to Arize. Use this when you’ve already executed your experiment elsewhere and want to record the results. Unlike run(), this does not execute the task - it only logs existing results. Provide exactly one of dataset (associates the experiment with a dataset; runs reference its examples via task_fields.example_id) or space (creates an experiment not associated with a dataset in that space). When dataset is a name, space may also be passed to resolve it. Each run must include output; example_id is required only when dataset is provided. experiment_runs accepts a list of dicts, a pandas DataFrame, or a path to a Parquet or Arrow IPC file (.parquet, .arrow, .feather), a directory of such files, or a list of such paths.
Transport selection: File paths always stream via gRPC + Flight one record batch at a time and require dataset. More than 1000 runs always upload via Flight. Otherwise, payloads at or under the configured REST payload threshold upload via REST and larger ones via Flight. Experiments not associated with a dataset always upload via REST, so they accept at most 1000 runs per call. Pass force_http=True to force a REST upload; it raises ValueError when combined with file paths or more than 1000 runs.

Get an Experiment

Retrieve experiment details and metadata by name or ID. The response does not include the experiment’s runs; use list_runs() to retrieve them. When using a name, provide dataset (and optionally space to resolve a dataset name), or provide only space to resolve the experiment name directly within the space — the only option for an experiment with no dataset.

Delete an Experiment

Delete an experiment by name or ID. This operation is irreversible. There is no response from this call. Name resolution works the same as for get().

Run an Experiment

Execute a task function across your dataset examples with automatic evaluation, then log the results to Arize. High-level flow:
  1. Resolve the dataset and download examples (cached if enabled)
  2. Execute the task and evaluators with configurable concurrency
  3. Upload results to Arize (unless in dry-run mode)

Dry Run Mode

Execute your experiment locally without logging results to Arize. Use this to test your task and evaluators before committing to a full run.

Concurrency Control

Control parallelism for faster execution.

Error Handling

Stop execution on the first error encountered.

OpenTelemetry Tracing

Set the global OpenTelemetry tracer provider for the experiment run.

Timeouts

Set the timeout in seconds for each task execution (defaults to 120).

Span Metadata

Attach metadata to every experiment span. Use ExperimentMetadata for autocomplete on known fields (user_id, user_name, user_email), or pass any dict[str, str] for custom fields. Dataset fields (dataset_id, dataset_name, dataset_version_id) are always populated automatically.

REST-Only Mode

Pass force_http=True to bypass gRPC/Flight and use REST only. This limits the run to 500 dataset rows and may be slower than the Flight path, so it isn’t recommended for large datasets.

List Experiment Runs

Retrieve individual runs from an experiment with pagination support. Runs are returned in stable id ascending order, and limit accepts 1–500 (default 50). Pass filter to narrow results with a SQL-like expression (the same language as span search) over id, output, example_id, custom run columns, eval.<name>.score, eval.<name>.label, eval.<name>.explanation, eval.<name>.metadata.*, and annotation.<name>.*. Keep filter unchanged when paging with cursor. Pass all=True to fetch all runs via Flight in a single response (ignores limit; raises ValueError if filter is provided).
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Export Runs to Parquet

Export all runs of an experiment to a Parquet file. Runs are streamed from Arize and written batch by batch, so experiments larger than available memory can be exported. The file holds the same rows and columns as list_runs(all=True), except that JSON-valued columns are stored as JSON strings (json.loads gives back the dict); output and result are raw strings, as in list_runs. The file is written to <path>.partial and renamed once the export completes. There is no response from this call.

Append Experiment Runs

Append new runs to an existing experiment. Runs are inserted in input order. Provide between 1 and 1000 runs per request. Each run must include output; example_id (an existing dataset example) is required only when the experiment is associated with a dataset. Additional user-defined fields (e.g. latency_ms, model) are allowed. experiment_runs accepts a list of dicts or a pandas DataFrame.

Annotate Experiment Runs

Write human annotations to a batch of runs in an experiment. Annotations are upserted by annotation config name for each run; submitting the same name for the same run overwrites the previous value. Up to 1000 runs may be annotated per request. This method returns None on success.
Learn more: Experiments Documentation
Last modified on November 23, 2026