r/coolgithubprojects • u/vm324234 • 2h ago
Built a framework that combines Context layer + Agent memory using a 3D-knowledge graph
We're building Agentic GraphRAG, an open source library for connecting the documents an agent reads with its task history and decisions.
I've worked on RAG systems and LLM training for the past three and a half years. Lately, I've been following how agents retain work across sessions, especially for non-coding tasks.
Most frameworks treat knowledge retrieval and memory as two separate problems. Nobody stores the decisions that led to the retrieval along with the data that it gets. Agent struggles to retrieve the correct stuff the next time again. We're solving that by bringing them together in one 3D connected graph.
We construct three connected graph layers that the agents read:
- Knowledge Layer: holds documents (with full structure), source passages, and extracted entities and relationships. Passages retain their document version and location, including page positions for PDFs.
- Working memory: records tasks, progress, messages, and tool activity. The agent saves task events so work can continue across sessions.
- Decision memory: stores conclusions, assumptions, and open questions encountered by the agent. Decisions link to source passages they were based on, recorded events, or earlier decisions, and keep their history when reviewed or replaced.
Things which make us different from other frameworks out there:
- Structure Aware: The ingestion pipeline uses Docling for loading documents and captures the full document hierarchy. The sections, tables, and passage hierarchy are connected using edges and stored in the graph.
- 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 search. We use GLiNER for local extraction, so its virtually free (and fast) to construct the graph and no LLM calls are needed.
- Robust Agent Search: Retrieval combines graph, full-text and vector search. Agents can reach original passages even when extraction misses a fact, navigate surrounding sections and table rows with headers, 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.
TL;DR
Agentic GraphRAG is an open source library that stores document knowledge, agent work, and decisions in one connected graph. Agents can resume tasks and trace saved decisions to their original evidence, while source changes flag affected decisions for review.
Try it out. Feedback, criticism, issues, and contributions are all welcome!