WhoBuilt

Why your agents need decision traces, not just documents

May 29, 2026· 20 min· 14K views·Watch on YouTube

Speaker

Zach Blumenfeld, a research engineer at Neo4j, explains context graphs and tools for building them at an AI Engineer event.

From answering questions to making decisions

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.

Connect precedents with graph search

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.

Generate a context graph application

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.

Combine memory with reasoning traces

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.

Trace capture is still evolving

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

Show all 9 facts

Related talks