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

GPT-5.5 Codex vs Claude Opus 4.7: Real-world coding agent benchmarks
Tools

GPT-5.5 Codex vs Claude Opus 4.7: Real-world coding agent benchmarks

A developer pitted GPT-5.5 Codex against Claude Opus 4.7 on two real tasks: a PR triage bot and a real-time code review UI. Claude shipped cleaner with zero errors; Codex was 18% cheaper but needed a patch pass.

OpenClawRadar
Argus: A GitHub App That Reviews CLAUDE.md Files and Posts Scores on PRs
Tools

Argus: A GitHub App That Reviews CLAUDE.md Files and Posts Scores on PRs

Argus is a GitHub App built with Claude Code that reviews CLAUDE.md files and posts a score on every pull request. After testing on multiple repositories, the most common failures are missing explicit scope limits and escalation paths.

OpenClawRadar
Portable Mind Format (PMF): Provider-Agnostic Agent Specification with 15 Open-Source Agents
Tools

Portable Mind Format (PMF): Provider-Agnostic Agent Specification with 15 Open-Source Agents

The Portable Mind Format (PMF) is a JSON-based specification for defining AI agent identities that can run across multiple models and providers, including Claude, GPT-4, Gemini, DeepSeek, and local models via Ollama. It includes 15 MIT-licensed production agents and converters for Claude Code, Cursor, GitHub Copilot, and Gemini CLI.

OpenClawRadar
The Human Creativity Benchmark: Separating Convergence from Divergence in AI Creative Evaluation
Tools

The Human Creativity Benchmark: Separating Convergence from Divergence in AI Creative Evaluation

Contra Labs introduces the Human Creativity Benchmark (HCB), a framework that distinguishes objectively verifiable criteria (e.g., prompt adherence) from subjective taste (e.g., visual appeal) in evaluating generative AI for creative work. The benchmark reveals that no current model is reliably both correct and steerable, addressing mode collapse and the need for differentiated output.

OpenClawRadar