Skip to main content

is_trained

Returns whether the index has been trained.

index_name

Returns the name of the index.

index_type

Returns the type of the index (for example, ivf, ivfpq, or ivfflat).

index_config

Returns a pointer to the index configuration.

ListIDs

Returns a vector containing all item IDs currently stored in the index.

Exceptions

  • std::runtime_error: Thrown if an error occurs during retrieval.

NumVectors

Returns the total number of vectors currently stored in the encrypted index.

Returns

size_t: The number of vectors in the index.

Exceptions

  • Throws if the index was not created or loaded yet.
  • Throws if an error occurs while retrieving the count.

Example Usage