Vector Upsert
Upsert vector embeddings of documents in a chatflow
Authorizations
Path parameters
idstringRequired
Chatflow ID
Body
stopNodeIdstringOptionalExample:
In cases when you have multiple vector store nodes, you can specify the node ID to store the vectors
node_1
overrideConfigobjectOptional
The configuration to override the default vector upsert settings (optional)
Responses
200
Vector embeddings upserted successfully
application/json
400
Invalid input provided
404
Chatflow not found
422
Validation error
500
Internal server error
post
POST /vector/upsert/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"stopNodeId": "node_1",
"overrideConfig": {}
}
{
"numAdded": 1,
"numDeleted": 1,
"numUpdated": 1,
"numSkipped": 1,
"addedDocs": [
{
"pageContent": "This is the content of the page.",
"metadata": {
"author": "John Doe",
"date": "2024-08-24"
}
}
]
}
Last updated