{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-onboard-request-schema.json",
  "title": "OnboardRequest",
  "description": "Register any data source for semantic querying.\n\nProvide data via ONE of:\n  records  — list of row dicts (JSON records)\n  csv      — raw CSV text (headers in first row)\n  columns  — list of column name strings (schema-only, no samples)\n\nFor file uploads use POST /v1/datasets/onboard/file.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-datasets-api-openapi.yml#/components/schemas/OnboardRequest",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Human-readable dataset name",
      "default": "dataset"
    },
    "source_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Name",
      "description": "Table name used in the schema"
    },
    "records": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Records",
      "description": "JSON records (list of row dicts)"
    },
    "csv": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Csv",
      "description": "Raw CSV text with header row"
    },
    "columns": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Columns",
      "description": "Column names only — no data required"
    },
    "domain_aliases": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Domain Aliases",
      "description": "Manual alias map. Auto-suggested from column names when omitted."
    },
    "async_train": {
      "type": "boolean",
      "title": "Async Train",
      "description": "Fire background semantic training immediately",
      "default": true
    },
    "epochs": {
      "type": "integer",
      "maximum": 500.0,
      "minimum": 5.0,
      "title": "Epochs",
      "default": 80
    },
    "batch_size": {
      "type": "integer",
      "maximum": 256.0,
      "minimum": 8.0,
      "title": "Batch Size",
      "default": 32
    }
  },
  "type": "object"
}