Skip to content

InsertDataRequest

Example Usage

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

let value: InsertDataRequest = {
  tableName: "<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

FieldTypeRequiredDescriptionExample
tableNamestring✔️N/A
insertDataRequestcomponents.InsertDataRequest✔️N/A{
"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
}
],
"refresh": true
}