iai dataset-items create
Synopsis
iai dataset-items create [flags]Examples
iai dataset-items create --dataset-name my-dataset --input '{"question":"2+2?"}'
iai dataset-items create --dataset-name my-dataset --input '{"question":"2+2?"}' --expected-output '{"answer":"4"}'
iai dataset-items create --dataset-name my-dataset --id item-123 --input '{"q":"hi"}' --metadata-json '{"source":"manual"}' --status ACTIVE
iai dataset-items create --dataset-name my-dataset --input '{"q":"hi"}' --source-trace-id trace-123 --jsonOptions
--dataset-name string Dataset name (required)
--expected-output string Expected output as JSON string
-h, --help help for create
--id string Explicit item ID (for upsert)
--input string Input as JSON string
--json Output raw API response as JSON
--metadata-json string Metadata as JSON object
-o, --organization string Organization name that owns the project
-p, --project string Project name
--source-observation-id string Source observation ID
--source-trace-id string Source trace ID
--status string Item status (ACTIVE/ARCHIVED)
--yaml Output raw API response as YAMLOptions inherited from parent commands
SEE ALSO
Last updated
Was this helpful?

