Client
Training Status
GET
Training Status
Get the current training status including indexes being trained and the retrain threshold configuration.
You can get an API key from the CyborgDB Admin Dashboard. For more info, follow this guide.
Monitor Training Progress:
Wait for Training Completion:
Check Retrain Threshold:
Authentication
Required - API key viaX-API-Key header:
Request
This is a GET request with no request body. Authentication is required via the API key header.Response
Training States
Training state is inferred from thecurrently_training and queued_indexes fields:
- If
currently_trainingis non-null, that index is actively being trained - Indexes in
queued_indexesare waiting their turn - An index not in either field has completed or has not been trained
Exceptions
401: Authentication failed (invalid API key)500: Internal server error
Example Usage
Get Training Status:Training is automatically triggered when:
- An index reaches the configured vector threshold (
num_vectors > n_lists * retrain_threshold) - Manual training is requested via the
/v1/indexes/trainendpoint - The index has never been trained and reaches the minimum vector count