mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
Adds entity matching as a third RRF arm alongside dense + sparse, plus per-result signal provenance (#2317). What this lands: - `entity-tagger.ts` — regex extractor for emails, URLs, file paths, quoted phrases, proper-noun 2-grams (12 unit tests) - `hybridSearch` controller — entity arm wired into the existing RRF+MMR fusion at `controller-registry.ts` - `signals: ('vector' | 'bm25' | 'entity')[]` on every fused result End-to-end capability smoke against built dist (not just TS source): - Corpus: 30 generic "authentication" entries + 1 "Alice Smith" needle - Query: `"Alice Smith authentication"` - Result: **Alice ranks #1** with `signals=["vector","bm25","entity"]`; runners-up only have `["vector","bm25"]` - RRF score gap: 0.0477 vs 0.0323 = **47% boost** from the entity signal 16/16 tests in touched modules. Full memory suite 416/420 (4 pre-existing Windows-env failures in unrelated files). Closes part of #2317. The ADR's stated P1 ("wire FTS5 + RRF") was already shipped before this PR; this lands the actual P2 (entity arm + provenance) that the dream-cycle author missed when surveying the tree.