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
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
tableName | string | ✔️ | N/A | |
insertDataRequest | components.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 } |