What is a dataset?
A dataset is a curated collection of logs (inputs/outputs + metadata) that you can evaluate, annotate, and use to power Experiments. If you want the raw endpoint specs, see the Datasets API reference. This page is the workflow.When to use “datasets via API”
- Automated evaluation pipelines: programmatically create datasets per release / per prompt version
- Curated test cases: write your own input/output JSON and store it as dataset logs
- Sampling production logs: build datasets from existing request logs with filters + sampling
Resources
Steps to use
Prerequisites
- API key:
Authorization: Bearer YOUR_API_KEY - Base URL:
https://api.keywordsai.co
- Create manually
- Create from existing request logs
1
Step 1: Create an empty dataset
Create an empty dataset so you can add logs manually.Reference: Create datasetYou’ll use the returned
id as dataset_id in the next steps.2
Step 2: Add a dataset log (your own input/output JSON)
Dataset logs store end-to-end workflow I/O. Both
input and output can be any JSON.Reference: Create dataset log3
Step 3: List dataset logs to verify
4
Step 4: Run an eval on the dataset
5
Step 5: List eval runs for the dataset