code wiki / (root) / nx_rank_fused.nx

nx_rank_fused.nx

buildroot/runtime/nx_rank_fused.nx

2779 B75 linesdepth 5pulls 9 transitivereach 5 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_rank_fused.nx -- the additive, SEO-resistant ranker (tier + BM25 via RRF). module: nishi-core.search.rank_fused depends: fx.nx, nx_source_tier.nx, nx_bm25.nx, nx_rrf.nx capability: CORE_COMPUTE wired_status: FULLY_WIRED The capstone of the ranking layer: fuse the source-tier PRIOR rank with the BM25 CONTENT rank via Reciprocal Rank Fusion. Because RRF rewards items that rank well in BOTH signals, a high-tier page with no relevant content cannot win on authority alone, and a UNIQUE low-tier page with strong content rises -- the operator cardinal (deliver information, additive, no prejudging) made operational. Novelty (nx_simhash) and provenance join as further RRF inputs once the crawler supplies page content. Deterministic Q16.16 throughout.

dependencies 5 imports · 5 importers

fx.nx syscalls.nx nx_source_tier.nx nx_bm25.nx nx_rrf.nx nx_rank_fused.nx nx_crawl_main.nx nx_diora_live_serp.nx nx_rank_fused_test.nx nx_search_crawl_server.nx nx_search_server.nx

imports: fx.nxsyscalls.nxnx_source_tier.nxnx_bm25.nxnx_rrf.nx

imported by: nx_crawl_main.nxnx_diora_live_serp.nxnx_rank_fused_test.nxnx_search_crawl_server.nxnx_search_server.nx

structs

none

consts

none

functions

23func nx_rank_order_desc(scores: *i64, n: i64, order_out: *i64) -> i64
called by 2: mainnx_rank_fused
49func nx_rank_fused(urls: **u8, titles: **u8, texts: **u8, text_lens: *i64, n: i64,