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
| Field | Type | Required | Description |
|---|---|---|---|
data | Record<string, any>[] | ✔️ | N/A |
refresh | boolean | ➖ | Refresh non-vector indices. Any vector indices must be manually recreated through the create_indices endpoint. |