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 (“ivf”, “ivfflat”, or “ivfpq”)
Example:
IsTrained
Reports whether the index has been optimized through training.bool
- true
if the index has been trained, false
otherwise
Note: This is a cached value that’s updated automatically when Train()
completes successfully.
Example:
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
-true
if the index is currently being trained,false
otherwiseerror
- Any error encountered during the status check
IsTrained()
value if training has completed.
Example: