← All projects
Project record1 mention
Originally shared on Hacker News

DuoRAG

This tool is a retrieval-augmented generation system that maintains both a vector store and a SQL database. Usual RAG operations are served by the vector store, while queries requiring counting, summation, or selection are routed to the SQL database. It can start with an initial schema or discover the schema itself, and when a user query cannot be answered, a candidate schema entry is created and populated during a nightly backfill run so the question can be answered later.

Last shared
01 / The problem

What it addresses

Existing RAG solutions cannot answer schematic questions such as "how many X are there".

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. DuoRAG

    This tool is a retrieval-augmented generation system that maintains both a vector store and a SQL database. Usual RAG operations are served by the vector store, while queries requiring counting, summation, or selection are routed to the SQL database. It can start with an initial schema or discover the schema itself, and when a user query cannot be answered, a candidate schema entry is created and populated during a nightly backfill run so the question can be answered later.

    Problem: Existing RAG solutions cannot answer schematic questions such as "how many X are there".

    Posted by @cagz · Original source ↗

    Source text · @cagz · · Source ↗

    Getting frustrated by not having RAG solutions able to answer schematic questions such as "how many X are there", I've created DuoRAG: https://github.com/cagriy/duo-rag