Datasets & lineage

Curate, materialize, inspect provenance lineage, export splits, and store content-addressed SHA-256 training and evaluation datasets on /v1/dataset, /v1/eval/datasets, and /v1/train/artifacts.

Every model regression traces back to untracked data. Hanzo separates mutable collection from immutable training snapshots so every checkpoint maps to an exact SHA-256 data digest.

Three dataset planes

Endpoint familyPurposeMutabilityPrimary consumer
/v1/datasetNamed org datasets with materialization, lineage, and exportVersioned snapshots via materializeRisk models, structured feature pipelines, reproducible exports
/v1/eval/datasetsGraded evaluation sets (input, expected, metadata, status)Append/archive items; frozen at run timeEvaluation harnesses, LLM/Kai judges, release gates
/v1/train/artifactsContent-addressed byte blobs keyed by SHA-256Strictly immutable (encrypted per-org S3)POST /v1/train/jobs datasets and output checkpoints

Create, materialize & trace lineage

hanzo dataset create --data '{"name":"support-triage-2026q4","description":"Verified billing & product triage tickets"}'
hanzo dataset materialize support-triage-2026q4
hanzo dataset lineage support-triage-2026q4
hanzo dataset export support-triage-2026q4
import { Configuration, DatasetApi } from 'hanzoai';

const ds = new DatasetApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
await ds.postDataset({ name: 'support-triage-2026q4' });
const lineage = await ds.getDatasetByNameLineage('support-triage-2026q4');
console.log(lineage.data);
import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import DatasetApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
ds = DatasetApi(client)
ds.post_dataset({"name": "support-triage-2026q4"})
print(ds.get_dataset_by_name_lineage("support-triage-2026q4"))
curl -X POST https://api.hanzo.ai/v1/dataset \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"support-triage-2026q4","description":"Verified billing & product triage tickets"}'

curl -X POST https://api.hanzo.ai/v1/dataset/support-triage-2026q4/materialize \
  -H "Authorization: Bearer $HANZO_API_KEY"

curl https://api.hanzo.ai/v1/dataset/support-triage-2026q4/lineage \
  -H "Authorization: Bearer $HANZO_API_KEY"
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "dataset",
      "arguments": {"op": "get_dataset_by_name_lineage", "input": {"name": "support-triage-2026q4"}}
    }
  }'

Decontamination & split hygiene

Before uploading a dataset blob to POST /v1/train/artifacts:

  1. Hash deduplication: Deduplicate exact and near-duplicate user states by normalized SHA-256 before splitting train/validation/test.
  2. Entity-level grouping: Split by customer account, repository, or ticket thread — never put two turns of the same conversation in both train and holdout.
  3. Holdout quarantine: Store held-out test rows in /v1/eval/datasets/{name}/items and never export that dataset into training inputs.
  4. PII & secret scrubbing: Scan candidate corpora with POST /v1/security/scans before upload so credentials and secrets never enter weights.
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.
Last updated Nov 25, 2026