Qdrant: create a collection and perform a vector search

domain: qdrant.tech/documentation · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Run a Qdrant instance locally with Docker (docker run -p 6333:6333 qdrant/qdrant) or connect to a Qdrant Cloud cluster.
  2. Instantiate the Python client: from qdrant_client import QdrantClient; client = QdrantClient(url='http://localhost:6333').
  3. Create a collection specifying the vector size and distance metric: client.create_collection(collection_name='NAME', vectors_config=VectorParams(size=DIM, distance=Distance.COSINE)).
  4. Insert points with client.upsert(collection_name='NAME', points=[PointStruct(id=1, vector=[...], payload={'key': 'value'})]) where payload holds optional metadata.
  5. Search for nearest neighbors: results = client.search(collection_name='NAME', query_vector=QUERY_VEC, limit=10) to get the top results.
  6. Apply payload filters in the search call using the Filter and FieldCondition objects to restrict results to matching metadata.

Known gotchas

Related routes

Create a MongoDB Atlas Vector Search index and run a $vectorSearch aggregation
mongodb.com · 5 steps · unrated
Select and configure Qdrant quantization (scalar, binary, or product) for a collection and enable rescoring
qdrant.tech/documentation · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans