Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building Neo4j-Powered Applications with LLMs
  • Table Of Contents Toc
Building Neo4j-Powered Applications with LLMs

Building Neo4j-Powered Applications with LLMs

By : Ravindranatha Anthapu, Siddhant Agarwal
close
close
Building Neo4j-Powered Applications with LLMs

Building Neo4j-Powered Applications with LLMs

By: Ravindranatha Anthapu, Siddhant Agarwal

Overview of this book

Embark 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.
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Part: 1 Introducing RAG and Knowledge Graphs for LLM Grounding
5
Part 2: Integrating Haystack with Neo4j: A Practical Guide to Building AI-Powered Search
9
Part 3: Building an Intelligent Recommendation System with Neo4j, Spring AI, and LangChain4j
14
Part 4: Deploying Your GenAI Application in the Cloud
18
Other Books You May Enjoy
19
Index

Containerizing the application with Docker

Before deploying your Haystack chatbot to Google Cloud Run, the application must be packaged into a Docker container. Containerization allows you to bundle your code, dependencies, and environment into a single, portable unit that runs consistently across different systems—including the cloud.

In this section, you will create a Dockerfile, which defines the steps required to build a Docker image of your chatbot. This image will then be deployed to Cloud Run as a serverless web service.

Here is the Dockerfile used to containerize your Haystack chatbot:

FROM python:3.11
EXPOSE 8080
WORKDIR /app
COPY . ./
RUN pip install -r requirements.txt
CMD ["python", "app.py"]

Let us break down what each line does:

  • FROM python:3.11: This sets the base image to Python 3.11, which includes everything needed to run Python applications.
  • EXPOSE 8080: Cloud Run expects the application to listen on port...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building Neo4j-Powered Applications with LLMs
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon