GetIndexName
Returns the unique name of the index.string - The index name as specified during creation
Example:
GetIndexType
Returns the algorithm type of the index.string - Index type (“ivfflat”, “ivfpq”, or “ivfsq”)
Example:
IsTrained
Checks whether the index has been optimized through training. This method makes an API call to get the current training status from the server.ctx:context.Context- Context for cancellation and timeouts
bool-trueif the index has been trained,falseotherwiseerror- Any error encountered during the status check
GetIndexConfig
Returns the detailed configuration of the index.internal.IndexConfig - The index configuration, or empty if not available
Note: For indexes loaded via LoadIndex(), the configuration may be incomplete.
Example:
CheckTrainingStatus
Queries the server to check if the index is currently being trained and updates the cached training status.ctx:context.Context- Context for cancellation and timeouts
bool-trueif the index is currently being trained,falseotherwiseerror- Any error encountered during the status check
IsTrained() value if training has completed.
Example: