Skip to main content
Use datasets as the data source for evaluations. You can pass datasets directly or convert experiment results into dataset format.

Pass datasets directly

Pass datasets directly to Eval():

Assign to environments

Environments are attached to dataset snapshots, not datasets directly. To assign a snapshot to an environment:
  1. Go to Datasets.
  2. Open the dataset.
  3. Click Snapshots in the toolbar.
  4. Find the snapshot you want to assign, then select Environments.
  5. Toggle the environments in the submenu.
You can also tag and untag environments from Loop when working on a dataset page.
Once assigned, load the dataset for that environment in your evals:

Convert experiment results

Convert experiment results into dataset format using asDataset()/as_dataset(). This is useful for iterative improvement workflows where you want to use the results of one experiment as the baseline for future experiments:

Next steps