Parameters
Parameter | Type | Description |
---|---|---|
ctx | context.Context | Context for cancellation/timeouts |
indexName | string | Name of the existing index to load |
indexKey | []byte | 32-byte encryption key used during index creation |
The encryption key must exactly match the key used during index creation.
Returns
Type | Description |
---|---|
*EncryptedIndex | Handle for performing vector operations on the loaded index |
error | Any error encountered during index loading |
Exceptions
Error
Error
- Throws if the index doesn’t exist on the server
- Throws if the encryption key is incorrect or invalid
- Throws if the server returns an HTTP error status.
- Throws if authentication fails (invalid API key).
Service Errors
Service Errors
- Throws if the CyborgDB service is unavailable or unreachable.
- Throws if there are internal server errors on the CyborgDB service.