Client
Training Status
GET
Training Status
Get the current training status including indexes being trained and the first-train vector-count floor.
When RBAC is not enabled (
Monitor Training Progress:
Wait for Training Completion:
Check First-Train Floor:
Authentication
Required - admin (root) API key viaX-API-Key header. Per-user (cdbk_) keys are rejected with 403:
CYBORGDB_SERVICE_ROOT_KEY unset), no header is required.
Request
This is a GET request with no request body. Authentication is required via the admin 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
403 Forbidden
403 Forbidden
Authenticated with a per-user (
cdbk_) key — training status requires the admin (root) API key500 Internal Server Error
500 Internal Server Error
Internal server error
Example Usage
Get Training Status:Training is automatically triggered when:
- An untrained index’s vector count exceeds the first-train floor (
num_vectors > retrain_threshold) - A trained index grows enough that its optimal number of inverted lists exceeds the current
n_lists - Manual training is requested via the
/v1/indexes/trainendpoint
AUTO_TRAIN_DISABLED=true on the service to turn off automatic training. See Train an Encrypted Index for details.