h4gen/postgres-graph-rag
A Python Library to perform Graph RAG in your Postgres DB without headaches
This tool helps you ask complex questions about relationships in your data, like 'How is Person A connected to Project B through shared dependencies?'. It takes your existing text documents and turns them into a structured network of information within your PostgreSQL database. The output is a highly accurate answer, even when the information spans multiple pieces of text. It's designed for data analysts, researchers, or anyone who needs precise answers from their interconnected data without managing multiple specialized databases.
Available on PyPI.
Use this if you need to understand complex relationships and connections within your text data stored in PostgreSQL, and want to avoid the complexity of integrating separate graph databases.
Not ideal if your primary need is simple keyword search or basic document retrieval without considering the deeper connections between entities.
Stars
16
Forks
1
Language
Python
License
MIT
Category
Last pushed
Dec 22, 2025
Commits (30d)
0
Dependencies
10
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/h4gen/postgres-graph-rag"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
neo4j/neo4j-graphrag-python
Neo4j GraphRAG for Python
microsoft/graphrag
A modular graph-based Retrieval-Augmented Generation (RAG) system
Hawksight-AI/semantica
Semantica 🧠— A framework for building semantic layers, context graphs, and decision...
FalkorDB/GraphRAG-SDK
Build fast and accurate GenAI apps with GraphRAG SDK at scale.
getzep/graphiti
Build Real-Time Knowledge Graphs for AI Agents