RepositoryTypeScriptCACanada
tobi

tobi/qmd

mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local

31.7ksao
2.0kfork
142issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Quốc gia: CA

#1 Repository Của Tháng

1
TINIX TRENDING·Quốc gia: CA

#1 Repository Của Tuần

2
TINIX TRENDING·Quốc gia: CA

#2 Repository Của Ngày

🔍 Local hybrid search engine for your personal knowledge base

Search markdown notes, docs, and transcripts locally with BM25, vector, and LLM reranking.

QMD is an on-device CLI search engine built for developers and knowledge workers who want fast, private search over their own documents. It indexes markdown notes, meeting transcripts, documentation, and more, then lets you search with keywords, natural language, or hybrid queries. By combining BM25 full-text search, vector semantic search, and LLM reranking—all running locally via node-llama-cpp with GGUF models—it delivers high-quality results without sending data to the cloud. It's especially useful for agentic workflows, offering structured JSON output and an MCP server for integration with tools like Claude.

✨ Highlights

  • Hybrid search pipeline: Combines BM25, vector search, and LLM reranking in a single local engine.
  • Query expansion routing: Typed subqueries (lex, vec, hyde) route exclusively to BM25 or vector search.
  • Reciprocal Rank Fusion (RRF): Fuses results from multiple backends before reranking.
  • LLM reranking: Uses GGUF models via node-llama-cpp to refine final result ordering.
  • Collection management: Organize notes, docs, and transcripts into named searchable collections.
  • Tree-based context: Attach context labels to collections for richer LLM decision-making.
  • Agent-friendly output: Supports --json, --files, and --all flags for programmatic use.
  • MCP server support: Exposes query, get, multi_get, and status tools over stdio or HTTP.

💡 Why it matters

QMD avoids the complexity and privacy concerns of cloud-based search by running everything locally. Unlike generic search tools, it's optimized for personal knowledge bases, using tree-structured context and typed subqueries to improve retrieval accuracy. Its MCP server makes it easy to plug into AI agent workflows, while the HTTP transport keeps models loaded in VRAM for fast repeated queries.

Best suited for developers, researchers, and anyone who wants powerful, private search over their own documents without relying on external services.


#SearchEngine #LocalAI #KnowledgeBase #TiniX