A comprehensive guide to building cutting-edge generative AI applications using Neo4j's knowledge graphs and vector search capabilities
Key Features
Design vector search and recommendation systems with LLMs using Neo4j GenAI, Haystack, Spring AI, and LangChain4j Apply best practices for graph exploration, modeling, reasoning, and performance optimization Build and consume Neo4j knowledge graphs and deploy your GenAI apps to Google Cloud Purchase of the print or Kindle book includes a free PDF eBook
Book DescriptionEmbark on an expert-led journey into building LLM-powered applications using Retrieval-Augmented Generation (RAG) and Neo4j knowledge graphs. Written by Ravindranatha Anthapu, Principal Consultant at Neo4j, and Siddhant Agrawal, a Google Developer Expert in GenAI, this comprehensive guide is your starting point for exploring alternatives to LangChain, covering frameworks such as Haystack, Spring AI, and LangChain4j. As LLMs (large language models) reshape how businesses interact with customers, this book helps you develop intelligent applications using RAG architecture and knowledge graphs, with a strong focus on overcoming one of AI’s most persistent challenges—mitigating hallucinations. You'll learn how to model and construct Neo4j knowledge graphs with Cypher to enhance the accuracy and relevance of LLM responses. Through real-world use cases like vector-powered search and personalized recommendations, the authors help you build hands-on experience with Neo4j GenAI integrations across Haystack and Spring AI. With access to a companion GitHub repository, you’ll work through code-heavy examples to confidently build and deploy GenAI apps on Google Cloud. By the end of this book, you’ll have the skills to ground LLMs with RAG and Neo4j, optimize graph performance, and strategically select the right cloud platform for your GenAI applications.
What you will learn
Design, populate, and integrate a Neo4j knowledge graph with RAG Model data for knowledge graphs Integrate AI-powered search to enhance knowledge exploration Maintain and monitor your AI search application with Haystack Use LangChain4j and Spring AI for recommendations and personalization Seamlessly deploy your applications to Google Cloud Platform
Who this book is forThis LLM book is for database developers and data scientists who want to leverage knowledge graphs with Neo4j and its vector search capabilities to build intelligent search and recommendation systems. Working knowledge of Python and Java is essential to follow along. Familiarity with Neo4j, the Cypher query language, and fundamental concepts of databases will come in handy.
By:
Ravindranatha Anthapu,
Siddhant Agarwal
Foreword by:
Dr. Jim Webber,
Dr. Julian Risch
Imprint: Packt Publishing Limited
Country of Publication: United Kingdom
Dimensions:
Height: 235mm,
Width: 191mm,
ISBN: 9781836206231
ISBN 10: 1836206232
Pages: 312
Publication Date: 20 June 2025
Audience:
General/trade
,
ELT Advanced
Format: Paperback
Publisher's Status: Forthcoming
Table of Contents Introducing LLMs, RAGs, and Neo4j Knowledge Graphs Demystifying RAG Building a Foundational Understanding of Knowledge Graph for Intelligent Applications Building Your Neo4j Graph with Movies Dataset Implementing Powerful Search Functionalities with Neo4j and Haystack Exploring Advanced Knowledge Graph Capabilities Introducing the Neo4j Spring AI and LangChain4j Frameworks for Building Recommendation Systems Constructing a Recommendation Graph with H&M Personalization Dataset Integrating LangChain4j and SpringAI with Neo4j Creating an Intelligent Recommendation System Choosing the Right Cloud Platform for GenAI Applications Deploying your Application on Cloud Epilogue
Ravindranatha Anthapu has more than 25 years of experience in working with W3C standards and building cutting-edge technologies, including integrating speech into mobile applications in the 2000s. He is a technology enthusiast who has worked on many projects, from operating system device drivers to writing compilers for C language and modern web technologies, transitioning seamlessly and bringing experience from each of these domains and technologies to deliver successful solutions today. As a principal consultant at Neo4j today, Ravindranatha works with large enterprise customers to make sure they are able to leverage graph technologies effectively across various domains. Siddhant Agarwal is a seasoned DevRel professional with over a decade of experience cultivating innovation and scaling developer ecosystems globally. Currently leading Developer Relations across APAC at Neo4j and recognized as a Google Developer Expert in Gen-AI, Sid transforms local developer initiatives into global success stories with his signature ""Local to Global"" approach. Previously at Google managing flagship developer programs, he has shared his technical expertise at diverse forums worldwide, fueling inspiration and innovation. Dr. Jim Webber is a Chief Scientist at Neo4j, where he leads the research group, working on a variety of database topics including query languages and runtimes, temporality, streaming, scale, and fault-tolerance. He is also a Visiting Professor at Newcastle University, where he worked on fault-tolerant distributed systems at their startup Arjuna. He continued this work with Thoughtworks to enable various clients. He has co-authored several books on graph technology, which include Graph Databases (1st and 2nd editions), Building Knowledge Graphs, and REST in Practice for O'Reilly. Along with Graph Databases for Dummies for Wiley and Developing Enterprise Web Services - An Architect's Guide (Prentice-Hall).