Skip to main content
If you’ve previously created an encrypted index, you can connect to it to add, query or delete data from it. You will need to know the index’s name as well as its key to do so:
For role-based access control (RBAC), a per-user load passes the user’s 16-byte identifier: load_index("my_index", user_kek, user_id=user_id) in Python, or client.LoadIndex("my_index", user_kek, nullptr, user_id) in C++. The supplied key then acts as that user’s key-encryption key, and per-operation permissions are enforced.
You will need to replace index_key with your own index encryption key. For production use, we recommend that you use an HSM or KMS solution. For more details, see Managing Encryption Keys.

API Reference

For more information on loading an encrypted index, refer to the API reference:

Python API Reference

API reference for load_index() in Python

C++ API Reference

API reference for LoadIndex() in C++