upsert_binary() sends vectors as base64-encoded little-endian float32 instead of JSON arrays, which is faster for large batches. Unlike the two-argument form of upsert(), it also takes parallel metadata and contents.
Parameters
Returns
None
Exceptions
cyborgdb.ValidationError
cyborgdb.ValidationError
- Also a
TypeError.vectorsis not a NumPy array. vectorsis not 2-D, orids,metadata, orcontentsdiffer in length fromvectors. Raised before any request is sent.- The service rejects the batch (HTTP
400), for example a vector with the wrong dimension.
cyborgdb.ServiceError / cyborgdb.TransportError
cyborgdb.ServiceError / cyborgdb.TransportError
The service returns
5xx or can’t be reached.