Skip to Content
Generative AI in Action
book

Generative AI in Action

by Amit Bahree
November 2024
Intermediate to advanced
464 pages
14h 38m
English
Manning Publications
Content preview from Generative AI in Action

7 Retrieval-augmented generation: The secret weapon

This chapter covers

  • Concepts of retrieval-augmented generation
  • Benefits of the RAG architecture in conjunction with large language models
  • Understanding the role of vector databases and indexes in implementing RAG
  • Basics of vector search and understanding the distance functions
  • Challenges in RAG implementation and potential solutions
  • Different methods of chunking text for RAG

As we have seen, large language models (LLMs) are very powerful and help us achieve things that were not possible until very recently. Interestingly, LLMs capture the world’s knowledge and are available to anyone at the end of an API, anywhere in the world.

However, LLMs have a knowledge constraint: their understanding ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Generative AI with LangChain

Generative AI with LangChain

Ben Auffarth
Introduction to Generative AI

Introduction to Generative AI

Numa Dhamani, Maggie Engler

Publisher Resources

ISBN: 9781633436947Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link