Blumenfeld describes context graphs as a way to give agents decision traces and reasoning alongside the information in a knowledge base. In a financial analyst example, customer details and transactions can inform a risk score, while past decisions and their rationale help the agent recommend whether to accept or reject a request and explain why.
Why your agents need decision traces, not just documents
Speaker
Zach Blumenfeld, a research engineer at Neo4j, explains context graphs and tools for building them at an AI Engineer event.
The demo retrieves context around a customer profile, then searches for precedents using both semantic and structural similarity. Blumenfeld describes using vector search for relevant terms and graph embeddings to find similar decision traces based on how their nodes are connected.
Blumenfeld presents an open-source command-line tool that scaffolds a context graph, front end, and back end. It supports frameworks including Pydantic AI, OpenAI, LangGraph, Crew, Strands, and Google ADK, and offers 22 built-in domains plus custom ontology generation.
Neo4j Agent Memory underpins the project with short-term memory for conversation history, long-term memory for recurring and resolved entities, and reasoning traces. Its text processing moves through spaCy and GLiNER, with an LLM fallback, followed by merging, deduplication, and enrichment.
In the Q&A, Blumenfeld says decision events can have timestamps and links such as “caused by” or “next.” He says the demo can store decisions when prompted, while the project is still working on how to write new traces and assess their quality.
Takeaways
- Pair current facts with past decision traces when an agent needs to explain a recommendation.
- Use structural graph similarity alongside semantic search to find relevant precedents.
- Start with the scaffolding tool's built-in domain or generate an ontology for a custom one.
- Treat memory as conversation context, resolved entities, and reasoning traces.
- Decide how and when new decisions enter the graph; the demo may require an explicit prompt.
Mentioned in this talk
Search inside this talk
What was claimed 9
- works atZach Blumenfeld works at
Neo4j
AI research engineer“I work for Neo4j.”
YouTube Verified5 sources· Talk, Web· archived
- feature
Neo4j: Provides a graph database as the core of a knowledge layer to connect and resolve information for AI systems
“a knowledge layer, with a graph database at the core”
YouTube Unverified1 source· Talk
- featurecontext graph: Combine decision traces and reasoning with information to help agents make better decisions
“creating decision traces and reasoning to help agents make better decisions”
YouTube Unverified1 source· Talk
- featurecontext graph: Provide information for making decisions as well as answering questions
“not only to answer questions correctly, but to make better decisions”
YouTube Unverified1 source· Talk
- feature
Create Context Graph: Creates a full stack application with a context graph, front end, and back end from a command
“create the context graph, the front end, and the back end”
YouTube Unverified1 source· Talk
- uses
“I’m choosing Pydantic AI”
YouTube Unverified1 source· Talk
- metric
Create Context Graph: 22 built-in domains
“There are 22 built-in domains.”
YouTube Unverified1 source· Talk
- feature
Neo4j Agent Memory Service: Provides short-term memory, long-term memory, and reasoning“It’s a complete memory API.”
YouTube Unverified1 source· Talk











