The
ax datasets commands are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.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 local file.
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.
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; up to 1000 examples may be annotated per request.
Examples: