Skip to content

InsertDataRequest

Example Usage

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

let value: InsertDataRequest = {
  data: [
    {
      "category": "account",
      "content": "Reset your password from the account settings page.",
      "embedding": [
        0.13,
        -0.09,
        0.41,
      ],
      "id": "doc_001",
      "rating": 4.7,
    },
    {
      "category": "security",
      "content": "Use two-factor authentication for added account security.",
      "embedding": [
        0.07,
        -0.02,
        0.36,
      ],
      "id": "doc_002",
      "rating": 4.9,
    },
  ],
};

Fields

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