Skip to main content
These are legacy datasets. Laminar is retiring them, and they appear as Legacy datasets in the app. For agent evaluations, use the new datasets.

Concept

Dataset is a collection of datapoints. It can be used for the following purposes:
  1. Data storage for use in future fine-tuning or prompt-tuning.
  2. Provide inputs and expected outputs for Evaluations.

Format

Every datapoint has three fixed JSON objects: data, target, and metadata, each with arbitrary keys. target is only used in evaluations.
  • data – the actual datapoint data,
  • target – data additionally sent to the evaluator function.
  • metadata – arbitrary key-value metadata about the datapoint.
For every key inside data and target, the value can be any JSON value.

Example

This is an example of a valid datapoint.

Editing

Datasets are editable. You can edit the datapoints by clicking on the datapoint and editing the data in JSON. Changes are saved as a new datapoint version.

Versioning

Each datapoint has a unique id and a created_at timestamp. Every time you edit a datapoint, under the hood, a new datapoint version is created with the same id, but the created_at timestamp is updated. The version stack is push-only. That is, when you revert to a previous version, a copy of that version is created and added as a current version. Example:
  • Initial version (v1):
  • Version 2 (v2):
  • Version 3 (v3):
After this, you want to update to version 1 (initial version). This will create a new version (v4) with the same id, but the created_at timestamp is updated.
  • Version 4 (v4):

Datapoint id

When you push a new datapoint to a dataset, a UUIDv7 is generated for it. This allows to sort datapoints by their creation order and preserve the order of insertion.

Task id

Every datapoint also has a string task_id, which evaluations use to match the same test case across runs. It defaults to the datapoint’s id. Set your own by passing taskId / task_id on each point when pushing with the SDK. Task ids are unique within a dataset: a duplicate is renamed <task_id>#2, #3, and so on.