An example is a record to feed into an AI task

interface Example {
    input: Record<string, unknown>;
    metadata?: null | Record<string, unknown>;
    output?: null | Record<string, unknown>;
    spanId?: null | string;
    splits?: null | string | string[];
}

Hierarchy (View Summary)

Properties

input: Record<string, unknown>
metadata?: null | Record<string, unknown>
output?: null | Record<string, unknown>
spanId?: null | string

OpenTelemetry span ID to link this example back to its source span. When provided, the dataset example will be associated with the span in the Phoenix UI, enabling traceability from datasets back to traces.

splits?: null | string | string[]

Split assignment for this example. Can be:

  • A single string for one split: "train"
  • An array of strings for multiple splits: ["train", "easy"]
  • null for no split assignment