Client
Create Index
POST
Create Index
Create a new encrypted index with the specified configuration.Documentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Index Types
IVFFlat (Recommended)
Suitable for applications requiring high recall with moderate memory usage:IVFSQ
Scalar Quantization compresses each dimension independently, balancing speed and index size:IVFPQ
Product Quantization compresses embeddings, balancing memory use and recall:IVF (Deprecated)
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
dimensionparameter inindex_configis optional - The entire
index_configobject is optional (defaults to IVFFlat with auto-detected dimension) - The index will automatically generate embeddings for text content during upsert operations