Skip to main content

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
If you’re starting from scratch, the easiest path is: create an empty datasetPOST dataset logs (unified format).
1

Step 1: Create an empty dataset

Create an empty dataset so you can add logs manually.Reference: Create dataset
You’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 log
3

Step 3: List dataset logs to verify

Fetch logs inside the dataset (paginated).Reference: List logs (GET)
4

Step 4: Run an eval on the dataset

Run one or more evaluators over all logs in the dataset.Reference: Run eval on dataset
5

Step 5: List eval runs for the dataset

Use this to check the run status and see report IDs.Reference: List eval runs

Maintenance & cleanup (optional)

Update dataset metadata

Use PATCH to rename or update the description: Reference: Update dataset (PATCH)

Remove logs from a dataset (by filter or delete all)

Reference: Delete logs (filters / delete-all)

Delete the dataset

Reference: Delete dataset