WhoBuilt

Practical GraphRAG: Making LLMs smarter with Knowledge Graphs

Jul 22, 2025· 20 min· 57K views·Watch on YouTube

Speakers

Michael Hunga, VP of Product Innovation at Neo4j, and Stephen Shin, who leads Developer Relations at Neo4j, explain GraphRAG patterns at an AI Engineer event, with Jesus introducing the session and contributing examples.

Why use GraphRAG

Michael says LLMs can lack enterprise knowledge, produce hard-to-explain answers, and hallucinate. GraphRAG combines LLMs with knowledge graphs to bring domain context into retrieval, so answers can be more relevant, grounded, and explainable. He describes graph data as nodes, relationships, and properties, including details such as who owns a car versus who drives it.

Build a useful knowledge graph

Michael outlines three construction steps: structure documents and chunks as a lexical graph, extract entities and relationships with an LLM and graph schema, then enrich the graph with algorithms such as PageRank and community detection. Stephen and Jesus describe patterns for representing document structure, including chapters, sections, paragraphs, and links between neighboring or similar chunks. Existing structured data, such as CRM records, can be connected to facts extracted from transcripts.

Retrieve connected context

A GraphRAG retriever can begin with vector, full-text, spatial, or other searches, then follow graph relationships to gather further context. Michael says retrieval can account for a user's question and role, such as finance or engineering, and return a contextual graph subset rather than isolated text fragments. Graph algorithms can also contribute clustering, link prediction, or PageRank results.

Examples, evidence, and tools

Michael cites research reporting lower token costs in a Microsoft Research GraphRAG paper, a data.world study with a three-times improvement in response accuracy, and LinkedIn customer support results showing median issue resolution time fell by 28.6%. In a demo, he shows document chunks and extracted entities from sources including a DeepMind Wikipedia article, with retrieved sources and graph entities visible for inspection. He also presents open-source retrievers, agentic tool workflows, and a Python package for graph construction and retrieval.

Takeaways

  • Invest in document structure and graph modeling before retrieval; the construction work supports richer context later.
  • Use an explicit graph schema and existing structured records to guide entity extraction.
  • Start retrieval with a suitable index, then follow graph relationships to collect connected context.
  • Use user role and question context to shape what information reaches the LLM.
  • Expose retrieved sources, chunks, and entities so teams can inspect how an answer was assembled.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks