r/madeinpython • u/vm324234 • 16m ago
Agentic GraphRAG: 3D knowledge graphs as the context layer + memory for agents
We've worked on systems for context retrieval for the past three and a half years. Now we're building Agentic GraphRAG, an open source framework that stores enterprise knowledge and agent memory in a unified knowledge graph.
Everyone treats knowledge retrieval and memory as separate problems. Putting them together lets the agent learn from the existing knowledge, saving tons of tokens.
We build a 3D connected knowledge graph with the following structure:
- Enterprise Knowledge: stores documents and source passages with their extracted entities and relationships.
- Conversation History: records tasks, progress, messages, and tool activity.
- Decision traces: stores conclusions, assumptions, and open questions encountered by the agent.
Things which make us different from other frameworks out there:
- Ontology Grounded: You define a schema for your domain (we also ship ontology presets so it is easy to get started). The schema guides extraction, validation, and agent search. We use GLiNER for local extraction, so its virtually free (and fast) to construct the graph and no LLM calls are needed.
- Structure Aware: The ingestion pipeline captures the full document hierarchy. The sections, tables, and passage hierarchy are connected using edges and stored in the graph. Even chunks are linked together, so all the data is traversable.
- Robust Agent Search: Retrieval combines graph, full-text and vector search. Agents can reach original passages by traversing the document tree, navigate agent traces to find relevant tool results and follow entity relationships back to supporting text.
We offer a built-in agent you can use out of the box. You can also connect your agents through MCP.
We will be releasing extensive benchmarks very soon.
Try it out. We're looking for feedback, questions and criticism. We have a lot of new features and improvements in the pipeline and are excited to work on this problem.