Blumenthal explains retrieval-augmented generation and combines vector search, graph traversal, and graph data science. The workshop loads H&M fashion data into Neo4j as customers, articles, products, departments, and purchase transactions. Product descriptions are embedded and indexed so prompts such as “denim jeans” can retrieve similar products.
Knowledge Graphs & GraphRAG: Techniques for Building Effective GenAI Applications
Speaker
Zach Blumenthal leads an interactive AI Engineer workshop on building GraphRAG applications with Neo4j, using a fashion recommendation example and help from workshop assistants Andreas, Michael Hunger, and Torge.
The workshop connects vector results to customers’ purchase histories. It finds customers with overlapping purchases, then uses what those peers bought to rerank product suggestions. Blumenthal notes that combining scores by multiplication is a starting point; filtering and ranking choices depend on data density and should be evaluated with labeled outcomes.
Blumenthal uses Neo4j Graph Data Science to project co-purchase behavior onto article relationships and create 120-dimensional FastRP node embeddings. A k-nearest-neighbors step writes “customers also like” relationships, which can support recommendations across multiple hops. The resulting vectors represent graph structure and help infer links that would be difficult to find with repeated queries alone.
Two retrievers feed a LangChain prompt: personalized search results and recommendations based on graph embeddings. GPT-4o uses those products, a customer name, interests, and the time of year to draft a recommendation email. In the Gradio demo, the same search prompt can produce different products for different customers, while changing the season steers the email’s seasonal framing.
Takeaways
- Combine semantic similarity with graph relationships when recommendations need both relevance and customer context.
- Use purchase overlap as a practical collaborative-filtering signal, and test reranking methods against labeled outcomes.
- Graph embeddings can turn multihop structure into vectors and inferred links for recommendation tasks.
- Keep retrieval and generation separate: provide the LLM curated product lists and clear constraints for its response.
Mentioned in this talk
Search inside this talk
What was claimed 13
- usesZach Blumenfeld uses
Neo4j
“doing GraphRAG with some real data using Neo4j”
YouTube Unverified1 source· Talk
- integrates with
“LangChain integrates all the different parts and pieces required for a modern AI system”
5:03inHow to Become an AI Engineer from a Fullstack BackgroundYouTube Verified2 sources· Talk
- featureGraphRAG: Combines vector search, knowledge graph traversals over structured data, and graph embeddings
“a combination of three things”
YouTube Unverified1 source· Talk
- usesZach Blumenfeld uses
LangChain
“I think I use LangChain in this case”
6:56inAgentic GraphRAG: Simplifying Retrieval Across Structured & Unstructured DataYouTube Verified2 sources· Talk
- uses
“real-world data from an H&M Kaggle competition”
YouTube Unverified1 source· Talk
- feature
Neo4j: Provides graph database capabilities and vector indexes for approximate nearest neighbor search
“Our vector index uses HNSW”
YouTube Unverified1 source· Talk
- integrates with
“creating a vector store using Neo4j Vector”
YouTube Unverified1 source· Talk
- featurecollaborative filtering: Recommends products based on items purchased by customers with similar purchase behavior
“That's the idea behind collaborative filtering.”
YouTube Unverified1 source· Talk
- feature
Neo4j: Supports vector search over node properties and graph traversals for personalized retrieval
“do vector search like before, then match the customer”
YouTube Unverified1 source· Talk
- feature
Graph Data Science: Provides graph algorithms, machine learning, embeddings, and k-nearest-neighbor similarity
“It offers various graph algorithms”
YouTube Unverified1 source· Talk
- usesZach Blumenfeld uses FastRP
“I'm going to use FastRP”
YouTube Unverified1 source· Talk
- featureFastRP: Creates graph embeddings using sparse random matrix multiplication
“calculate an embedding really quickly”
YouTube Unverified1 source· Talk
- usesZach Blumenfeld uses Gradio
“we're using Gradio”
YouTube Unverified1 source· Talk









