Skip to main content

SDK Initialization

First, initialize the Traceloop SDK.
Prerequisites: You need an API key set as the environment variable TRACELOOP_API_KEY. Generate one in Settings →
The SDK fetches your datasets from Traceloop servers. Changes made to a draft dataset version are immediately available in the UI.

Dataset Operations

Create a dataset

You can create datasets in different ways depending on your data source:
  • Python: Import from CSV file or pandas DataFrame
  • TypeScript: Import from CSV data or create manually

Get a dataset

The dataset can be retrieved using its slug, which is available on the dataset page in the UI

Adding a Column

Adding Rows

Map the column slug to its relevant value

Dataset Versions

Publish a dataset

Dataset versions and history can be viewed in the UI. Versioning allows you to run the same evaluations and experiments across different datasets, making valuable comparisons possible.