FeB4RAG: Evaluating Federated Search in the Context of Retrieval Augmented Generation

Shuai Wang, Ekaterina Khramtsova, Shengyao Zhuang, Guido ZucconarXiv 2024

TL;DR

FeB4RAG is a novel benchmark dataset designed to evaluate federated search—the process of querying multiple scattered information sources—specifically within Retrieval-Augmented Generation (RAG) architectures. By transforming 16 diverse sub-collections from the popular BEIR benchmark into a unified federated environment with 790 conversational queries, it provides a modern testing ground for resource selection and result merging. The authors demonstrate that integrating smart federated search into RAG pipelines drastically improves answer quality while reducing computational noise compared to naive approaches.

What Problem Does This Paper Address?

When building production-ready RAG systems or LLM chatbots for large organizations, developers quickly run into the challenge of information scattering. Vital data rarely sits in a single, pristine vector database; instead, it is distributed across internal wikis, email servers, HR databases, and shared cloud drives.

To handle this, a RAG pipeline must perform federated search:

  1. Resource Selection: Decide which specific databases or search engines are relevant to a user's query.
  2. Result Merging: Aggregate and rank the hits returned from multiple independent sources into a single coherent list for the LLM.

Unfortunately, existing federated search datasets (like the classic TREC FedWeb tracks) are over a decade old. They rely on dead web search APIs, feature short keyword queries rather than conversational questions, and predate modern dense retrievers and LLMs. Without a modern benchmark, developers often resort to naive strategies—like round-robin merging across every single available database—which introduces irrelevant noise, increases LLM hallucinations, and inflates API costs and latency. FeB4RAG bridges this gap.

Fig. 1. Architecture of Federated Search within RAG.

Methods

The authors constructed the FeB4RAG dataset using a highly reproducible, three-step pipeline:

  • Simulating Heterogeneous Search Engines: The authors selected 16 distinct datasets from the BEIR benchmark. To mimic a realistic enterprise environment where different repositories use different search technologies, they paired each dataset with a tailored, state-of-the-art dense retriever (such as e5-large, gte-base, or UAE-Large-V1).
  • Conversational Query Generation: Because many source datasets contain raw keywords or paper titles unsuitable for a chatbot, the authors used GPT-4 to rewrite them into natural, conversational information requests. They used a multi-step looping prompt strategy to ensure a diverse range of linguistic expressions.
  • Cost-Effective LLM Relevance Labeling: Labeling millions of document-query pairs via humans or proprietary APIs (like GPT-4) is prohibitively expensive. Instead, the authors created an ensemble of two high-performing open-source LLMs (SOLAR-10.7B and LogoS-13B) to judge document relevance on a 4-level scale. They validated this approach by showing that the ensemble's agreement with human ground truth (Cohen's Kappa = 0.57) matches typical human-to-human annotation agreement.
Table 2. For datasets that only contained queries deemed unsuitable of typical RAG pipelines applications, we created prompts for an LLM to generate queries from one of the queries of the dataset. The table reports the prompt used for each of the affected datasets.

Datasets

The primary contribution is the FeB4RAG dataset itself, which is publicly available.

  • Source Material: Built on top of 16 sub-collections from the BEIR benchmark (including MS MARCO, TREC-COVID, HotpotQA, and FEVER).
  • Scale: Contains 790 conversational information requests evaluated against a total corpus size of 36.9 million documents.
  • Diversity: Spans 8 distinct retrieval tasks and 8 verticals (Biomedical, Finance, Wiki, News, Scientific, Social, etc.).
Table 1. Overview of FeB4RAG with respect to each BEIR dataset. #Req refers to the number of request devised from each BEIR dataset; LLM Req? to whether an LLM was needed to devise requests; Size to the number of documents in the dataset. The abbreviation Ret. stands for Retrieve.

Key Insights and Ideas

  • The Naive RAG Penalty: Current open-source RAG frameworks (like LangChain or LlamaIndex) often default to querying all connected data silos simultaneously. The paper highlights that this lack of resource selection forces the generation LLM to sift through irrelevant documents, directly degrading answer quality.
  • Open LLMs as Reliable Judges: A major takeaway for dataset creators is that smaller, open-source instruction-tuned LLMs (10B–13B parameters) can be successfully ensembled to generate high-quality relevance judgments, bypassing the need for expensive proprietary models.
  • Balanced Verticals for Fairer Evaluation: Unlike older web-centric datasets where one or two domains dominated, FeB4RAG offers a balanced distribution of resource importance across different verticals, preventing evaluation bias toward any single domain.

Key Results

To prove the utility of the dataset, the authors simulated two RAG setups: a Naive-federated system (round-robin across all 16 sources) and a Best-federated system (optimal resource selection and result merging based on FeB4RAG labels).

A pairwise human evaluation of the generated answers revealed that:

  • The Best-federated system was overwhelmingly preferred by human evaluators.
  • The smart federated approach showed massive quantitative improvements in Coverage (comprehensiveness of the answer) and Correctness (factual accuracy), proving that filtering out irrelevant search engines directly prevents LLM hallucinations.

Limitations and Future Work

  • Retrieval Model Constraints: Due to computational budget constraints, the simulated search engines were restricted to dense retrievers under 6 billion parameters, omitting larger proprietary embedding APIs or traditional sparse retrievers (like BM25).
  • Depth of Judgments: Relevance judgments were gathered only for the top-10 results from each engine.
  • Future Directions: The authors plan to expand the dataset with more user requests, integrate newer embedding models as they emerge, and explore alternative RAG-specific evaluation metrics that look beyond traditional Information Retrieval metrics like nDCG.

Summary updated

BibTeX
@misc{wang2024feb,
  author = {Shuai Wang and Ekaterina Khramtsova and Shengyao Zhuang and Guido Zuccon},
  title = {{FeB4RAG: Evaluating Federated Search in the Context of Retrieval Augmented Generation}},
  year = {2024},
  eprint = {2402.11891},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.11891},
}

Loading related content...

Figure