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
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
xOnBehalfOf | string | ➖ | Optional external end-user identifier forwarded by the API gateway. | |
createTableRequest | components.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" } ] } } |