Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Building Neo4j-Powered Applications with LLMs

You're reading from   Building Neo4j-Powered Applications with LLMs Create LLM-driven search and recommendations applications with Haystack, LangChain4j, and Spring AI

Arrow left icon
Product type Paperback
Published in Jun 2025
Publisher Packt
ISBN-13 9781836206231
Length 312 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Ravindranatha Anthapu Ravindranatha Anthapu
Author Profile Icon Ravindranatha Anthapu
Ravindranatha Anthapu
Siddhant Agarwal Siddhant Agarwal
Author Profile Icon Siddhant Agarwal
Siddhant Agarwal
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Part: 1 Introducing RAG and Knowledge Graphs for LLM Grounding 2. Introducing LLMs, RAGs, and Neo4j Knowledge Graphs FREE CHAPTER 3. Demystifying RAG 4. Building a Foundational Understanding of Knowledge Graph for Intelligent Applications 5. Part 2: Integrating Haystack with Neo4j: A Practical Guide to Building AI-Powered Search 6. Building Your Neo4j Graph with Movies Dataset 7. Implementing Powerful Search Functionalities with Neo4j and Haystack 8. Exploring Advanced Knowledge Graph Capabilities with Neo4j 9. Part 3: Building an Intelligent Recommendation System with Neo4j, Spring AI, and LangChain4j 10. Introducing the Neo4j Spring AI and LangChain4j Frameworks for Building Recommendation Systems 11. Constructing a Recommendation Graph with H&M Personalization Dataset 12. Integrating LangChain4j and Spring AI with Neo4j 13. Creating an Intelligent Recommendation System 14. Part 4: Deploying Your GenAI Application in the Cloud 15. Choosing the Right Cloud Platform for GenAI Applications 16. Deploying Your Application on the Google Cloud 17. Epilogue 18. Other Books You May Enjoy
19. Index

To get the most out of this book

To fully benefit from this book, you should have a basic understanding of databases, familiarity with Neo4j and its Cypher query language, and a working knowledge of LLMs and GenAI concepts. Prior experience with Python and Java will also be helpful for implementing the code examples and working with frameworks such as Haystack, as well as LangChain4j and Spring AI for Java-based applications.

You’ll be guided through building and deploying intelligent applications, so you may need to create free accounts on platforms such as Neo4j AuraDB, Google Cloud Platform (GCP), and OpenAI (or equivalent embedding providers). While no special hardware is required, a machine with at least 8 GB RAM and internet access is recommended for smooth development and testing.

Download the example code files and database dump

The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/Building-Neo4j-Powered-Applications-with-LLMs. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing. Check them out!

You can download the database dump from this link https://packt-neo4j-powered-applications.s3.us-east-1.amazonaws.com/Building+Neo4j-Powered+Applications+with+LLMs+Database+Dump+files.zip.

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781836206231.

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and X (Twitter) handles. For example: “Install the Hugging Face Transformers library for handling model-related functionalities: pip install transformers.”

A block of code is set as follows:

documents = [
    "The IPL 2024 was a thrilling season with unexpected results.",
.....
    "Dense Passage Retrieval (') is a state-of-the-art technique for information retrieval."
]

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

tokenizer = T5Tokenizer.from_pretrained('t5-small', legacy=False)
model = T5ForConditionalGeneration.from_pretrained('t5-small')

Any command-line input or output is written as follows:

pip install numpy==1.26.4 neo4j transformers torch faiss-cpu datasets

Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: “Artificial Intelligence (AI) is evolving beyond niche and specialized fields to become more accessible and able to assist with day-to-day tasks.”

Warnings or important notes appear like this.

Tips and tricks appear like this.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime