IdeaCredIdeaCred

dalgona039/TreeRAG

82

TreeRAG: Hierarchical RAG platform that indexes dense PDFs into logical trees for precise retrieval, 100% traceability, and LLM-guided deep traversal. Production-ready with enhanced security and streaming indexing.

What's novel

TreeRAG: Hierarchical RAG platform that indexes dense PDFs into logical trees for precise retrieval, 100% traceability, and LLM-guided deep traversal. Production-ready with enhanced security and streaming indexing.

Code Analysis

9 files read · 3 rounds

A hierarchical RAG system that indexes PDFs into tree-structured JSON, traverses relevant branches using DFS or beam search with LLM-based relevance scoring, and generates grounded answers with citations, hallucination detection, and contextual compression.

Strengths

Genuine algorithmic depth with beam search, TF-IDF scoring, similarity-based context compression, and multi-signal hallucination detection. Sophisticated error handling with retry logic, rate limiting, and adaptive threshold adjustment for over-filtering recovery.

Weaknesses

Heavy dependency on Gemini API for core traversal logic (LLM calls at every node evaluation), making it expensive and slow. The error recovery and adaptive policy modules couldn't be fully verified, and the system's performance characteristics under load are unclear.

Score Breakdown

Innovation
5 (25%)
Craft
72 (35%)
Traction
6 (15%)
Scope
91 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci+0
Tests+8
Polish+0
Releases+0
Has License+5
Code Quality+23
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+4
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+8
Languages+8
Subsystems+15
Bloat Penalty+0
Completeness+7
Contributors+5
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

88

Contributors

1

Files

184

Active weeks

7

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

2

Forks

0

License

MIT