API Endpoint
Create Collection with Dense Vectors
1
Define collection parameters
Create a collection with a single dense vector configuration. This is the most common use case.
2
Send the request
Use the REST API or Python client to create the collection.
Vector Configuration Parameters
integer
required
Size of the vector (number of dimensions).
string
required
Distance metric for vector comparison. Available options:
Cosine- Cosine similarityEuclid- Euclidean distanceDot- Dot productManhattan- Manhattan distance
object
HNSW index configuration for fast approximate nearest neighbor search.
object
Quantization configuration to reduce memory usage.
boolean
default:"false"
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:boolean
Indicates whether the operation was successful.
string
Operation status, typically “ok” on success.
number
Time taken to execute the operation in seconds.
Response Example
Query Parameters
integer
Wait timeout in seconds for the operation to complete. If timeout is reached, the service will return an error.