A Simple Guide to Retrieval Augmented Generation
eBook - ePub

A Simple Guide to Retrieval Augmented Generation

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

A Simple Guide to Retrieval Augmented Generation

About this book

Everything you need to know about Retrieval Augmented Generation in one human-friendly guide.

Augmented Generation—or RAG—enhances an LLM’s available data by adding context from an external knowledge base, so it can answer accurately about proprietary content, recent information, and even live conversations. RAG is powerful, and with A Simple Guide to Retrieval Augmented Generation, it’s also easy to understand and implement!

In A Simple Guide to Retrieval Augmented Generation you’ll learn:

• The components of a RAG system
• How to create a RAG knowledge base
• The indexing and generation pipeline
• Evaluating a RAG system
• Advanced RAG strategies
• RAG tools, technologies, and frameworks

A Simple Guide to Retrieval Augmented Generation gives an easy, yet comprehensive, introduction to RAG for AI beginners. You’ll go from basic RAG that uses indexing and generation pipelines, to modular RAG and multimodal data from images, spreadsheets, and more.

About the Technology

If you want to use a large language model to answer questions about your specific business, you’re out of luck. The LLM probably knows nothing about it and may even make up a response. Retrieval Augmented Generation is an approach that solves this class of problems. The model first retrieves the most relevant pieces of information from your knowledge stores (search index, vector database, or a set of documents) and then generates its answer using the user’s prompt and the retrieved material as context. This avoids hallucination and lets you decide what it says.

About the Book

A Simple Guide to Retrieval Augmented Generation is a plain-English guide to RAG. The book is easy to follow and packed with realistic Python code examples. It takes you concept-by-concept from your first steps with RAG to advanced approaches, exploring how tools like LangChain and Python libraries make RAG easy. And to make sure you really understand how RAG works, you’ll build a complete system yourself—even if you’re new to AI!

What’s Inside

• RAG components and applications
• Evaluating RAG systems
• Tools and frameworks for implementing RAG

About the Readers

For data scientists, engineers, and technology managers—no prior LLM experience required. Examples use simple, well-annotated Python code.

About the Author

Abhinav Kimothi is a seasoned data and AI professional. He has spent over 15 years in consulting and leadership roles in data science, machine learning and AI, and currently works as a Director of Data Science at Sigmoid.

Table of Contents

Part 1
1 LLMs and the need for RAG
2 RAG systems and their design
Part 2
3 Indexing pipeline: Creating a knowledge base for RAG
4 Generation pipeline: Generating contextual LLM responses
5 RAG evaluation: Accuracy, relevance, and faithfulness
Part 3
6 Progression of RAG systems: Naïve, advanced, and modular RAG
7 Evolving RAGOps stack
Part 4
8 Graph, multimodal, agentic, and other RAG variants
9 RAG development framework and further exploration

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access A Simple Guide to Retrieval Augmented Generation by Abhinav Kimothi in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. A Simple Guide to Retrieval Augmented Generation
  2. copyright
  3. contents
  4. dedication
  5. preface
  6. acknowledgments
  7. about this book
  8. about the author
  9. about the cover illustration
  10. Part 1 Foundations
  11. 1 LLMs and the need for RAG
  12. 2 RAG systems and their design
  13. Part 2 Creating RAG systems
  14. 3 Indexing pipeline: Creating a knowledge base for RAG
  15. 4 Generation pipeline: Generating contextual LLM responses
  16. 5 RAG evaluation: Accuracy, relevance, and faithfulness
  17. Part 3 RAG in production
  18. 6 Progression of RAG systems: Naïve, advanced, and modular RAG
  19. 7 Evolving RAGOps stack
  20. Part 4 Additional considerations
  21. 8 Graph, multimodal, agentic, and other RAG variants
  22. 9 RAG development framework and further exploration