Encrypted Indexes
Create a New Encrypted Index
To create an encrypted index, you need to specify an index name (must be unique), an index key, and an index configuration. Here’s an example with an IVFFlat index type:
This creates a new encrypted index with the IVFFlat type. For more details on IVFFlat and other index options, see Configure an Encrypted Index.
The example above creates a random 32 byte (256-bit) index key.
This is fine for evaluation purposes, but for production use, we recommend that you use an HSM or KMS solution.
For more details, see Managing Encryption Keys.
Encrypted Index Caching
For improved query performance, you can enable encrypted index caching by setting a max_cache_size
:
Automatic Embedding Generation
This feature is only available in Python and is experimental as of v0.9.0.
In the Python version of CyborgDB, you can enable automatic embedding generation for the encrypted index by setting embedding_model
in create_index()
:
Python
API Reference
For more information on creating encrypted indexes, refer to the API reference:
Was this page helpful?