28
Advanced RAG
In Chapter 26, we covered the basics of the RAG pattern, a simple process where a user’s query triggers a search in an external knowledge base. The information that’s retrieved is then directly appended to the query, and this augmented prompt is passed to the LLM to generate a response, allowing it to access external data without complex processing.
Now, in this chapter, we’ll move beyond these basic RAG methods and explore more sophisticated techniques designed to significantly enhance LLM performance across a wide range of tasks.
By the end of this chapter, you’ll be equipped with the knowledge to implement these advanced RAG strategies, enabling your LLM applications to achieve greater accuracy and efficiency.
In this chapter, ...
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.
Read now
Unlock full access