Skip to main content
EncryptedIndex exposes index settings as properties, plus two training-status methods. Every getter except index_name calls the service’s describe or training-status endpoint. On HTTP errors, getters raise the same CyborgDBError subclasses as the other methods, for example NotFoundError if the index was deleted.

index_name

The index’s name. Read locally, with no network call.

dimension

Vector dimensionality. Returns 0 if the index was created without a dimension and nothing has been upserted yet. Once non-zero, the value is cached and later reads don’t call the service.

metric

Distance metric: "euclidean", "squared_euclidean", or "cosine". Cached after the first read.

n_lists

Number of IVF lists. 1 for an untrained index; the trained list count after train(). Fetched from the service on every read.

metadata_schema

The per-field indexing policy set with metadata_schema or text_fields in create_index(). Each entry has filterable, pattern, and full_text. {} when the index uses the default policy. Fetched on every read.

bm25

The index’s BM25 settings, or None when it has no full-text fields.

is_trained

True if the index has been trained. Raises a CyborgDBError subclass if the describe request fails, for example NotFoundError if the index was deleted.

is_training

True while the service is training this index or has it queued for training. Requires the root key: with a per-user key the service returns HTTP 403 and the SDK raises cyborgdb.AuthenticationError.