Sirchmunk's core algorithm is called LENS, short for Latent Evidence Navigation and Search. Its algorithmic architecture can be summarized as five actions: receive the question and the raw documents at the current moment; use keywords, path structure, summaries, and historical experience to form low-cost priors; repeatedly propose candidates, read the original text, and update judgments within budget; merge evidence to generate an answer with sources; and save successful experience as reusable knowledge to feed back into future queries.
The so-called "latent evidence space" refers to the search space formed by all contiguous segments in a document that could potentially serve as evidence. LENS treats any contiguous segment (d,s,e) in a document as a potential evidence window, without fixing the segmentation method in advance; the system decides at query time which segment to read and how far to extend the boundaries outward. The example the source gives is a 500-page maintenance manual, where the user asks "why does fault code E217 trigger during low-temperature startup"; the answer may be scattered across three places—the fault code description, the low-temperature limit, and the startup procedure—and pre-cut fixed chunks may not exactly cover them.
For each factual requirement, LENS pursues a "minimally sufficient" evidence window: the goal is not the shortest, but as compact as possible without losing context, to reduce noise and make it easy to return to the original text for verification. Retrieval is also constrained by cost, including the cost of searching and reading files, the cost of model judgment and tool loops, and the cost of context tokens, with B being the total budget for this query. The problem thus transforms into: within budget, locate sufficiently reliable evidence for each necessary fact.
Structurally, LENS has two layers. The first layer uses multiple low-cost signals such as keyword hits, directory structure, document summaries, hierarchical indexes, or historical evidence to build a possibility map; the second layer follows a Propose→Observe→Update loop, adjusting the next action based on newly read evidence. The source emphasizes that tree indexes, summary indexes, and directory listings are only optional accelerators; when missing or outdated, search can still fall back to the raw files.
The stopping condition looks at both evidence and budget: it stops when the evidence reaches the sufficiency level required by the question type; when the budget is exhausted, it must also stop and preserve uncertainty, rather than forcing out a seemingly complete answer. The threshold differs by question: explicit fact lookup can be relatively loose, while date comparison, numerical calculation, and multi-hop questions are stricter.