For the complete documentation index, see llms.txt. This page is also available as Markdown.

iai dataset-items create

Create a dataset item

Synopsis

Create or upsert an item in a dataset.

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 --json

Options

      --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 YAML

Options inherited from parent commands

SEE ALSO

Last updated

Was this helpful?