Encrypted Index
Train Index
This function is only present in the core library version of CyborgDB.
In other versions (microservice, serverless), it is automatically called once enough vector embeddings have been indexed.
Builds the index using the specified training configuration. Required before efficient querying. Prior to calling this, all queries will be conducted using encrypted exhaustive search. After, they will be conducted using encrypted ANN search.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
batch_size | int | 2048 | (Optional) Size of each batch for training. |
max_iters | int | 100 | (Optional) Maximum number of iterations for training. |
tolerance | float | 1e-6 | (Optional) Convergence tolerance for training. |
max_memory | int | 0 | (Optional) Maximum memory to use for training. 0 sets no limit. |
There must be at least
2 * n_lists
vector embeddings in the index prior to to calling this function.Exceptions
Example Usage
Was this page helpful?