| name | qmd |
| description | Fast local search for markdown files, notes, and docs using qmd CLI. Use instead of `find` for file discovery. Combines BM25 full-text search, vector semantic search, and LLM reranking—all running locally. Use when searching for files, finding code, locating documentation, or discovering content in indexed collections. |
qmd — Fast Local Markdown Search
When to Use
- Finding files — use instead of
find across large directories (avoids hangs)
- Searching notes/docs — semantic or keyword search in indexed collections
- Code discovery — find implementations, configs, or patterns
- Context gathering — pull relevant snippets before answering questions
Quick Reference
Search (most common)
qmd search "alpaca API" -c projects
qmd vsearch "how to implement stop loss"
qmd query "trading rules for breakouts"
qmd search "config" --files -c kell
qmd search "pattern detection" --full --line-numbers
Collections
qmd collection list
qmd collection add /path/to/folder --name myproject --mask "*.md,*.py"
qmd update
Get Files
qmd get myproject/README.md
qmd get myproject/config.py:50 -l 30
qmd multi-get "*.yaml" -l 50 --max-bytes 10240
Output Formats
--files — paths + scores (for file discovery)
--json — structured with snippets
--md — markdown formatted
-n 10 — limit results
Tips
- Always use collections (
-c name) to scope searches
- Run
qmd update after adding new files
- Use
qmd embed to enable vector search (one-time, takes a few minutes)
- Prefer
qmd search --files over find for large directories
Models (auto-downloaded)
- Embedding: embeddinggemma-300M
- Reranking: qwen3-reranker-0.6b
- Generation: Qwen3-0.6B
All run locally — no API keys needed.