Advanced RAG 06 - RAG Fusion
Sam Witteveen Sam Witteveen
66.3K subscribers
20,728 views
577

 Published On Nov 19, 2023

Colab: https://drp.li/PZG2t
Blog Post: https://towardsdatascience.com/forget...
Original Code: https://github.com/Raudaschl/rag-fusion

The video introduces the concept of RAG fusion, which is a technique used to improve the effectiveness of RAG (Retrieval-Augmented Generation) models. RAG fusion combines multiple search queries generated from a single user input and ranks the results using reciprocal rank fusion. The script also explores the process of implementing RAG fusion using
LangChain and gives examples of how it can be applied in various scenarios.

00:00 Intro
00:14 RAG Overview
00:47 RAG Fusion Blog Post
01:34 Rag Fusion Diagram
03:27 Code Time
03:34 Reproducing RAG Fusion with LangChain
03:53 Download Data and Utils
06:16 Setup Retriever
08:40 Create the Query Chain
09:12 Reciprocal Rank Fusion
11:15 Make the Final Chain

show more

Share/Embed