Back to browse
GitHub Repository
5 starsPython

DuoRAG – A dual stack RAG that self-evolves

by cagz·Mar 27, 2026·3 points·0 comments

AI Analysis

●●SolidBig BrainSolve My Problem

Self-evolving schema fixes RAG's aggregation problem without predicting queries upfront.

Strengths
  • Dual-store routing lets LLM choose vector or SQL backend based on question type.
  • Schema evolution detects missing fields mid-session and backfills without re-ingestion.
  • Blocks incomplete semantic answers for aggregate questions instead of silent failures.
Weaknesses
  • Requires OpenAI API — no local model support for the routing LLM.
  • RAG improvement tools already exist from well-funded competitors.
Category
Target Audience

Developers building RAG applications needing aggregation and filtering capabilities

Similar To

LlamaIndex · LangChain · Vectara

Post Description

Imagine a corpus of documents with scientist biographies.

The traditional RAG works fine until you ask questions like: - "Who was born before 1800?" - "How many are mathematicians?" - "List names and birthdays for mathematicians"

These result in an incomplete answer due to top-k, with no signs of incompleteness.

For an initial corpus, it is possible to improve this problem by extracting metadata for a predetermined set of fields. This approach has two problems:

- One has to predict all the questions that can be asked against the corpus upfront. - Constantly revising that prediction as the documents change, e.g. adding Nobel prizes later, or extending the document set to contain artists.

DuoRAG aims to solve both problems by:

- An initial metadata (schema) discovery before the first ingestion - Self-update schema with candidate fields when it fails to answer a question

Similar Projects

Security●●Solid

RAG knowledge base poisoning lab, 100% local

Embedding anomaly detection cuts attack success from 95% to 20%.

Dark HorseBig Brain
aminerj
155483mo ago
AI/MLMid

RAG built for Frappe using TurboVec

RAG for Frappe when LangChain and LlamaIndex already support custom integrations.

Ship It
nathaah3
204d ago