qmd/src
Tobi Lutke a0bceef36a
Add conditional query expansion based on BM25 signal strength
Skip expensive LLM query expansion when initial BM25 search has
strong signals (top result score > 0.7). This saves LLM calls and
latency for queries that already match well.

- Run initial BM25 search first
- Check if top result has strong score
- Skip expansion if signal is strong
- Reuse initial search results for retrieval

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 13:05:35 -04:00
..
cli.test.ts Add path normalization, output format tests, and fix test isolation 2025-12-20 14:45:18 -04:00
collections.ts Add QMD_CONFIG_DIR environment variable for test isolation 2025-12-13 11:19:03 -05:00
formatter.ts Add docid, line-numbers, handelize, and fix displayPath format 2025-12-16 13:26:39 -04:00
llm.test.ts Migrate to node-llama-cpp and add structured query expansion 2025-12-20 18:03:41 -04:00
llm.ts Add lazy model loading with 2-minute inactivity auto-unload 2025-12-20 18:12:19 -04:00
mcp.test.ts Migrate to node-llama-cpp and add structured query expansion 2025-12-20 18:03:41 -04:00
mcp.ts Add docid, line-numbers, handelize, and fix displayPath format 2025-12-16 13:26:39 -04:00
qmd.ts Add conditional query expansion based on BM25 signal strength 2025-12-21 13:05:35 -04:00
store.test.ts Migrate to node-llama-cpp and add structured query expansion 2025-12-20 18:03:41 -04:00
store.ts Migrate to node-llama-cpp and add structured query expansion 2025-12-20 18:03:41 -04:00