DendriteRAG expands a literature collection from a seed paper by recursively following its references to a configurable depth. It resolves citations, collects available papers and builds a personalized retrieval index. Original PDFs, the metadata database and the vector index stay on the user's machine, and language-model inference runs locally.
Architecturally it is split into independent local components that talk over HTTP. A Main API acts as the orchestrator (FastAPI plus SQLite): it serves the web UI, handles user requests, manages the crawl-and-parse queue, and coordinates calls to the model and the vector service. A separate RAG API is a focused vector-store server (FastAPI plus ChromaDB with sentence-transformer embeddings) that does only two things — accept text chunks and answer similarity queries — which keeps it independently reusable. A local LLM host does the language work, and a plain JavaScript and Tailwind web UI provides seed entry, queue management, and chat over the knowledge base.
The interesting engine is reference resolution. Rather than relying on structured citation metadata that PDFs rarely expose cleanly, the parser feeds overlapping text chunks to the local model with a strict extraction prompt, pulling bibliographic references out of messy free text into structured records. Because chunk overlap produces many partial and duplicate entries, it runs a deduplication pass — an LLM-based cleaner that merges variants of the same reference, with a simpler programmatic fallback. Resolved references are then looked up through a Semantic Scholar client that returns titles, authors, DOIs, abstracts, years, and open-access PDF links, and matched open-access PDFs are downloaded for ingestion. Each layer is separated into its own service module, so the parsing, scholarly-lookup, vector, and database concerns stay independently testable.
This is an early local prototype. It requires a running local model host and a downloaded model, and migration setup remains unfinished. Embeddings use a compact general-purpose sentence-transformer model. The current scope is single-user literature retrieval; long-running and multi-user operation have not been established.