EncryptedIndex bound to it.
Parameters
Returns
AnEncryptedIndex bound to the loaded index.
Exceptions
cyborgdb.ValidationError
cyborgdb.ValidationError
index_key is passed but is not 32 bytes. Raised before any request is sent.cyborgdb.NotFoundError
cyborgdb.NotFoundError
No index named
index_name exists, or index_key doesn’t match (HTTP 404, in most cases).cyborgdb.AuthenticationError
cyborgdb.AuthenticationError
index_key doesn’t match an index that has vectors and is already in the service’s cache, or the client’s api_key is missing or invalid; or, for a KMS-backed index, its KMS slot is missing or the provider call fails (HTTP 401).cyborgdb.ServiceError
cyborgdb.ServiceError
The service returns
5xx.cyborgdb.TransportError
cyborgdb.TransportError
The service can’t be reached.
A wrong key returns
cyborgdb.AuthenticationError (HTTP 401) when the index has vectors and the service already has it cached, and cyborgdb.NotFoundError (HTTP 404) otherwise, for example on an empty index or right after the service restarts. Catch both when checking for a bad key.