| name | searching-markdown |
| description | Local semantic search for markdown documents using qmd. Combines BM25 full-text, vector semantic, and LLM re-ranking—all on-device. Use when searching notes, documentation, meeting transcripts, or knowledge bases. Triggers on: search markdown, find in notes, query documents, semantic search, search my docs. |
qmd: Local Markdown Search
On-device semantic search for markdown. Combines BM25 full-text search, vector embeddings, and LLM re-ranking locally via GGUF models.
**First-time setup?** Read `references/installation.md` for install and configuration steps.
Quick start
qmd search "keyword query"
qmd vsearch "conceptual query"
qmd query "complex question"
qmd get notes/file.md
Search commands
qmd search "<query>"
qmd vsearch "<query>"
qmd query "<query>"
Search options
-n <num>
-c, --collection
--all
--min-score <num>
--full
--line-numbers
Output formats
--files
--json
--csv
--md
--xml
Document retrieval
qmd get <filepath>
qmd get "#<docid>"
qmd get <path>:<line> -l <count>
qmd multi-get "pattern/*.md"
qmd multi-get "doc1.md, doc2.md"
qmd multi-get "*.md" --max-bytes 20480
Collection management
qmd collection add <path> --name <name>
qmd collection add <path> --mask "*.md"
qmd collection list
qmd collection remove <name>
qmd collection rename <old> <new>
qmd ls <collection>[/<subfolder>]
Context & embeddings
qmd context add <path> "<description>"
qmd context list
qmd context rm <path>
qmd embed
qmd embed -f
Maintenance
qmd status
qmd update
qmd update --pull
qmd cleanup
Score interpretation
| Score | Relevance |
|---|
| 0.8–1.0 | Highly relevant |
| 0.5–0.8 | Moderately relevant |
| 0.2–0.5 | Somewhat relevant |
| 0.0–0.2 | Low relevance |
Example: Setup and search workflow
qmd collection add ~/notes --name notes
qmd context add qmd://notes "Personal notes and ideas"
qmd embed
qmd query "how does authentication work" -n 10 --min-score 0.3
qmd get notes/auth-design.md
Example: Agent-friendly JSON output
qmd search --json "configuration" -n 10
qmd query --json "API design patterns" --min-score 0.5