Parameters
TrainParams Fields
Training is a compute-intensive operation that may take several seconds to minutes depending on the index size and configuration.
Returns
error: Any error encountered during training, ornilif successful
Error Handling
API Errors
API Errors
- Returns error if the API request fails due to network connectivity issues
- Returns error if authentication fails (invalid API key)
- Returns error if the encryption key is invalid for the specified index
- Returns error if there are internal server errors during training
Training Errors
Training Errors
- Returns error if the index has insufficient data for training
- Returns error if training parameters are invalid or out of range
- Returns error if training fails due to memory constraints