Skip to content

InsertDataRequest

Example Usage

typescript
import { InsertDataRequest } from "@meetkai/mka1/models/components";

let value: InsertDataRequest = {
  data: [
    {
      "content": "Machine learning is a subset of AI",
      "embedding": [
        0.1,
        0.2,
        0.3,
      ],
      "id": "doc1",
    },
    {
      "content": "Deep learning uses neural networks",
      "embedding": [
        0.4,
        0.5,
        0.6,
      ],
      "id": "doc2",
    },
  ],
};

Fields

FieldTypeRequiredDescription
dataRecord<string, any>[]✔️N/A
refreshbooleanRefresh non-vector indices. Any vector indices must be manually recreated through the create_indices endpoint.