Fetching a Dataset
- Python
- TypeScript
Using with Evaluations
Datasets are commonly used to run offline evaluations against your LLM or agent.- Python
- TypeScript
Dataset Entry Structure
Each dataset entry contains:| Field | Description |
|---|---|
id | Unique identifier for the entry |
entry | The actual data (e.g., input, expected_output, contexts) |
datasetId | ID of the parent dataset |
projectId | ID of the project |
createdAt | Timestamp of creation |
updatedAt | Timestamp of last update |
Typed Datasets (TypeScript)
You can define types for your dataset entries for better type safety:Finding Your Dataset Slug
You can find the dataset slug in the LangWatch UI:- Go to the Datasets page
- Click on your dataset
- The slug is shown in the URL:
app.langwatch.ai/{project}/datasets/{slug}
dataset_) which is shown in the dataset details.