code wiki / (root) / nx_rrf_test.nx

nx_rrf_test.nx

buildroot/runtime/nx_rrf_test.nx

1304 B37 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_rrf_test.nx -- KAT for Reciprocal Rank Fusion. Native sovereign lane; exit 0 = pass, N = assertion N failed. 3 items, 2 rankers: A=[0,1], B=[1,2]. item1 ranks in BOTH (rank2 in A + rank1 in B) -> highest fused; item0 only in A (rank1); item2 only in B (rank2). So fused: item1 > item0 > item2, and argmax == item1.

dependencies 2 imports · 0 importers

fx.nx nx_rrf.nx nx_rrf_test.nx

imports: fx.nxnx_rrf.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_rrf_add fx_from_frac fx_from_frac ↻ nx_rrf_argmax

structs

none

consts

none

functions

11func main() -> i64