code wiki / _hdl_build / nx_dr_densejudge_cli.nx
nx_dr_densejudge_cli.nx
buildroot/runtime/_hdl_build/nx_dr_densejudge_cli.nx
about
nx_dr_densejudge_cli.nx -- score insights under THREE representations in one call (DR-13):
lexical containment, sparse-PPMI late interaction, and TRAINED DENSE late interaction.
Holding the document, the insights and the code constant makes the representations directly
comparable -- which is the only way to test the ยง14 diagnosis (the ceiling is in the features).
nx_dr_densejudge <ppmi.bin> <embed.bin> <document> <insight_1> [insight_2 ...]
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_dr_densejudge.nxnx_itoa_lib.nxnx_ppmi_lib.nxnx_dr_run.nxnx_dr_verify.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const K_MAGIC_16384: i64 = 16384 |
| 13 | const K_MAGIC_2048: i64 = 2048 |
functions
| 15 | func dc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 16 | func dc_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 } |
| 17 | func dc_key(name: *u8) -> i64 { dc_q(); dc_puts(name); dc_q(); dc_puts(":" as *u8); return 0 } |
| 22 | func dc_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 24 | func main(argc: i64, argv: *i64) -> i64 |