Everything you need to know about Retrieval Augmented Generation in one human-friendly guide.
Generative AI models struggle when you ask them about facts not covered in their training data. Retrieval Augmented Generationor RAGenhances an LLMs 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, its also easy to understand and implement!
In A Simple Guide to Retrieval Augmented Generation youll 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 shows you how to enhance an LLM with relevant data, increasing factual accuracy and reducing hallucination. Your customer service chatbots can quote your companys policies, your teaching tools can draw directly from your syllabus, and your work assistants can access your organizations minutes, notes, and files.
Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.
About the book
A Simple Guide to Retrieval Augmented Generation makes RAG simple and easy, even if youve never worked with LLMs before. This book goes deeper than any blog or YouTube tutorial, covering fundamental RAG concepts that are essential for building LLM-based applications. Youll be introduced to the idea of RAG and be guided from the basics on to advanced and modularized RAG approachesplus hands-on code snippets leveraging LangChain, OpenAI, Transformers, and other Python libraries.
Chapter-by-chapter, youll build a complete RAG enabled system and evaluate its effectiveness. Youll compare and combine accuracy-improving approaches for different components of RAG, and see what the future holds for RAG. Youll also get a sense of the different tools and technologies available to implement RAG. By the time youre done reading, youll be ready to start building RAG enabled systems.
About the reader
For data scientists, machine learning and software engineers, and technology managers who wish to build LLM-based applications. Examples in Pythonno experience with LLMs necessary.
About the author
Abhinav Kimothi is an entrepreneur and Vice President of Artificial Intelligence at Yarnit. He has spent over 15 years consulting and leadership roles in data science, machine learning and AI.