QMD: Query Markup Documents

2026-05-14 · source · source ↗ · raw capture · wiki page

Mini CLI search engine for your docs, knowledge bases, meeting notes, whatever. All local, tracking current SOTA approaches.

Core Features

Architecture

  1. Query Expansion: LLM generates variations for broader matching
  2. Parallel Retrieval: Each variant searches both BM25 and vector indexes simultaneously
  3. Ranking Fusion: Reciprocal Rank Fusion (RRF) with position-aware blending
  4. LLM Re-ranking: Cross-encoder model scores final candidates with confidence metrics

Smart chunking preserves semantic units -- headings, code blocks, and sections stay together.

Technical Requirements

Key Features

Quick Start

npm install -g @tobilu/qmd
qmd collection add ~/notes --name notes
qmd embed
qmd query "search term"