EncryptedIndex.
Parameters
| Parameter | Type | Description |
|---|---|---|
index_name | str | Name of the index to load. |
index_key | bytes | 32-byte encryption key; must match the key used during create_index(). |
max_cache_size | int | (Optional) Maximum size of local cache to keep for encrypted index (megabytes). Defaults to 0. |
logger | Logger | (Optional) Logger instance for capturing operation logs. Defaults to None. |
Returns
EncryptedIndex: An instance of the loaded encrypted index.
Exceptions
ValueError
ValueError
- Throws if the index name does not exist.
RuntimeError
RuntimeError
- Throws if the index could not be loaded or decrypted.