SAG Uses SQL JOINs for Multi-Hop RAG Retrieval, Ditching PageRank Decay
Zleap-AI has released SAG (Structured Agentic Graph), an open-source multi-hop retrieval-augmented generation framework that replaces traditional PageRank-based graph traversal with SQL JOIN operations. Unlike GraphRAG and HippoRAG, SAG does not require expensive offline global graph construction, instead building event-entity relationships at query time using relational database foreign keys. Each document chunk is converted into one semantic event linked to multiple named entities, enabling deterministic and traceable multi-hop reasoning without score decay over long chains. The system is built on a TypeScript, PostgreSQL, and pgvector stack, and includes a built-in MCP server so each project can be exposed as an agent-callable tool. SAG has garnered over 1,900 GitHub stars since its release and is backed by an arXiv paper (2606.15971) under an MIT license.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in