Loading...
Loading...
Search markdown knowledge bases, notes, and documentation using QMD. Use when users ask to search notes, find documents, or look up information.
npx skill4agent add pedronauck/skills qmdqmd status 2>/dev/null || echo "Not installed: npm install -g @tobilu/qmd"query{
"searches": [
{ "type": "lex", "query": "CAP theorem consistency" },
{ "type": "vec", "query": "tradeoff between consistency and availability" }
],
"collections": ["docs"],
"limit": 10
}| Type | Method | Input |
|---|---|---|
| BM25 | Keywords — exact terms, names, code |
| Vector | Question — natural language |
| Vector | Answer — hypothetical result (50-100 words) |
"connection pool"performance -sportshandleError async"how does the rate limiter handle burst traffic""in the payment service, how are refunds processed"expand: questionexpand:intent{
"searches": [
{ "type": "lex", "query": "performance" }
],
"intent": "web page load times and Core Web Vitals"
}| Goal | Approach |
|---|---|
| Know exact terms | |
| Don't know vocabulary | Use a single-line query (implicit |
| Best recall | |
| Complex topic | |
| Ambiguous query | Add |
| Syntax | Meaning | Example |
|---|---|---|
| Prefix match | |
| Exact phrase | |
| Exclude | |
-term{ "collections": ["docs"] } // Single
{ "collections": ["docs", "notes"] } // Multiple (OR)| Tool | Use |
|---|---|
| Retrieve doc by path or |
| Retrieve multiple by glob/list |
| Collections and health |
qmd query "question" # Auto-expand + rerank
qmd query $'lex: X\nvec: Y' # Structured
qmd query $'expand: question' # Explicit expand
qmd query --json --explain "q" # Show score traces (RRF + rerank blend)
qmd search "keywords" # BM25 only (no LLM)
qmd get "#abc123" # By docid
qmd multi-get "journals/2026-*.md" -l 40 # Batch pull snippets by glob
qmd multi-get notes/foo.md,notes/bar.md # Comma-separated list, preserves ordercurl -X POST http://localhost:8181/query \
-H "Content-Type: application/json" \
-d '{"searches": [{"type": "lex", "query": "test"}]}'npm install -g @tobilu/qmd
qmd collection add ~/notes --name notes
qmd embed