Qdrant is a vector database that stores embeddings and finds the nearest ones to a query. Running it in Docker keeps the service local, with its data in a folder on your machine, and its dashboard on port 6333.
What you need
- Docker installed and running
- Python 3.10 or newer with pip, for the client
- About 1 GB of free disk space for the image and a first collection
Step 1: Pull and start Qdrant
Run docker pull qdrant/qdrant, then docker run -p 6333:6333 -p 6334:6334 -v ‘$(pwd)/qdrant_storage:/qdrant/storage:z’ qdrant/qdrant. Port 6333 is the REST API, port 6334 is gRPC, and the volume keeps every byte of data in ./qdrant_storage so restarts lose nothing.
Step 2: Check the dashboard
Open http://localhost:6333/dashboard in a browser. The dashboard confirms the server is up and shows collections. The REST API also answers at http://localhost:6333.
Step 3: Create a first collection
Install the client with pip install qdrant-client, connect with QdrantClient(url=’http://localhost:6333′), and create a collection named test_collection with vectors of size 4 and DOT distance, or size 384 with COSINE distance to match the bge-small-en-v1.5 embedding model. Collection settings are fixed at creation, so pick size and distance once.
Worked example: a four-dimension test collection
The table below is a synthetic example. The docker command, ports, and collection settings come from the Qdrant quickstart and guide; the collection name is their documented example.
| Step | Value | Expected result |
|---|---|---|
| Ports | 6333 REST, 6334 gRPC | Server answers |
| Storage | ./qdrant_storage | Data survives restarts |
| Collection | test_collection, size 4, DOT | Created |
Expected result (UNTESTED). the dashboard loads, the client connects, and the collection is created with the chosen size and distance. This check was not run live; the commands come from the cited Qdrant docs.
Limits
- Collection size and distance are fixed at creation; changing them means recreating the collection.
- A local Qdrant with no API key is open to anyone who can reach port 6333.
- The vector size must match the embedding model output exactly.
- Qdrant stores vectors; it does not create embeddings itself.
