Client
Create Index
POST
Create Index
Create a new encrypted index with the specified configuration.
Speed: Fast | Recall: Highest | Index Size: Biggest
Speed: Fastest | Recall: Lowest | Index Size: Smallest
Speed: Fast | Recall: High | Index Size: Medium
Request Body
Index Types
IVFFlat (Recommended)
Suitable for applications requiring high recall with moderate memory usage:IVF
Ideal for large-scale datasets where fast retrieval is prioritized:IVFPQ
Product Quantization compresses embeddings, balancing memory use and recall: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 exists422: Invalid request parameters500: Internal server error
Example Usage
With Auto-Embedding
When
embedding_model is specified, the dimension parameter in index_config is optional as it will be inferred from the embedding model.