Skip to content

InsertDataRequest

Example Usage

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

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

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