code wiki / (root) / nx_research_digest.nx

nx_research_digest.nx

buildroot/runtime/nx_research_digest.nx

2862 B70 linesdepth 4pulls 7 transitivereach 2 importersview sourcekind librarytopic research
docsdependenciesstructsconstsfunctions

about

nx_research_digest.nx -- end-to-end EXTRACTIVE research digest (sovereign, no LLM). Given a query + a set of sources (id, class, text) + candidate claim terms, it returns: - sources RANKED by BM25 relevance to the query (out_src_order) - each claim's CONFIDENCE by independent corroboration (out_claim_conf) - the corroboration ledger (caller reads citations via nx_corrob_cite) A source "asserts" a claim iff its text contains the claim term (nx_bm25_tf). Corroboration uses the independence rule (nx_research_corroborate): echoes of one source-class don't add confidence. This is the rigorous, cited digest the Nishi researcher can return TODAY -- the generative prose synthesis on top is the LLM-gated step (ai/accel lock). Composes nx_bm25 + nx_corroborate (DRY #15). The live FETCH that supplies the sources = nx_crawl_https (the delegated step), wired next. license_tier: ORIGINAL

dependencies 4 imports · 2 importers

nx_syscalls.nx nx_bm25.nx nx_search_inverted.nx nx_research_corroborate.nx nx_research_digest.nx nx_research_digest_gate.nx nx_research_web.nx

imports: nx_syscalls.nxnx_bm25.nxnx_search_inverted.nxnx_research_corroborate.nx

imported by: nx_research_digest_gate.nxnx_research_web.nx

structs

none

consts

none

functions

23func _rd_order_desc(scores: *i64, n: i64, order_out: *i64) -> i64
called by 1: nx_research_digest calls 1: sys_mmap
46func nx_research_digest(