IdeaCredIdeaCred

darkzard05/rag-system-ollama

84

Advanced local-first RAG system powered by Ollama and LangGraph. Optimized for high-performance sLLM orchestration featuring adaptive intent routing, semantic chunking, intelligent hybrid search (FAISS + BM25), and real-time thought streaming. Includes integrated PDF analysis and secure vector caching.

What's novel

Advanced local-first RAG system powered by Ollama and LangGraph. Optimized for high-performance sLLM orchestration featuring adaptive intent routing, semantic chunking, intelligent hybrid search (FAISS + BM25), and real-time thought streaming. Includes integrated PDF analysis and secure vector caching.

Code Analysis

8 files read · 3 rounds

A local RAG chatbot that ingests PDFs, performs embedding-based semantic chunking with header awareness, builds a LangGraph self-correcting pipeline (hybrid BM25+FAISS retrieval, LLM grading, query rewriting, speculative generation), and serves cited answers via a Streamlit UI and FastAPI server, al

Strengths

Exceptionally thorough error handling with multi-layer PDF extraction fallbacks (PyMuPDF4LLM → C-Engine), JSON repair for broken LLM outputs, circuit breakers, retry with backoff, and phantom-state rollback on pipeline build failure. The semantic chunker is a genuine multi-stage algorithm (sentence splitting → embedding → buffer-based distance → breakpoint detection → header-aware grouping → size optimization → dedup), not a thin wrapper.

Weaknesses

The graph_builder.py file at 98KB is a monolith that concentrates too much logic (JSON repair, grading, speculative generation, node definitions) in one module, hurting maintainability. The codebase has significant Korean/English mixed comments and some circular-import workarounds (e.g., GRADE_MEMO_KEY duplicated as a literal string) that signal architectural friction.

Score Breakdown

Innovation
5 (25%)
Craft
81 (35%)
Traction
9 (15%)
Scope
86 (25%)

Signal breakdown

Innovation

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

Craft

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

Traction

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

Scope

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

Evidence

Commits

225

Contributors

1

Files

388

Active weeks

36

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

3

Forks

0

License

MIT