Skip to main content
GET
Training Status
Get the current training status including indexes being trained and the retrain threshold configuration.

Authentication

Required - API key via X-API-Key header:
You can get an API key from the CyborgDB Admin Dashboard. For more info, follow this guide.

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 the currently_training and queued_indexes fields:
  • If currently_training is non-null, that index is actively being trained
  • Indexes in queued_indexes are 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:
Monitor Training Progress:
Wait for Training Completion:
Check Retrain Threshold:
Training is automatically triggered when:
  1. An index reaches the configured vector threshold (num_vectors > n_lists * retrain_threshold)
  2. Manual training is requested via the /v1/indexes/train endpoint
  3. The index has never been trained and reaches the minimum vector count
Use this endpoint to avoid querying an index while it’s being trained, as training can temporarily affect query performance.