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 RAG-Driven Generative AI
  • Table Of Contents Toc
  • Feedback & Rating feedback
RAG-Driven Generative AI

RAG-Driven Generative AI

By : Denis Rothman
4.3 (18)
close
close
RAG-Driven Generative AI

RAG-Driven Generative AI

4.3 (18)
By: Denis Rothman

Overview of this book

RAG-Driven Generative AI provides a roadmap for building effective LLM, computer vision, and generative AI systems that balance performance and costs. This book offers a detailed exploration of RAG and how to design, manage, and control multimodal AI pipelines. By connecting outputs to traceable source documents, RAG improves output accuracy and contextual relevance, offering a dynamic approach to managing large volumes of information. This AI book shows you how to build a RAG framework, providing practical knowledge on vector stores, chunking, indexing, and ranking. You’ll discover techniques to optimize your project’s performance and better understand your data, including using adaptive RAG and human feedback to refine retrieval accuracy, balancing RAG with fine-tuning, implementing dynamic RAG to enhance real-time decision-making, and visualizing complex data with knowledge graphs. You’ll be exposed to a hands-on blend of frameworks like LlamaIndex and Deep Lake, vector databases such as Pinecone and Chroma, and models from Hugging Face and OpenAI. By the end of this book, you will have acquired the skills to implement intelligent solutions, keeping you competitive in fields from production to customer service across any project.
Table of Contents (14 chapters)
close
close
11
Other Books You May Enjoy
12
Index
Appendix

Pipeline 3: Knowledge graph index-based RAG

It’s time to create a knowledge graph index-based RAG pipeline and interact with it. As illustrated in the following figure, we have a lot of work to do:

Figure 7.5: Building knowledge graph-index RAG from scratch

In this section, we will:

  • Generate the knowledge graph index
  • Display the graph
  • Define the user prompt
  • Define the hyperparameters of LlamaIndex’s in-built LLM model
  • Install the similarity score packages
  • Define the similarity score functions
  • Run a sample similarity comparison between the similarity functions
  • Re-rank the output vectors of an LLM response
  • Run evaluation samples and apply metrics and human feedback scores
  • Run metric calculations and display them

Let’s go through these steps and begin by generating the knowledge graph index.

Generating the knowledge graph index

We will create a knowledge graph index from...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

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