skaiworldwide-oss/agensgraph

AgensGraph, a high performance transactional graph database based on PostgreSQL

What it solves

AgensGraph solves the complexity of managing separate relational and graph databases. It allows developers to store both traditional tabular data and complex graph data (nodes and edges) within a single PostgreSQL-based system, enabling them to be queried together in one transaction.

How it works

It is a fork of PostgreSQL that integrates the property graph model directly into the database engine. Instead of being an extension, it treats graph data as native structures: graphs are schemas, labels are tables, and vertices or edges are rows. You can write queries using a mix of SQL, openCypher, and ISO GQL in a single statement. Because it is built on PostgreSQL, it supports standard database features like transactions, row-level security, replication, and existing extensions like pgvector.

Who it’s for

It is for developers and data engineers who need to perform complex relationship analysis alongside traditional relational data. It is particularly useful for those building AI agents, knowledge graphs, or GraphRAG applications who want to leverage the reliability of PostgreSQL while gaining the flexibility of graph traversal.

Highlights

  • Unified Querying: Mix SQL, openCypher, and ISO GQL in one query without mode switching.
  • Native Integration: Graph data and relational tables live in the same database and commit in the same transaction.
  • PostgreSQL Compatibility: Works with standard tools like pg_dump, EXPLAIN, and existing PostgreSQL extensions.
  • AI-Ready: Supports GraphRAG, vector search via pgvector, and provides integrations for frameworks like LangChain, LlamaIndex, and LightRAG.
  • Advanced Graph Features: Includes pathfinding algorithms like Dijkstra and variable-length pattern matching.

Related

  • Project
  • Project
  • Project
  • Project