Client
Create Index
Creates and returns a new encrypted index based on the provided configuration.
Parameters
Parameter | Type | Description |
---|---|---|
index_name | std::string | Name of the index to create (must be unique). |
index_key | std::array<uint8_t, 32> | 32-byte encryption key for the index, used to secure index data. |
index_config | IndexConfig | Configuration for the index type (e.g., IVFFlat, IVFPQ). |
max_cache_size | size_t | (Optional) Maximum size for the local cache (default is 0 ). |
Returns
std::unique_ptr<cyborg::EncryptedIndex>
: A pointer to the newly created index (EncryptedIndex
).
Exceptions
Example Usage
Was this page helpful?