nx_research_digest.nx
buildroot/runtime/nx_research_digest.nx
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
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
| 23 | func _rd_order_desc(scores: *i64, n: i64, order_out: *i64) -> i64 |
| 46 | func nx_research_digest( called by 1: main calls 7: sys_mmapnx_bm25_score_rd_order_descnx_inv_hash_bytes_lowernx_bm25_tfnx_corrob_assert+1 |