Skip to main content
POST
Create Index
Create a new encrypted index with the specified configuration.

Request Body

Index Types

Suitable for applications requiring high recall with moderate memory usage:
Speed: Fast | Recall: Highest | Index Size: Biggest

IVFSQ

Scalar Quantization compresses each dimension independently, balancing speed and index size:
Speed: Fast | Recall: High | Index Size: Small

IVFPQ

Product Quantization compresses embeddings, balancing memory use and recall:
Speed: Fast | Recall: High | Index Size: Medium

IVF (Deprecated)

The ivf type is deprecated. Use ivfflat instead, which provides equivalent functionality.

Distance Metrics

  • "euclidean": Euclidean distance
  • "cosine": Cosine similarity
  • "squared_euclidean": Squared Euclidean distance

Response

Exceptions

  • 401: Authentication failed (invalid API key)
  • 409: Index name already exists
  • 422: Invalid request parameters
  • 500: Internal server error

Example Usage

With Auto-Embedding

When embedding_model is specified:
  • The dimension parameter in index_config is optional
  • The entire index_config object is optional (defaults to IVFFlat with auto-detected dimension)
  • The index will automatically generate embeddings for text content during upsert operations