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

Claude Toolbox extension adds message-level bookmarks and full-text search
Tools

Claude Toolbox extension adds message-level bookmarks and full-text search

Claude Toolbox is a Chrome extension that lets you bookmark individual messages, full-text search across conversations, and export as TXT or JSON. Free tier covers 2 conversations; paid at $5/month or $49 lifetime.

OpenClawRadar
Why a Single run() Tool with Unix Commands Beats Function Calling for AI Agents
Tools

Why a Single run() Tool with Unix Commands Beats Function Calling for AI Agents

A backend lead with two years of agent-building experience argues that a single run(command="...") tool with Unix-style CLI commands outperforms traditional function calling catalogs. The approach leverages LLMs' existing familiarity with shell commands from training data.

OpenClawRadar
OpenClaw Local Agent Implementation with TurboQuant Caching for Mid-Range Hardware
Tools

OpenClaw Local Agent Implementation with TurboQuant Caching for Mid-Range Hardware

A one-click app for OpenClaw with local models now runs on mid-range devices like MacBook Air with 16GB RAM using TurboQuant caching and context warming. The implementation patches llama.cpp for reliable tool calling and achieves 10-15 tokens per second with Gemma 4 and QWEN 3.5.

OpenClawRadar
Open-source Claude plugin generates interactive visual tuners with live preview
Tools

Open-source Claude plugin generates interactive visual tuners with live preview

A developer built an open-source plugin that lets Claude Code generate single HTML pages with sliders and Figma-style infinite canvases for fine-tuning CSS values. The plugin reads source files, reproduces elements on an interactive canvas, and provides controls for precise adjustments with live preview.

OpenClawRadar