Skip to content

CreateTableRequest

Example Usage

typescript
import { CreateTableRequest } from "@meetkai/mka1/models/operations";

let value: CreateTableRequest = {
  createTableRequest: {
    name: "support_kb",
    schema: {
      fields: [
        {
          name: "id",
          nullable: false,
          type: "string",
        },
        {
          name: "content",
          nullable: false,
          type: "string",
          index: "FTS",
        },
        {
          name: "category",
          nullable: false,
          type: "string",
        },
        {
          name: "rating",
          nullable: true,
          type: "float",
        },
        {
          name: "embedding",
          nullable: false,
          type: "vector",
          dimensions: 3,
        },
      ],
    },
  },
};

Fields

FieldTypeRequiredDescriptionExample
xOnBehalfOfstringOptional external end-user identifier forwarded by the API gateway.
createTableRequestcomponents.CreateTableRequest✔️N/A{
"name": "support_kb",
"schema": {
"fields": [
{
"name": "id",
"nullable": false,
"type": "string"
},
{
"index": "FTS",
"name": "content",
"nullable": false,
"type": "string"
},
{
"name": "category",
"nullable": false,
"type": "string"
},
{
"name": "rating",
"nullable": true,
"type": "float"
},
{
"dimensions": 3,
"name": "embedding",
"nullable": false,
"type": "vector"
}
]
}
}