is_trained
true only when the training state is
Trained. While a (re)train rebuild is in progress this returns false, and queries
transparently fall back to the untrained (exhaustive) search path. See
is_training and training_state.
is_training
true while a (re)train rebuild is in progress, otherwise false.
training_state
TrainingState enum:
Untrained, Training, or Trained.
index_name
index_type
IndexType enum. The only value is
DISK_IVF.
index_config
IndexDiskIVF).
ListIDs
Parameters
| Parameter | Type | Description |
|---|---|---|
key | KeyContext | Key context for the operation. A bare 32-byte index key (the index_key) implicitly converts to a KeyContext. |
Exceptions
- std::runtime_error: Thrown if an error occurs during retrieval.
NumVectors
Parameters
| Parameter | Type | Description |
|---|---|---|
key | KeyContext | Key context for the operation. A bare 32-byte index key (the index_key) implicitly converts to a KeyContext. |
Returns
size_t: The number of vectors in the index.
Exceptions
std::runtime_error
std::runtime_error
- Throws if the index was not created or loaded yet.
- Throws if an error occurs while retrieving the count.