AI Engineer Europe 2026
Connecting the Dots with Context Graphs
Read the talk
Connecting the Dots with Context Graphs
Agents need more than relevant documents: connected domain knowledge, persistent memory, and recorded decision context let them retrieve the evidence behind a recommendation.
From a talk by Stephen Chin
Before you start: Familiarity with LLMs and retrieval-augmented generation is helpful; graph concepts are introduced as they are used.
When agents review work without its context
An agent can review an engineer’s pull request while still missing the business context behind the change. That context may live in Slack discussions, customer threads, and separate enterprise systems. Giving an agent responsibility for consequential decisions does not automatically give it access to the information those decisions require. Stephen Chin opens with this mismatch: engineers have increasingly capable tools, but incomplete control over what those tools know.
The Matrix metaphor makes the choice concrete. The blue pill leaves knowledge scattered across disconnected systems. The red pill connects enterprise data, previous decision traces, and tool calls into a system of reasoning. The goal is to make the context available together, so an application can use the relationships between facts when answering a question.
Chin points to Gartner’s recognition of context graphs on its AI hype cycle and Foundation Capital’s AI’s trillion-dollar opportunity: Context graphs as signs of growing interest. The essay’s title says trillion-dollar, rather than the three-trillion-dollar phrasing in the talk; its figure is an investment thesis. The technical question is how to build the connected information layer that such applications need.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Represent the relationships explicitly
A knowledge graph represents people, things, and companies as nodes, attaches properties to them, and connects them through relationships. Chin’s small example has Dan living with Anne and driving her car. Those connections encode different facts: living with someone, driving a vehicle, and owning it are separate relationships. An embedding attached to the car adds another access path, allowing similarity search alongside explicit connections.
Using illustrative labels and relationship names, the Dan–Anne–car example can be represented in Cypher as follows. The car is one shared node, so a query can follow either its driver or its owner to the same object.
cypher
CREATE (dan:Person {name: 'Dan'}),
(anne:Person {name: 'Anne'}),
(car:Car),
(dan)-[:LIVES_WITH]->(anne),
(dan)-[:DRIVES]->(car),
(anne)-[:OWNS]->(car)
RETURN dan, anne, car;
A vector representation can supplement this structure without replacing the facts encoded by its relationships.
The complementary roles are straightforward: an LLM supplies language capabilities, reasoning, and creativity; the graph supplies organized knowledge, context, and enrichment. Storing relationships together makes them available for retrieval, visualizing them helps people inspect the relevant connections, and analysing them can expose hidden patterns.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Retrieve the patient’s plan, not just advice about the disease
The retrieval example asks: What was the care plan associated with Andrea Jenkins’ emphysema? Knowing what emphysema is does not answer a question about one patient’s recorded care. Chin develops the comparison from a baseline LLM through vector retrieval to graph-grounded context.
| Approach | Context used | Response in the example |
|---|---|---|
| Baseline LLM | General medical knowledge | Prevent further lung damage |
| Vector RAG | Retrieved patient information | Respiratory therapy, deep breathing, coughing exercises |
| Graph-grounded retrieval | Patient, diagnosis, and operation history | Medication management, smoking cessation counseling, pulmonary rehabilitation |
The difference is the background connected to the patient. Chin identifies a smoking history and a previous operation as information lost in the similarity search but available in the graph-grounded example. This is an illustrative retrieval comparison, not a clinical evaluation.
The Matrix callback is Neo loading the knowledge needed to perform a task. For an agent, the corresponding capability comes from retrieving the relevant connected context before generating its answer.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Add memory across interactions and decisions
Retrieval supplies grounding for the current question. The next layer is persistent agent memory, which preserves what has happened so later work can build on it. Chin separates that memory into three forms.
- Short-term memory: The conversation, current agent pipeline, and state of activities underway. Persisting these in the graph preserves information needed during execution.
- Long-term memory: Knowledge accumulated across longer tasks, procedures, and customer interactions. Its usefulness depends on a domain model that organizes business processes, entities, and participants.
- Reasoning memory: Recorded decision provenance that helps explain a recommendation and supplies precedents for later decisions.
The last category needs a precise interpretation: a useful decision trace records the evidence, actions, and rationale available to the application; it does not imply access to a model’s hidden chain-of-thought. Retained provenance can support repeatability, compliance review, and debugging.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Use similarity to enter the graph, then follow connections
Graphs provide a representation that both software and people can work with. An LLM can generate Cypher queries or extract graph structure from unstructured documents. A person can inspect the resulting nodes and relationships much as they would a diagram on a whiteboard. Relationships are first-class objects in this representation, rather than connections reconstructed through a series of table joins.
Chin describes multi-hop traversal as a performance advantage, without presenting a benchmark. He then combines several graph operations: FastRP produces graph embeddings; vector lookup can provide a starting point in the graph; and Louvain community grouping helps organize connected regions. Similarity and traversal serve different purposes: one locates a useful entry point, while the other follows explicit connections from it.
The open-source Neo4j Agent Memory package brings short-term, long-term, and reasoning memory together in a context graph. Chin connects this approach with explainable decisions and ACID-compliant storage, and invites contributions to the repository. The linked repository’s current APIs may differ from those used in the recording.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Explore connected information in Lenny’s podcast
Podcasts make a useful test case because their information is dense and interconnected. A conversation about AI or product management can mention people, organizations, topics, and locations whose connections matter beyond any one passage. Chin’s Lenny’s Podcast Memory Explorer loads a podcast corpus and uses the three memory layers to support questions about it.
The agent receives tools built on the Neo4j Agent Memory APIs. In the demonstration, it retrieves locations mentioned in an episode, returning location records with coordinates. Chin describes using that information to build a map; the selected screen shows the returned locations and a successful Get Episode Locations tool result.
The purpose of the graph is to make the connected dataset navigable and dynamically queryable. Rather than asking only which location mentions resemble a query, the application can aggregate the locations associated with an episode. Chin describes this as a holistic view of the loaded data, compared with retrieving a partial set of similarity matches.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Write decision context back into memory
Cross-domain business questions require more than retrieving facts. They also require understanding why a previous decision was made. Chin distinguishes a context graph from a traditional audit log by the decision context it retains: entities and relationships connect evidence that might otherwise remain buried in Slack, email, or informal conversations. A new recommendation can then become part of the record available to the next interaction.
The architecture forms a feedback loop:
- Retrieve context. The agent uses context graph tools that combine knowledge graphs, vector search, and data science algorithms.
- Work through the request. Retrieved domain knowledge and earlier decision traces inform the agent’s recommendation.
- Record the new context. The agent loop pushes its output and associated trace into context memory, adding them to the graph.
- Reuse the history. Subsequent queries retrieve the accumulated traces alongside other relevant information.
The output of one interaction becomes evidence available to a later interaction. That is the mechanism that turns retrieval into an accumulating decision history.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Connect financial records to decision provenance
The financial services example gives the graph a concrete domain model. People and organizations are entities. Decisions, transactions, and approvals are events. Applied policies, risk factors, and employee reasoning provide the context for why those events occurred. Chin describes an open-source application that can be run locally, as well as a hosted version.
Chin describes a support ticket system, CRM, and internal business data system accessed through 10 MCP tools. Claude agents orchestrate the work, OpenAI embeddings supply vector representations, and Neo4j stores the resulting context. This separates orchestration from embedding generation: Claude does not itself compute OpenAI embeddings. The application maintains both a domain graph and a reasoning graph, then exposes them through a simple Next.js interface for end users.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Follow Jessica Norris’s loan recommendation
The demonstration asks whether Jessica Norris should receive approval. The application queries the graph for her history, including her bank account and related margin trades. It exposes model-issued Cypher queries and the graph being traversed and populated, making the retrieved information inspectable. The connected record also reveals a previous rejection—precisely the kind of prior decision that can disappear from view when systems remain separate.
The model recommends against giving Jessica the loan. Its response includes reasons, risk factors, earlier decisions, and fraud-detection patterns that it identifies as relevant to the risk. This is a recommendation presented to a human user, not a demonstrated execution of a loan denial. The person using the system can inspect the supporting context before making and defending a decision.
For developers, the value is a path from an agent’s answer back to the information used to produce it. Connected records and visible queries help users evaluate a recommendation; recorded decision context gives later interactions something more useful than an isolated final answer. Chin frames that grounded information as the practical business value of context graphs.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Try the memory layers in a graph database
Chin closes with a practical route to experimentation through Neo4j’s free education program. He introduces the GraphAcademy context graphs course and says the course provisions a free Aura instance in the background. That gives learners a graph database in which to try the techniques before bringing them into their own production or enterprise environment.
Suggest correction
This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.
Resources
From the talk
Foundation Capital’s thesis on recording decisions, exceptions and approvals as searchable enterprise context.
Neo4j Labs library for storing conversations, domain knowledge and reasoning traces in a connected graph, with setup instructions and examples.
Podcast exploration application with conversational search, graph visualization and maps of locations mentioned in episodes.
Official documentation for creating node embeddings from graph structure with FastRP.
Free GraphAcademy course on building persistent agent memory and querying recorded reasoning traces with Cypher.
Further reading
Financial decision-tracing example using generated sample data, Claude agents, ten MCP tools, Neo4j and a Next.js interface.
Read the transcript and explore slides
Loading transcript and slides…