Wiki (navigate-not-cite)
The wiki is a distilled, [[cross-linked]] map of your corpus that you navigate
to find evidence. It is the strongest expression of navigate-not-cite: a wiki
page is never itself a citation — matching a page resolves down to the real
Evidence Units it points at, and only those are cited.
Enable it
Section titled “Enable it”Declare the wiki signal. Pages are integrated per-document as you ingest
(Karpathy-style incremental upsert) and fully rebuilt on a slow-path refresh.
rag = CiteNexus("./citenexus-data", embedder=..., generator=..., signals=["embedding", "text", "wiki"])rag.ingest("handbook.pdf")response = rag.ask("What's our policy on remote work?")How it works
Section titled “How it works”- Distillation. With an injected wiki distiller (
from_config,config.wiki_distill),LLMWikiDistillerproduces cross-referenced pages — per-document summaries plus cross-document concept pages — each with[[links]]and sanitizedeu_refsback to source units. Without a distiller, pages are deterministic truncation-summaries + keyword lists. - Retrieval.
WikiRetrievermatches a light page index and follows one[[link]]hop (at reduced score), then resolves matched pages down to their citable Evidence Units (retrieval signalwiki). - Maintenance. A
lint()pass reportsdangling_link,orphan_page, andmissing_euissues so the map stays honest as the corpus changes.
Import from citenexus.wiki (WikiStore, WikiRetriever, LLMWikiDistiller).