IdeaCredIdeaCred

patelpattu90-ai/hybrid-rag-knowledge-engine

60

Production-style Hybrid RAG system with semantic + keyword retrieval, re-ranking, and evaluation framework.

What's novel

Production-style Hybrid RAG system with semantic + keyword retrieval, re-ranking, and evaluation framework.

Code Analysis

22 files read · 5 rounds

A Gradio-based RAG chatbot that retrieves answers from FastAPI documentation using hybrid search (FAISS + BM25), cross-encoder reranking, and LLM generation via Groq, with multiple defensive layers (guardrails, PII scrubbing, caching, query rewriting, tool routing, quality scoring, and compression).

Strengths

Well-structured pipeline with thoughtful defensive layers (two-tier PII scrubbing, 3-layer guardrails, safe fallbacks everywhere), clean dataclass-based result containers, and good separation of concerns across modules. The compressor and doc quality scorer show genuine engineering thought with proper fallback logic.

Weaknesses

The README claims 'RRF fusion' but the code uses a simple weighted average; main.py imports a non-existent function (ingest_urls); ingestion has massive URL duplication; the system makes 10+ LLM calls per query contradicting the 'under 3 seconds' claim; tests only cover regex-based layers with no integration or pipeline tests; the evaluator uses naive substring matching for relevance.

Score Breakdown

Innovation
4 (25%)
Craft
57 (35%)
Traction
6 (15%)
Scope
61 (25%)

Signal breakdown

Innovation

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

Craft

Ci+0
Tests+5
Polish+0
Releases+0
Has License+0
Code Quality+20
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+0
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+7
Languages+3
Subsystems+10
Bloat Penalty+0
Completeness+6
Contributors+5
Authored Files+12
Readme Code Match+3
Architecture Depth+3
Implementation Depth+8

Evidence

Commits

25

Contributors

1

Files

41

Active weeks

2

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License