Parameters
Parameter | Type | Description |
---|---|---|
ctx | context.Context | Context for cancellation/timeouts |
items | []VectorItem | Slice of vector items to add or update |
VectorItem
Returns
Type | Description |
---|---|
error | Any error encountered during the upsert operation |
Exceptions
Error
Error
- Throws if the API request fails due to network connectivity issues.
- Throws if authentication fails (invalid API key).
- Throws if the encryption key is invalid for the specified index.
- Throws if there are internal server errors preventing the upsert.
Validation Errors
Validation Errors
- Throws detailed validation errors for invalid VectorItem objects.
- Throws if vector dimensions don’t match the index configuration.
- Throws if required fields are missing from vector items.
- Throws if array lengths don’t match in parallel array format.
- Throws if vector elements are not finite numbers.