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.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.
dataset scope, with space used only to resolve a dataset name.
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. Unlikerun(), 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.
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; uselist_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 forget().
Run an Experiment
Execute a task function across your dataset examples with automatic evaluation, then log the results to Arize. High-level flow:- Resolve the dataset and download examples (cached if enabled)
- Execute the task and evaluators with configurable concurrency
- 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 to120).
Span Metadata
Attach metadata to every experiment span. UseExperimentMetadata 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
Passforce_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 stableid 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).
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 aslist_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 includeoutput; 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 returnsNone on success.