qmd
Use qmd to index local files and search them.
Indexing
- - Add collection: INLINECODE1
- Update index: INLINECODE2
- Status: INLINECODE3
Search
- - BM25: INLINECODE4
- Vector: INLINECODE5
- Hybrid: INLINECODE6
- Get doc: INLINECODE7
Notes
- - Embeddings/rerank use Ollama at
OLLAMA_URL (default http://localhost:11434). - Index lives under
~/.cache/qmd by default. - MCP mode:
qmd mcp.
qmd
使用 qmd 索引本地文件并进行搜索。
索引
- - 添加集合:qmd collection add /path --name docs --mask /*.md
- 更新索引:qmd update
- 查看状态:qmd status
搜索
- - BM25:qmd search 查询内容
- 向量搜索:qmd vsearch 查询内容
- 混合搜索:qmd query 查询内容
- 获取文档:qmd get docs/path.md:10 -l 40
注意事项
- - 嵌入/重排序使用 OLLAMA_URL(默认 http://localhost:11434)上的 Ollama。
- 索引默认存储在 ~/.cache/qmd 目录下。
- MCP 模式:qmd mcp。