yellowsubmarine372

Nodes AI 2026: Context Graphs, GraphRAG, and the Future of Agent Intelligence

Notes from Nodes AI 2026 — I had several opportunities to hear about Neo4j in previous projects, and in a recent side project (Noticing), I also explored using a graph database. As I became more interested in Neo4j, I learned that it has been introducing new AI-related updates. That made me curious to hear more about these developments and real-world use cases, so I applied to attend the session.


alt_text

Session 1: The Context Graph — Decisions, Agents, and Governance

From Full-Stack Applications to Decision Infrastructure

The conference opened with a vision for what graph-native AI applications actually look like in production. The core premise: customers need more than documentation — they need working examples. Ideally, with a single command, you could scaffold an entire full-stack architecture built on a graph foundation.

But the deeper question is more fundamental: how do we actually make decisions in an organization?

Every decision eventually materializes as structured data. A graph is the natural substrate to capture that — real-world data, relationships, and the full-stack application context all in one place.

Logging Is Not Context

One of the sharpest observations of the session: logging is just events — logs don’t understand context. There’s no feedback loop. You can see what happened, but not why, and you can’t trace the reasoning that led to a decision.

Traceability of context is the core problem. And the context graph is the proposed solution.

The real challenge in building a context graph is knowing where to instrument decisions. You have to consciously place the points at which decisions get recorded. This is simultaneously a UX problem and an infrastructure problem — and it feeds directly into governance.

Why Agents Need Governance

Agents are remarkably good at solving problems. Given access to all your GitHub repos, ticketing systems, documentation, and tooling, an agent can act across resources in a way no single human can. There is no human equivalent with that breadth of accessibility. That’s the power — and the risk.

Because agents can act everywhere, they need to be governed. The context graph is the governance layer. It captures not just what agents did, but the reasoning and decisions behind those actions.


Session 2: The GraphRAG System That Asks Back — Intelligent Probing for Better Answers

alt_text

The Ambiguity Problem

Standard RAG pipelines have a quiet failure mode: ambiguous queries return confidently wrong answers.

Take a simple example — a user asks: “the meeting is slow.”

What do they mean?

Each interpretation leads to completely different retrieval paths and answers. The system has no way to know which one is relevant.

Three Naive Approaches — and Why They Fail

(1) Top-K Retrieval for Disambiguation

Retrieve the top-K documents and use them to generate a clarifying question. The problem: the document needed for disambiguation might be ranked K+1 — just outside the retrieval window. The right context never makes it in.

(2) Generate Clarifying Questions from Retrieved Chunks

Send 200 retrieved chunks to an LLM and ask it to generate one clarifying question. This is token-wasteful and noisy. You’re paying a large context cost just to ask a single question.

(3) Metadata Filtering

Use metadata tags to filter and guide the user toward the right interpretation. This is too rigid — metadata can’t capture deep, implicit, or emergent relationships between concepts.

The root insight: we don’t need more data. We need deeper relationships.

The Solution: Knowledge Graph as Clarification Engine

The proposed architecture replaces flat retrieval with a multi-agent system backed by a knowledge graph:

AgentRole
DetectiveAssesses query ambiguity
StrategistHypothesizes on the knowledge graph
InterviewerAsks probing clarifying questions
ExpertGenerates the high-quality final answer

Instead of trying to answer immediately, the system first determines whether it should ask a question, and if so, which question would most reduce ambiguity — using the structure of the knowledge graph to reason about what’s unknown.

RAG isn’t a monologue problem. It’s a dialogue problem.

Key Takeaways

  1. Architect for Dialogue — Move beyond single-shot RAG to a “clarification loop.”
  2. Give Your Agent a World Model — Use a Knowledge Graph for robust reasoning, not just document retrieval.
  3. Ask with Purpose — Design agents that autonomously decide when and how to ask, not agents that always ask or never ask.
  4. Measure What Matters — Evaluate based on task success and user efficiency, not retrieval precision alone.

Session 3: Context Engineering

alt_text

Bigger Context ≠ Better Context

There’s a common misconception that more context always helps. It doesn’t. Bigger context windows don’t automatically produce better results — what matters is whether the right context is present, structured well, and relevant to the task.

Prompt engineering is a one-shot, static discipline: craft a clever phrase and hope. Context engineering is different — it’s a dynamic systems discipline:

Context engineering = building dynamic systems that provide the right information and tools in the right format such that an LLM can plausibly accomplish the task.

Sources of Context

Context doesn’t come from one place. It has four categories:

SourceExamples
HumanUser query, system prompt, dynamic prompts
CognitiveMetadata, guardrails, policies, chain-of-thought
MemoryWorking memory (attention/CoT), long-term (episodic, procedural, graph)
Data / ToolsTool definitions, tool results, vector RAG, GraphRAG

How to Structure Context

Structure isn’t just for humans — it matters for LLMs too:

Managing Context: Three Strategies

(1) Offload / Store

(2) Reduce / Compress

(3) Retrieve / Cache

The Context Pyramid

A useful mental model for layering context by persistence:

        ┌─────────────────────┐
        │   EPHEMERAL (top)   │  tool outputs, reasoning, user query
        ├─────────────────────┤
        │   DYNAMIC (middle)  │  examples, memory, metadata, tool list
        ├─────────────────────┤
        │  PERSISTENT (base)  │  system prompt, role, policies, core facts
        └─────────────────────┘

The base is stable. The top changes every turn. Good context engineering means knowing which layer each piece of information belongs to.


Closing: Evolving from RAG to GraphRAG

Across all three sessions, a consistent theme emerged: the knowledge graph is the missing layer in most AI systems.

A Neo4j knowledge graph combined with LLMs offers concrete improvements over vector-only RAG:

DimensionImprovement
RelevancyMore relevant answers via relationship-aware retrieval
ContextDomain-specific, structured, factual knowledge included
ExplainabilityReasoning paths are traceable — users can see why
SecurityRole-based access control on graph data

The trajectory is clear: from static retrieval to dynamic context graphs, from monologue pipelines to dialogue systems, from logging events to capturing decisions. The graph isn’t just a database — it’s the substrate for building agents that can reason, remember, and explain themselves.

← all posts