Skip to main content
The datasets client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use. The export_to_parquet method is stable and generally available.
Create versioned datasets for experimentation, evaluation, and fine-tuning. Datasets are version-controlled collections of examples. Updates modify the current version in-place.

Key Capabilities

  • Create datasets from Python dicts, pandas DataFrames, or Parquet/Arrow files
  • Append examples in-place to existing dataset versions
  • Efficient bulk operations via Arrow Flight for large datasets
  • Cache datasets locally for faster experiment iteration

List Datasets

List all datasets with optional filtering by space or name.
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Create a Dataset

Create a new dataset with examples for evaluation or experimentation. Empty datasets are not allowed. examples 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 (searched recursively), or a list of such paths. All files must share a compatible schema; columns missing from some files are filled with nulls.
Transport selection: File paths always stream via gRPC + Flight one record batch at a time, so the dataset is never fully loaded in memory. More than 1000 examples always upload via Flight. Otherwise, payloads at or under the configured REST payload threshold upload via REST and larger ones via Flight. Pass force_http=True to force a REST upload; it raises ValueError when combined with file paths or more than 1000 examples. Note: Do not include system-managed fields (id, created_at, updated_at) in your examples, and each example must contain at least one property.

Get a Dataset

Retrieve a specific dataset by name or ID. When using a name, provide space to disambiguate.

Delete a Dataset

Delete a dataset by name or ID. This operation is irreversible. There is no response from this call.

Rename a Dataset

Rename a dataset. The new name must be unique within the space.

List Dataset Examples

Retrieve examples from a dataset with pagination support. By default the latest dataset version is used; pass dataset_version_id to target a specific version. Pass filter to narrow results with a filter expression that supports equality, comparison, and SQL-style AND/OR operators. Keep filter unchanged when paging with cursor. Pass all=True to fetch all examples via Flight in a single response (ignores filter, limit, and cursor).
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Export Examples to Parquet

Export all examples of a dataset to a Parquet file. Examples are streamed from Arize and written batch by batch, so datasets larger than available memory can be exported. The file holds the same rows and columns as list_examples(all=True), except that JSON-valued columns are stored as JSON strings (json.loads gives back the dict). By default the latest dataset version is exported; pass dataset_version_id to target a specific version. The file is written to <path>.partial and renamed once the export completes. There is no response from this call.

Append Dataset Examples

Add new examples to an existing dataset. Examples are appended in-place to the latest dataset version by default — this does not create a new version. You can target a specific version by passing dataset_version_id. The response includes the dataset version the examples were written to (dataset_version_id) and the server-generated IDs of the inserted examples (example_ids).
Note: Do not include system-managed fields (id, created_at, updated_at) in your examples. These are automatically generated by the server.

Update Dataset Examples

Update the content of existing dataset examples by ID. Each example dict must include id; other keys replace the stored content of that example. Between 1 and 1000 examples may be updated per request. Example IDs that don’t exist in the targeted version are ignored (no error, no insert). By default the update is applied in place to the current (or specified) dataset version. To create a new dataset version with the update, pass new_version.
To create a new dataset version with this update:
Note: Adding columns not already in the dataset schema is allowed; removing existing columns is not. Do not include system-managed fields (created_at, updated_at).

Delete Dataset Examples

Delete a batch of examples from a dataset version by ID. Examples are removed in place from the given dataset_version_id — no new version is created. The operation is partial-tolerant and idempotent: re-submitting already-deleted IDs is safe. Between 1 and 1000 example IDs may be deleted per request.
Returns a DeleteDatasetExamplesResponse with:
  • completed — True if the operation finished and no retry is needed.
  • deleted_example_ids — IDs confirmed deleted.
  • not_deleted_example_ids — Requested IDs that were not deleted.

Annotate Dataset Examples

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