mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
f0e6b7aa37
SQLite FTS5 bm25() returns negative values where numerically smaller (more negative) indicates a better match. The official docs state: "The better the match, the numerically smaller the value returned." Two comments incorrectly stated "closer to 0 = better match" and "lower = better match". Updated all rank descriptions to use the unambiguous "more negative = higher relevance" phrasing. This matters because these comments are used as tool prompt hints for LLM agents, and incorrect semantics could lead to wrong ranking decisions.