ReasonDB: Open-Source Document Database Using LLM-Guided Tree Navigation Instead of Vector Search

✍️ OpenClawRadar📅 Published: February 27, 2026🔗 Source
ReasonDB: Open-Source Document Database Using LLM-Guided Tree Navigation Instead of Vector Search
Ad

What ReasonDB Does

ReasonDB is an open-source document database that takes a different approach to knowledge retrieval by preserving document structure as a hierarchy (headings → sections → paragraphs) and letting the LLM navigate that tree to find answers. This addresses the common issue where retrieval failures in vector DBs and RAG pipelines become debugging black boxes.

How It Works

Ingest process: Documents are converted to markdown, chunked by structure, built into a tree, and each node is summarized by an LLM (bottom-up).

Query process: BM25 narrows candidate nodes → tree-grep filters by structure → LLM ranks by summaries → beam-search traversal over the tree extracts the answer. The LLM visits approximately 25 nodes out of millions instead of searching a flat vector index.

Ad

Query Language and Stack

ReasonDB uses RQL, an SQL-like query language:

SELECT * FROM contracts SEARCH 'payment terms' REASON 'What are the late payment penalties?' LIMIT 5;

Where SEARCH = BM25 and REASON = LLM-guided tree traversal.

The stack is built in Rust using redb, tantivy, axum, and tokio. It's a single binary that works with OpenAI, Anthropic, Gemini, Cohere, and compatible APIs (including local or OpenAI-compatible endpoints).

Practical Applications

This approach is particularly useful for developers who have been struggling with RAG retrieval quality or want to try structure-based retrieval instead of pure vector search. The tool was built after 3 years of experience with knowledge retrieval at Brainfish, where vector DBs, graph DBs, and custom RAG pipelines consistently presented the same debugging challenges.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Building a Self-Improving Knowledge System with Claude Code and Obsidian
Tools

Building a Self-Improving Knowledge System with Claude Code and Obsidian

A developer built a 25-tool system that gives Claude Code persistent memory through semantic search, knowledge graphs, and spaced repetition over an Obsidian vault. The system indexes content with bge-m3 embeddings, detects contradictions, auto-prunes stale notes, and generates Obsidian Canvas maps automatically.

OpenClawRadar
mindpm: A Free MCP Server for Persistent Project Memory with Claude
Tools

mindpm: A Free MCP Server for Persistent Project Memory with Claude

mindpm is a free, open-source MCP server that provides Claude with a local SQLite database to track tasks, decisions, notes, and session summaries across conversations. Setup takes 30 seconds with the command: claude mcp add mindpm -e MINDPM_DB_PATH=~/.mindpm/memory.db -- npx -y mindpm.

OpenClawRadar
Clawdwatch: Open-source OSINT tool for real-time flight tracking, news scraping, and alerts
Tools

Clawdwatch: Open-source OSINT tool for real-time flight tracking, news scraping, and alerts

Clawdwatch is a CLI tool that pulls live flight data from OpenSky Network, scrapes news from Al Jazeera and AP, and can send Telegram alerts for military aircraft or emergency squawks. It runs locally with npm install and tracks 204+ flights over the Middle East in real-time.

OpenClawRadar
Fleet Commander: Open-source dashboard for orchestrating multiple Claude Code agent teams
Tools

Fleet Commander: Open-source dashboard for orchestrating multiple Claude Code agent teams

Fleet Commander is a local web dashboard that runs multiple Claude Code agent teams in parallel on different issues. It uses a 'Diamond team' structure with Planner, Dev, and Reviewer agents that communicate peer-to-peer via SendMessage.

OpenClawRadar