Guide: Datasets & Datapoints
This example shows how to programmatically create, read, and delete datapoints from a dataset.
See API Reference: Datasets & Datapoints for more information.
Getting Started
Setup
- Install Docker.
- Generate an API key for OpenAI (
OPENAI_API_KEY). - Set the
OPENAI_API_KEYenvironment variable. - Launch TensorZero and Postgres:
docker compose up
Running the Example
Python (TensorZero Client)
uv run main.py
curl (HTTP)
./main.sh