Vector Upsert

Upsert vector embeddings

post

Upsert vector embeddings of documents in a chatflow

Authorizations
Path parameters
idstringRequired

Chatflow ID

Body
stopNodeIdstringOptional

In cases when you have multiple vector store nodes, you can specify the node ID to store the vectors

Example: node_1
overrideConfigobjectOptional

The configuration to override the default vector upsert settings (optional)

Responses
200
Vector embeddings upserted successfully
application/json
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