Vibeleaderboard
← All Intel
Intel / video

RAG Needs a Map: Using GraphRAG to Retrieve Connected Context — Nyah Macklin, Neo4j

Source
youtube.com
Author
AI Engineer
Date

Context

, which compares numeric representations of meaning called embeddings, retrieves passages with similar meaning, but some questions depend on how facts are connected. In the Neo4j workshop, Nyah Macklin builds a course assistant that combines embeddings with a knowledge graph of lessons, concepts and sources. Cypher, Neo4j's graph query language, can then traverse or count explicit relationships while vector search continues to find semantically relevant text.

The graph does not automatically make an answer correct. A extracts the entities and relationships from course material, and a schema guides what it may create, so the extracted graph can contain errors and a text-to-Cypher step can write a wrong query. In the demonstration, a lesson-count answer prompts a closer look at the underlying database query, which is why the workshop shows sources and queries. GraphRAG is most useful when a question genuinely needs connected or aggregate evidence and the exposes that evidence for inspection.

Key takeaways · AI-distilled
  • Macklin's pipeline has an LLM extract entities and relationships from course material, embeddings handle similarity search, and Cypher exposes the resulting structure, so the graph adds traversal and aggregation on top of vectors rather than replacing them.
  • The agent built in Neo4j Aura combines a vector index, a lesson search tool whose retrieval query also returns related graph data, and text-to-Cypher for natural language questions, and it shows the sources behind each answer.
  • The code walkthrough defines , entity types and relationship types up front, so a schema guides extraction instead of leaving the model to invent the graph's structure.
Terms in this piece · Glossary
  • Vector search — Finding content by similarity between embeddings.
  • Large language model — A model trained on large amounts of data to process and generate language.
  • Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
  • Document chunking — Splitting source material into units that can be indexed and retrieved.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.youtube.com
Tools in this story
More from AI Engineer
Recommended reads