Skip to main content
Datasets are the foundation for experiment runs. The dataset helpers cover creation (which upserts by name), record inspection, and example appends.

Relevant Source Files

  • src/datasets/createDataset.ts for the exact return shape and upsert-by-name behavior

Create A Dataset

Upsert Or Append

createDataset() upserts by name: re-running it with the same name updates the existing dataset to match the examples you pass, and an unchanged upload is a no-op. To keep existing examples and add more, use appendDatasetExamples() instead of re-running createDataset() with the extra examples.
createDataset() returns { datasetId }, so you can pass that object directly as the dataset selector for append or experiment calls.

Read Back Dataset State

Use getDataset, getDatasetExamples, and getDatasetInfo to inspect datasets after creation.

Source Map

  • src/datasets/createDataset.ts
  • src/datasets/appendDatasetExamples.ts
  • src/datasets/getDataset.ts
  • src/datasets/getDatasetExamples.ts
  • src/datasets/getDatasetInfo.ts