Skip to main content
Creates a new encrypted vector index using comprehensive parameters. The new index is empty and ready for vector operations.

Parameters

CreateIndexParams

Returns

Exceptions

  • Throws if the index name already exists on the server.
  • Throws if the index configuration is invalid or missing required parameters.
  • Throws if the encryption key is not exactly 32 bytes.
  • Throws if the embedding model is not supported by the server.
  • Throws if the CyborgDB service is unavailable or unreachable.
  • Throws if there are internal server errors on the CyborgDB service.

Example Usage

Automatic Index Config

For more info on generateKey, refer to Generate Key.

IVFFlat Index with Embedding Model

For more info on auto-generating embeddings, refer to Auto-Generate Embeddings.