code wiki / _hdl_build / nx_ppmi_probe.nx
nx_ppmi_probe.nx
buildroot/runtime/_hdl_build/nx_ppmi_probe.nx
about
nx_ppmi_probe.nx -- HONEST VERDICT on the SHIPPED knowledge/index/semppmi_v1.bin.
Loads the persisted 41MB PPMI model (built by nx_semppmi_build) and prints the real
probe cosines: cos(won,defeated) vs cos(won,purple), cos(city,stadium) vs cos(city,january).
This is the evidence gate for wiring the dense/semantic reranker over the REAL model:
both order -> GREEN (count-model carries the signal; dense reranker is wire-ready)
not both -> AMBER (count-model weak at this pair; trained thread may be required)
Reuses the PROVEN loader/cos format from nx_qabench.nx (ppmi_load/ppmi_cos), sem_isqrt
re-defined locally (it lives in the app layer, not the engine).
expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_qabench_engine.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
| 11 | const K_MAGIC_4096: i64 = 4096 |
| 12 | const K_MAGIC_536870912: i64 = 536870912 |
| 13 | const K_MAGIC_262144: i64 = 262144 |
functions
| 16 | func pb_isqrt(v: i64) -> i64 called by 1: pb_cos |
| 25 | func pb_load(g: *i64) -> i64 |
| 78 | func pb_cos(g: *i64, a: i64, b: i64) -> i64 |
| 105 | func pb_wid(g: *i64, s: *u8) -> i64 |
| 113 | func pb_safecos(g: *i64, a: i64, b: i64) -> i64 |
| 119 | func main() -> i64 |