API Endpoint
Create Collection with Dense Vectors
Define collection parameters
Create a collection with a single dense vector configuration. This is the most common use case.
Vector Configuration Parameters
Size of the vector (number of dimensions).
Distance metric for vector comparison. Available options:
Cosine- Cosine similarityEuclid- Euclidean distanceDot- Dot productManhattan- Manhattan distance
HNSW index configuration for fast approximate nearest neighbor search.
Quantization configuration to reduce memory usage.
Store vectors on disk instead of RAM to save memory.
Create Collection with Named Vectors
Use named vectors when you need multiple vector representations per point (e.g., text and image embeddings).Create Collection with Sparse Vectors
Sparse vectors are useful for keyword-based search and can be combined with dense vectors for hybrid search.Additional Configuration Options
Optimizers Config
Control how Qdrant optimizes storage and indexing.Replication Factor
For distributed deployments, specify how many replicas to create.Replication factor must be less than or equal to the number of nodes in your cluster.
Response Format
Successful collection creation returns:Indicates whether the operation was successful.
Operation status, typically “ok” on success.
Time taken to execute the operation in seconds.
Response Example
Query Parameters
Wait timeout in seconds for the operation to complete. If timeout is reached, the service will return an error.