While thinking about how AI agents could realistically be used at work, I keep running into the same limitation: RAG and tool calling are useful, but they do not fully answer the question of context. In company work, it matters why a decision was made last time, which customer context was involved, and who is allowed to see that memory.
That is why a video about Context Graphs and Neo4j Agent Memory caught my attention. I am not saying I will adopt this immediately at work. I am still looking for examples and trying to understand where it might fit. But the connection between context graphs and agent memory felt worth organizing.
Related Posts
- Ponytail and AI Coding Settings: Porting a Lazy Senior Developer’s Good Habits
- WaterCrawl vs Firecrawl: Choosing an LLM Crawling Tool for Repeated Side-Project Crawls
- Why Claude Code /deep-research Hits API Rate Limits During Verify
Summary
- A context graph is less about storing everything and more about selecting the right context for the current user, task, and situation.
- Agent memory becomes more practical when split into short-term memory, long-term memory, and reasoning memory.
- The most interesting use cases are internal support, customer-response history, incident review, onboarding, and personal work assistants.
- Recent blog, community, and GitHub issue signals show that user isolation, entity quality, slow extraction, empty recall, and provenance matter more than a polished demo.
Table of Contents
- Why I started paying attention to context graphs
- Graph, knowledge graph, and context graph
- What should agent memory remember?
- Where it might fit inside a company
- What recent blogs and communities are actually worried about
- What feels useful to me
- What to check before adopting it
- Examples I want to look into more
- Conclusion
- References
Why I started paying attention to context graphs
When people talk about AI agents these days, memory comes up quickly. At first it sounds like a longer chat history. But in company work, simply storing more conversation is not enough.
Imagine an AI remembering a customer incident. “Customer A had an outage last month” is not very useful by itself. The useful context is the system involved, who approved the workaround, why the permanent fix was delayed, and which parts of that memory only certain teams should see.
That is why the context graph idea is interesting to me. Instead of sending every piece of knowledge to the LLM, the system tries to pick the relevant subgraph for the current task.
Graph, knowledge graph, and context graph
| Term | How I understand it | Role in an AI agent |
|---|---|---|
| Graph | A structure of nodes and relationships | Represents people, systems, issues, and documents |
| Knowledge graph | Facts, concepts, and relationships organized as knowledge | Connects internal knowledge, products, policies, and customers |
| Context graph | A graph used to select the context needed for the current task | Passes only the relevant subgraph to the LLM |
The distinction matters because the hard part in company AI is not only having information. It is selecting the right information at the right moment.
What should agent memory remember?
1. Short-term memory
This is the current conversation or task state: message order, the option just selected, the server “we just mentioned,” and temporary context.
2. Long-term memory
This includes stable preferences, recurring facts, customer characteristics, and system relationships that survive across sessions. In a company, this is also the risky part because access control and deletion rules matter.
3. Reasoning memory
This is the most interesting layer to me: tool calls, reasoning paths, and provenance. For incidents or customer issues, the question is often not just what the answer was, but why that answer was produced.
Where it might fit inside a company
- Internal technical support: connect past questions, system configuration, teams, and fixes.
- Customer-response memory: preserve customer-specific context without making people repeat it every time.
- Incident response and postmortems: connect symptoms, logs, actions, and prevention tasks.
- Knowledge management and onboarding: connect documents, code, policies, and owners.
- Personalized work assistant: remember repeated work patterns while staying inside company policy.
What recent blogs and communities are actually worried about
When I strengthened this article, I did not rely only on the video and official documentation. I also checked recent blogs, community posts, and GitHub issues. The pattern was clear: people are not only asking whether agents can remember more. They are asking how memories change, how users are isolated, how empty recall is exposed, and how local or custom LLM endpoints work.
- Graphiti / PyTorch Korea signal: the repeated theme is the temporal context graph. Instead of indexing documents once like traditional RAG, the graph keeps updating entities and relationships from conversations, business data, and documents, while preventing outdated facts from being treated as current.
- Mem0 signal: the approach is different. Rather than asking every team to design a graph directly, Mem0 is presented as a memory layer that helps AI apps remember user preferences and recurring context across sessions.
- GitHub issue signal: the practical problems are more concrete. Neo4j Agent Memory has issues around user-level isolation and relation extraction quality. Graphiti has issues around slow extraction for larger content and custom/local LLM endpoints. Cognee has discussion around surfacing processing lag instead of silently returning empty recall.
So this is not just “attach a cool graph database.” The real checklist is memory isolation, entity merge quality, extraction latency, empty recall handling, local model integration, and auditable provenance.
What feels useful to me
- Less repeated context: company work repeats the same explanation too often.
- Relationships and sources together: vector search is good at similarity, but graphs are more natural for “who, what system, which decision, from which document.”
- Better auditability: if tool calls and source paths are retained, bad answers become easier to inspect.
What to check before adopting it
- Decide what to remember. Storing every conversation is convenient but risky.
- Design permission rules first. Powerful graphs can connect information that used to be separate.
- Watch entity extraction quality. Bad merges or splits can turn memory into a liability.
- Support deletion and audit trails. Long-term memory needs retention periods and correction paths.
- Expect operational cost. Graph DB, embeddings, LLM calls, synchronization, and evaluation all add complexity.
Examples I want to look into more
- Neo4j Agent Memory: graph-native memory with conversations, entities, facts, and reasoning traces.
- Create Context Graph: a starting point for domain-specific context graph apps.
- Graphiti / Zep: temporal context graphs for evolving facts and provenance.
- Mem0: a managed memory layer approach.
- LangGraph Memory: short-term thread memory and long-term namespace stores.
- Cognee: vector, relational, and graph memory/search architecture.
Conclusion
Context graphs and agent memory are not just about making an AI remember longer chats. In a company setting, they are about deciding what to remember, which relationships to preserve, who can see the memory, and whether the agent can explain why it reached an answer.
I am not deciding to adopt this immediately. But after RAG and tool calling, memory governance and context selection feel like the next topic I need to understand better.
References
- Understanding Knowledge Graphs, Context Graphs, and Agent Memory for AI
- Neo4j Labs Agent Memory
- Neo4j Labs Create Context Graph
- Neo4j Developer Blog: Graphiti knowledge graph memory
- PyTorch Korea: Graphiti temporal knowledge graph discussion
- Mem0 Platform overview
- Neo4j Agent Memory issue: user isolation
- Graphiti issue: slow extraction for larger content
- Cognee issue: empty recall and processing lag
- Original Korean article
This article was localized from the Korean original. I still hope you will give the Korean version some love too.