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.Documentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description |
|---|---|---|
training_config | TrainingConfig | (Optional) Training parameters including n_lists, batch size, max iterations, tolerance, and max memory. |
Exceptions
Throws if there are not enough vector embeddings in the index for training (must be at least2 * n_lists).
std::runtime_error
std::runtime_error
- Throws if there are not enough vector embeddings in the index for training (must be at least
2 * n_lists). - Throws if the index could not be trained.