CreateTableResponse
Example Usage
typescript
import { CreateTableResponse } from "@meetkai/mka1/models/components";
let value: CreateTableResponse = {
tableName: "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,
},
],
},
indices: [
{
field: "content",
indexType: "FTS",
config: {
"type": "FTS",
},
},
],
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
tableName | string | ✔️ | N/A |
schema | components.TableSchemaOutput | ✔️ | N/A |
indices | components.IndexInfo[] | ✔️ | N/A |