Skip to main content
v0.17 replaces the v0.16 getters (index_type, index_config) with explicit properties for the single DiskIVF index type: dimension, metric, and n_lists. Most are lazily fetched and cached on first read.

index_name

Returns the name of the encrypted index. Always available locally — no network call.

Example Usage


dimension

Vector dimensionality.
  • Returns the real dimension when create_index was called with an explicit dimension, or after the first upsert (auto-detect).
  • Returns 0 if the index was created with auto-detect AND no upsert has happened yet.
Cached on first read; subsequent reads do not hit the server.

Example Usage


metric

Distance metric: "euclidean", "squared_euclidean", or "cosine". Cached on first read alongside dimension.

Example Usage


n_lists

Number of inverted lists in the IVF index.
  • Returns 1 for untrained indexes.
  • Returns the trained cluster count after train() completes.
Unlike dimension and metric, n_lists is fetched fresh on every read so callers reading immediately after training see the new value.

Example Usage


is_trained

Returns whether the index has been trained. Training is required for optimal query performance on large indexes.

Returns

bool: True if the index has been trained, False otherwise (or if the underlying describe call fails).

Example Usage


is_training

Returns whether this index is currently in the process of training (either actively training or queued).

Returns

bool: True if the index is currently training or queued, False otherwise.

Example Usage