Skip to main content
The ax datasets commands are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.
The ax datasets commands let you create, retrieve, and manage datasets on the Arize platform. Supported file formats: CSV, JSON, JSON Lines, Parquet.

ax datasets list

List all datasets in a space.
Examples:

ax datasets create

Create a new dataset from a data file or an inline JSON array of examples. Provide exactly one of --file or --json.
Examples:

ax datasets get

Retrieve a dataset by name or ID.
Example:

ax datasets update

Rename a dataset.
Examples:

ax datasets delete

Delete a dataset.
Examples:

ax datasets export

Export examples from a dataset to a JSON file. By default, the command exports one page through the REST API; use --limit to control the page size and --cursor to select a later page. Pass --all to use Arrow Flight for a full-dataset export instead.
Examples:

ax datasets append

Append examples to an existing dataset. Provide examples via --json (inline) or --file. Exactly one input source is required.
Examples:

ax datasets update-examples

Update existing examples in a dataset, matched by ID. Provide examples via --json (inline) or --file. Exactly one input source is required. Each example must include an id identifying the row to update; the update is a patch, so fields you omit are left unchanged rather than removed. By default the selected version is updated in place; pass --new-version to capture the update as a new dataset version instead.
Examples:

ax datasets delete-examples

Delete a batch of examples from a specific dataset version. Provide the example IDs via --example-ids as an inline JSON array of ID strings (UUIDs). Deletion is idempotent and partial-tolerant: examples that no longer exist are silently skipped. Up to 1000 examples may be deleted per request. A specific --version-id is required since deletions apply to a single dataset version.
Examples:

ax datasets annotate-examples

Annotate a batch of examples in a dataset. Provide annotations via --file (JSON, JSONL, CSV, or Parquet; use - for stdin). Each record must have a record_id (the dataset example ID) and values (a list of annotation dicts with at least name, plus optionally score, label, or text). Annotations are upserted — resubmitting the same annotation config name for the same example overwrites the previous value. Up to 1000 examples may be annotated per request, and unmatched record IDs are silently ignored.
Examples:
Last modified on November 23, 2026