Get similar-item recommendations from Qdrant using the recommend query type with positive/negative examples
domain: qdrant.tech · 8 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗
Documented steps
Auth: api-key header if API-key auth is enabled (always required on Qdrant Cloud).
Use the Query API with a nested recommend query: POST /collections/{collection_name}/points/query with {"query": {"recommend": {"positive": [100, 231], "negative": [718, [0.2,0.3,0.4,0.5]]}}, "limit": 3} — mixing point IDs and raw vectors is allowed
Avoid the older POST /points/recommend endpoint for new code — deprecated in favor of the /points/query recommend query type
Add a filter alongside the recommend query to restrict candidates, e.g. {"key": "city", "match": {"value": "London"}}
Choose a strategy: average_vector (default; avg(positive) + (avg(positive) - avg(negative)); requires ≥1 positive) or best_score (v1.6.0+; scores against each example individually, works with only negatives, more diverse results)
For multi-vector collections set "using": "<vector_name>" so recommendation runs on the intended vector space
Give your agent this knowledge — and 17,800+ more routes
One MCP install gives any agent live access to the full route map across 6,000+ 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?