Skip to content

CreateIndicesRequest

Example Usage

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

let value: CreateIndicesRequest = {
  tableName: "<value>",
  createIndicesRequest: {
    indices: [
      {
        field: "embedding",
        config: {
          type: "IVF_FLAT",
          distanceType: "cosine",
          numPartitions: 256,
          maxIterations: 50,
          sampleRate: 256,
        },
      },
    ],
  },
};

Fields

FieldTypeRequiredDescriptionExample
tableNamestring✔️N/A
createIndicesRequestcomponents.CreateIndicesRequest✔️N/A{
"indices": [
{
"config": {
"distance_type": "cosine",
"num_partitions": 256,
"type": "IVF_FLAT"
},
"field": "embedding"
}
]
}