Structure-first reading
Parses headings, tables, and sections so the engine understands a document's shape — not just a blob of text.
Documents, understood.
The structure-first knowledge engine. DOCNEST reads a document by its structure — not by re-stuffing it into a prompt — and answers from what it already understands. Often with zero tokens, always on your machine.
In testing, DOCNEST returned zero-token answers on 80% of factual queries at 100% accuracy — roughly 92% fewer tokens than re-prompting the document each time.
Index a document once into a portable .udf, then ask freely.
Factual lookups are resolved from structure — no model call, no token bill.
$ pip install docnest-ai
>>> from docnest.reader import UDFIndex
>>> idx = UDFIndex.load("report.udf")
>>> r = idx.query("What was Q3 revenue?")
>>> r.answer # "Q3 revenue was $38M, up 22% YoY."
>>> r.tokens_used 0 # answered from structure, no LLM
Parses headings, tables, and sections so the engine understands a document's shape — not just a blob of text.
Factual lookups resolve from structure with no model call — fast, deterministic, and free to ask again.
.udf outputIndexing produces an open, single-file knowledge container you own and can move anywhere.
Exposes your knowledge over the Model Context Protocol, so MCP-aware assistants can query it directly.
Runs entirely on your hardware. Documents never leave your machine unless you choose to send them.
A small, readable API — load, query, inspect — that drops into scripts, notebooks, and apps.
Open source, MIT-licensed, and yours to run. Start in a notebook in minutes.