Client
Create Index
POST
Create Index
Create a new encrypted DiskIVF index.
KMS-backed:
With auto-embedding:
Float16 storage for reduced footprint:
v0.17 introduces a single DiskIVF index type and removes the polymorphic
index_config object from previous versions. Configuration parameters (dimension, metric, embedding_model, storage_precision) are now top-level fields. The IVFFlat/IVFPQ/IVFSQ distinction no longer applies.Request Body
Key Management Modes
Exactly one ofindex_key / kms_name must be supplied:
- SDK-supplied KEK (set
index_key, omitkms_name) — the service records the index withprovider: none. The same key must be re-supplied on every subsequent request (load, query, upsert, etc.). - KMS-backed (set
kms_name, omitindex_key) — the service generates the KEK, wraps it under the named registry slot, and persists the envelope. Subsequent requests omitindex_keyentirely; the service resolves it via the storedKMSBlob.
none provider is not addressable by name — omit kms_name to use the SDK-supplied path.)
Response
Exceptions
400: Missing/conflicting key parameters (e.g. bothindex_keyandkms_nameagainst a real KMS slot, or neither supplied)401: Authentication failed (invalid API key)409: Index name already exists422: Invalid request parameters500: Internal server error502: KMS error (e.g. wrap operation failed)
Example Usage
Basic (SDK-supplied key):When
embedding_model is specified, dimension is optional — the server infers it from the model. The index will automatically generate embeddings for text content during upsert operations.