Skip to content

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

FieldTypeRequiredDescription
tableNamestring✔️N/A
schemacomponents.TableSchemaOutput✔️N/A
indicescomponents.IndexInfo[]✔️N/A