WhoBuilt

RAG Needs a Map: Using GraphRAG to Retrieve Connected Context

Oct 11, 2026· 53 min· 11K views·Watch on YouTube

Speaker

Nyah Macklin, senior software engineer and senior developer advocate at Neo4j, explains GraphRAG and leads a hands-on workshop at AI Engineer with colleagues Jeremy Adams-Castañeda and Ryan Knight.

Why add a graph to RAG

Macklin contrasts an opaque vector representation of an apple with a knowledge graph that shows its properties and relationships, such as being red, round, and coming from a tree. She says graph connections make it possible to trace how information relates and how an agent reached a decision, which can help in regulated areas such as finance, medicine, and legal work.

Choosing retrieval methods

In standard RAG, documents are chunked, embedded, and searched for relevant passages to send to an LLM. GraphRAG adds a knowledge graph to the retrieval path. Macklin says vector RAG can be enough for search-like questions, while multi-hop questions and tasks that combine information across documents, such as source code analysis or supply chain research, can benefit from graph traversal. She recommends combining vector and graph retrieval.

Building a knowledge graph

Macklin walks through turning unstructured text into a graph: gather sources, split text into chunks, generate embeddings, and use an LLM to extract entities and relationships. The workshop uses a schema of node types such as technology, concept, and process, with relationships such as “related to” and “part of.” She explains that a schema guides the LLM toward consistent node and relationship types.

Connecting search to an agent

Participants use GraphRAG for Python, a Neo4j Aura database, and a GitHub Codespace to build and inspect a graph from GraphAcademy course materials. Macklin configures an Aura agent with similarity search over lesson content and a natural-language-to-Cypher tool. The demo answers course questions and shows how graph queries can help with aggregation: after a rerun created duplicate lesson nodes, querying the graph showed the correct count of 15 lessons.

Takeaways

  • Use vector retrieval for search-like questions and add graph traversal when answers require multiple hops.
  • Combine vector similarity with graph relationships to retrieve relevant passages alongside connected context.
  • Define node and relationship types to guide LLM-based graph extraction toward a consistent schema.
  • Use graph queries for counts and aggregations that can be unreliable when answered from retrieved text alone.
  • Inspect graph nodes and relationships to trace where an agent’s answer came from.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks