code wiki / (root) / nx_diora_index_demo.nx

nx_diora_index_demo.nx

buildroot/runtime/nx_diora_index_demo.nx

3466 B82 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind sketch/demotopic diora
docsdependenciesstructsconstsfunctions

about

nx_diora_index_demo.nx -- proof that retrieval runs on Nishi's OWN sovereign inverted index, not a borrowed one. module: nishi-core.search.bench.diora_index_demo depends: fx.nx, nx_search_inverted.nx (FNV-1a postings index), nx_diora_data.nx capability: APP_RUNNABLE Builds the verified Diora corpus into nx_search_inverted (the sovereign FNV-1a token-postings index, Salton-1971 lineage, zero external libs) via the two-pass build, then RETRIEVES by term. The postings counts prove the index ingested our corpus and answers term queries -- the index, tokenizer, hashing and postings are all ours, bits-up. (Open scope: the corpus TEXT is research-grounded, not yet filled by our own crawler over the bits-up DNS/TLS/HTTP stack -- that crawl is the next milestone.)

dependencies 4 imports · 0 importers

fx.nx nx_str.nx nx_search_inverted.nx nx_diora_data.nx nx_diora_index_demo.nx

imports: fx.nxnx_str.nxnx_search_inverted.nxnx_diora_data.nx

imported by: nobody (leaf or entry point)

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

main nx_diora_qn nx_diora_fill_qrels nx_inv_new nx_inv_index_row nx_inv_is_token_char nx_inv_hash_bytes_lower nx_inv_add_posting nx_inv_count_token nx_inv_slot_at nx_inv_slot_hash nx_inv_slot_set_hash nx_inv_slot_set_postings_c nx_inv_slot_postings_count nx_str_len nx_inv_finalize_offsets nx_inv_slot_at ↻ nx_inv_slot_hash ↻ nx_inv_slot_postings_count ↻ nx_inv_slot_set_postings_o nx_inv_slot_set_write_curs nx_inv_emit_row nx_inv_is_token_char ↻ nx_inv_hash_bytes_lower ↻ nx_inv_emit_posting nx_inv_slot_at ↻ nx_inv_slot_hash ↻ nx_inv_slot_postings_count ↻ nx_inv_slot_postings_offse nx_inv_slot_write_cursor nx_inv_slot_set_write_curs ↻ nx_puts nx_str_len ↻ nx_put_i64 nx_putc nx_putc ↻ nx_idx_report nx_puts ↻ nx_str_len ↻ nx_putc ↻

structs

none

consts

none

functions

21func nx_putc(c: i64) -> i64 { let b: *u8 = sys_mmap(1); b[0] = c; sys_write(1, b, 1); return 0 }
22func nx_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 2: nx_idx_reportmain calls 1: nx_str_len
23func nx_put_i64(n: i64) -> i64
called by 2: nx_idx_reportmain calls 1: nx_putc
34func nx_idx_term_count(idx: *NxInvIndex, term: *u8) -> i64
41func nx_idx_report(idx: *NxInvIndex, term: *u8) -> i64
50func main() -> i64