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: 128,
          maxIterations: 50,
          sampleRate: 256,
          reindexAfter: 3600,
        },
      },
    ],
  },
};

Fields

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