Loads and connects to an existing encrypted index using its name and encryption key.Documentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description |
|---|---|---|
indexName | string | Name of the existing index to load |
indexKey | Uint8Array | The exact 32-byte encryption key used when creating the index |
Returns
Promise<EncryptedIndex>: A Promise that resolves to an EncryptedIndex instance ready for vector operations (query, upsert, delete, etc.)
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.