Blended RAG: Improving RAG (Retriever-Augmented Generation) Accuracy with Semantic Search and Hybrid Query-Based Retrievers

Kunal Sawarkar, Abhilasha Mangal, Shivam Raj Solanki
3/22/2024
cs.IRcs.AIcs.CL

No official code found. Best implementation: ibm-self-serve-assets/Blended-RAG (89 stars, last commit 2025-05-15).

Abstract

Retrieval-Augmented Generation (RAG) is a prevalent approach to infuse a private knowledge base of documents with Large Language Models (LLM) to build Generative Q\&A (Question-Answering) systems. However, RAG accuracy becomes increasingly challenging as the corpus of documents scales up, with Retrievers playing an outsized role in the overall RAG accuracy by extracting the most relevant document from the corpus to provide context to the LLM. In this paper, we propose the 'Blended RAG' method of leveraging semantic search techniques, such as Dense Vector indexes and Sparse Encoder indexes, blended with hybrid query strategies. Our study achieves better retrieval results and sets new benchmarks for IR (Information Retrieval) datasets like NQ and TREC-COVID datasets. We further extend such a 'Blended Retriever' to the RAG system to demonstrate far superior results on Generative Q\&A datasets like SQUAD, even surpassing fine-tuning performance.

View on arXivView PDF

Code Implementations(1)

Blended RAG: Improving RAG (Retriever-Augmented Generation) Accuracy with Semantic Search and Hybrid Query-Based Retrievers

899Python, Jupyter NotebookMar 13, 20241 years agoNOASSERTION
aihybrid-queryllmragsemantic-search

Cite this paper

@article{sawarkar2024blended,
  title  = {Blended RAG: Improving RAG (Retriever-Augmented Generation) Accuracy with Semantic Search and Hybrid Query-Based Retrievers},
  author = {Kunal Sawarkar and Abhilasha Mangal and Shivam Raj Solanki},
  year   = {2024},
  eprint = {2404.07220},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07220v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.07220.svg)](https://codeofpaper.com/paper/2404.07220)

Discussion