Documentation Index
Fetch the complete documentation index at: https://mintlify.com/yocxy2/Flowise/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Vector Upsert API allows you to add or update documents in vector stores that are used for retrieval-augmented generation (RAG). This enables you to keep your knowledge base up-to-date programmatically.Vector upsert endpoints require API key authentication when the chatflow has an
apikeyid configured.Upsert Vector
Add or update documents in a vector store.POST /api/v1/vector/upsert/:id
Path Parameters
The unique identifier of the chatflow containing the vector store
Request Body
Text content to upsert into the vector store
Metadata to attach to the document for filtering and retrieval
Array of files to process and upsert (sent as multipart/form-data)
Override vector store configuration for this request
Response
Status of the operation:
success or errorHuman-readable message about the operation
Number of document chunks added to the vector store
Array of documents that were added with their IDs and metadata
Upsert Files
Upload and process files to upsert into a vector store.POST /api/v1/vector/upsert/:id (with files)
Supported File Types
Flowise supports various file types depending on your chatflow configuration:- Documents: PDF, DOCX, TXT, MD
- Data: CSV, JSON, XLSX
- Code: JS, TS, PY, JAVA, CPP
- Web: HTML, XML
File processing uses the document loaders configured in your chatflow. Ensure appropriate loaders are set up for your file types.
Internal Upsert
The internal upsert endpoint is used for administrative operations and internal workflows:POST /api/v1/vector/internal-upsert/:id
Chunking Strategy
Documents are automatically split into chunks before embedding. You can configure the chunking strategy:Metadata Filtering
Metadata enables powerful filtering during retrieval. Use descriptive metadata to improve search accuracy:Batch Upserts
For large-scale updates, batch multiple documents in a single request:File Upload Example
Upload multiple files with custom metadata:Rate Limiting
Vector upsert operations may be rate-limited to prevent abuse:Vector Store Requirements
Chatflow Must Have Vector Store
Chatflow Must Have Vector Store
The chatflow must be configured with a vector store node (e.g., Pinecone, Qdrant, Chroma) to accept upsert requests.If the chatflow doesn’t have a vector store, you’ll receive an error.
Document Loaders Required for Files
Document Loaders Required for Files
To upsert files, the chatflow must have appropriate document loader nodes configured.For example, to process PDFs, include a PDF loader node in your flow.
Text Splitters
Text Splitters
Text splitter nodes determine how documents are chunked before embedding.Configure chunk size and overlap based on your use case:
- Technical docs: 500-1000 tokens, 100-200 overlap
- Articles: 1000-2000 tokens, 200-400 overlap
- Short Q&A: 200-500 tokens, 50-100 overlap
Error Handling
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
Chatflow doesn’t exist.Solution: Verify the chatflow ID is correct.
500 Internal Server Error
500 Internal Server Error
Vector store operation failed.Possible causes:
- Vector store credentials are invalid
- Network connectivity issues
- Vector store quota exceeded