Insert new documents or update existing documents in a vector store.
Upsert Behavior: If a document ID already exists, it will be completely replaced with the new content and metadata. The previous document’s text, embedding, and all metadata fields are discarded. If the ID does not exist, a new document is created.
Automatic Embedding: Text content is automatically embedded using the vector store’s configured embedding model. Embedding generation is handled internally—only the text content needs to be provided.
Batch Operations: This endpoint supports batch operations with partial success handling. If some documents fail (e.g., due to validation errors), others will still be processed. The response includes detailed success/failure counts and error messages.
Metadata: Supports nested metadata with string, number, boolean, object, and array types. Null values are not permitted—omit the field or use an empty string instead.
The name of the vector store
Request to upsert documents.
Array of documents to upsert
Successful Response
Response for batch insert/upsert operations.