The query tool is the primary search interface for QMD’s MCP server. It accepts a query document — an array of typed sub-queries that are executed in parallel and combined using Reciprocal Rank Fusion (RRF).
Find documents by meaning, not exact keywords. Requires embeddings (run qmd embed).Format: Natural language questionExamples:
{ "type": "vec", "query": "how does the rate limiter handle burst traffic?" }{ "type": "vec", "query": "what is the tradeoff between consistency and availability?" }
Write a 50-100 word passage that looks like the ideal answer. Often the most powerful for nuanced topics.Examples:
{ "type": "hyde", "query": "The rate limiter uses a token bucket algorithm. When a client exceeds 100 req/min, subsequent requests return 429 until the window resets."}
{ "searches": [ { "type": "lex", "query": "\"connection pool\" timeout -redis" }, { "type": "vec", "query": "why do database connections time out under load" }, { "type": "hyde", "query": "Connection pool exhaustion occurs when all connections are in use and new requests must wait. This typically happens under high concurrency when queries run longer than expected." } ], "limit": 5, "minScore": 0.5}