Parameters
Exceptions
ValueError
ValueError
- Raises an exception if the index was not created or loaded yet.
- Raises an exception if the index could not be trained.
Example Usage
Index key
index_key is required on every call. Pass the same 32-byte index KEK you used with create_index() / load_index(). For an RBAC user, pass the user’s KEK as index_key= together with their user_id=:
Training requires write permission. An RBAC user without a write wrap cannot train the index.