Skip to main content
POST
Creates a dataset: the questions your agent will be evaluated against plus the grading configuration (judge criteria, similarity metrics, code scorers) used when a run doesn’t bring its own evaluation-settings config. Creation also seeds version v0 of the dataset’s version history.

Authentication

string
required
Project API key.

Body

string
required
Dataset display name.
array
default:"[]"
Question objects. Not validated at creation time (an empty or malformed array is accepted), but a run against a dataset with no usable questions has nothing to score. Each question wraps its fields in main_question:
string
Human-readable description.
number
default:"1"
How many times each question is run per evaluation (for consistency testing).
string
What a good response looks like. Included in the LLM scoring prompt.
string
What a bad response looks like. Included in the LLM scoring prompt.
string
Scoring rubric. Included in the LLM scoring prompt.
object
Enable cosine similarity scoring against expectedResults (requires an embeddings-capable provider key). Only { "enabled": true } activates it; model optionally selects the embedding model.
object
Enable Jaccard token-overlap scoring against expectedResults: { "enabled": true }.
object
Enable BLEU scoring against expectedResults: { "enabled": true }.
object
Enable ROUGE scoring against expectedResults: { "enabled": true }.
array
Deterministic code scorers run on every result. Each: { "id"?: string, "name": string, "code": string, "enabled"?: boolean }. Entries with empty code are dropped; enabled defaults to true.

Response

Returns 201 Created with the full dataset document, keyed by _id. status is always "published" on self-host. The enabled similarity metrics come back as top-level keys (vectorSimilarity, jaccardSimilarity, …), matching what was sent.

Errors