nx_recall_fuse.nx
buildroot/runtime/nx_recall_fuse.nx
about
nx_recall_fuse.nx -- hybrid rank fusion for the recall pipeline: RRF-combine the
BM25 ranking and the dense (PPMI-SVD / nx_cosine) ranking into ONE fused order.
module: nishi-core.search.recall_fuse
depends: fx.nx, nx_rrf.nx, syscalls.nx
capability: CORE_COMPUTE
wired_status: LIBRARY (daemon wiring into dss_search_off_div = R1b, claims-coordinated)
genealogy_id: cormack_clarke_buettcher_2009_rrf (two-signal hybrid fusion)
WHY (debt-eating, good form): the live SERP ranks by BM25 (+PageRank) ONLY -- the
dense-kNN / PPMI-SVD embeddings and nx_rrf are BUILT but UNWIRED into search. That
is our own debt. This organ wires them: given the BM25 rank-order and the dense
rank-order over a shortlist, it produces the RRF-fused order. It is built + gated
+ MEASURED on the nx_ir_eval ruler OFFLINE first (no crown-jewel docportal edit
until the serve path is claims-clear), so the lift is a number, not a promise.
dependencies 3 imports · 2 importers
imports: fx.nxnx_rrf.nxsyscalls.nx
imported by: nx_recall_bench.nxnx_recall_fuse_gate.nx
structs
| none |
consts
| none |
functions
| 26 | func rf_fuse(bm25_order: *i64, nb: i64, dense_order: *i64, nd: i64, ncand: i64, scores_out: *i64) -> i64 |
| 37 | func rf_order_by_score(scores: *i64, ncand: i64, out_order: *i64) -> i64 |