World's Fair 2025
Intro to GraphRAG — Zach Blumenfeld
Overview
This talk introduces GraphRAG, an architecture that integrates knowledge graphs with AI agents to enhance data retrieval and reasoning. It demonstrates how to build a knowledge graph using Neo4j and leverage it with tools like LangChain and LangGraph for applications such as talent management and skill analysis. The session covers data modeling, querying with Cypher, incorporating vector search for semantic similarity, and building agents that can interact with the graph.
Who should watch
- AI engineers and builders looking to enhance AI agent capabilities with structured knowledge.
- Product Managers interested in developing more sophisticated knowledge assistants.
- Developers seeking to improve data retrieval accuracy and explainability in AI applications.
- Individuals exploring the integration of graph databases with large language models.
Key takeaways
- GraphRAG combines AI models with knowledge graphs to provide agents with structured domain knowledge, enabling more controlled and accurate data retrieval than traditional methods.
- Neo4j's property graph model, consisting of nodes, relationships, and properties, is used to store and query interconnected data, including structured and unstructured information.
- Cypher query language allows for expressive data traversal and pattern matching within the graph, facilitating complex data retrieval.
- Vector search and embeddings can be integrated into Neo4j to find semantically similar entities and relationships, complementing traditional graph traversals.
- Graph analytics, such as community detection (e.g., Leiden algorithm), can enrich the graph by identifying clusters of related entities, aiding in summarization and segmentation.
- Entity extraction from unstructured text (like résumés) using tools like Pydantic and LLMs can populate the knowledge graph, making the data actionable for agents.
- LangGraph agents can be built with custom tools that query the Neo4j graph, enabling sophisticated reasoning for tasks like finding similar skills or recommending personnel.
- The talk provides hands-on examples using Jupyter notebooks, demonstrating the setup and practical application of GraphRAG concepts.
Notable quotes
*The idea with this is that if you have a use case and you kind of know the types of questions that you want to answer with your Asians, by taking your data and decomposing even a very simple knowledge graph to start, you're going to be able to expose a lot of the sort of domain logic that you'd want to apply through the model of your data.*
*It's basically like having your information in a symbolic versus just a sub symbolic vector.*
*For agents, I think it's really nice when the data model reflects a natural language.*
Unofficial community note. Prefer the recording for nuance.