upsert_documents
Insert new documents or update existing ones by ID in a Zvec collection. Modify documents without checking existence first.
Instructions
Insert new documents or update existing ones by ID.
This operation inserts documents if they don't exist, or updates them if they do.
Args: params (UpsertDocumentsInput): Validated input parameters containing: - collection_name (str): Collection identifier - documents (List[DocumentInput]): Documents to upsert
Returns: str: Success message with upsert count or error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |