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.
Parameters
Exceptions
ValueError
ValueError
- Raises an exception if the index was not created or loaded yet.
RuntimeError
RuntimeError
- Raises an exception if there are not enough vector embeddings in the index for training (must be at least
2 * n_lists). - Raises an exception if the index could not be trained.