RAG Needs a Map: Using GraphRAG to Retrieve Connected Context — Nyah Macklin, Neo4j
- Source
- youtube.com
- Publisher
- AI Engineer
- 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.
- 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.
- 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.
video1,000 Claude Agents Formalized Fermat's Last Theorem — Lance Martin, Anthropic
videoHow 21 People Built a $100M+ Agent Company — Quinn Slack, Amp
videoSoftware Factories: Escape from Trash Mountain — Steve Yegge, Gas Town
videoHow to Ship Millions of Lines of Agent-Written Code — Jarred Sumner, Anthropic


