cs.SEOct 20, 2026

RAG-NIMBF: A Non-Invasive, Modular Benchmarking Framework for Automated RAG Configuration Analysis

Authors: Niclas Hart, Nicolas Weeger

Organizations: Ansbach University of Applied Sciences

Abstract

Retrieval-Augmented Generation (RAG) has become the dominant paradigm for grounding the outputs of large language models (LLM) in external knowledge. However, practitioners are faced with a vast configuration space comprising chunking, embedding, retrieval, reranking, prompting and generation models, and there is limited guidance on how these components interact. We present RAG-NIMBF, a modular benchmarking framework that attaches to existing RAG pipelines as a non-invasive evaluation layer. It evaluates the configuration space through controlled ablation with end-to-end experiment tracking. The evaluation combines LLM-based answer quality scores, retrieval correctness measures, and runtime indicators. This study validates the framework across multiple generation models on the SQuAD dataset. This process reveals non-obvious interactions and demonstrates how the experiments are tracked. The findings indicate that the retrieval balance of relevance and diversity substantially enhances the relevance and coverage of retrieved context in comparison to a conventional similarity search, with MMR raising nDCG@5 by +4 to +11 percentage points across the swept models. More detailed prompt instructions meaningfully increase how faithfully generated answers stick to the retrieved evidence, especially for capable and reasoning models (+10 to +13pp on Qwen3.6-27B, GPT-4o-mini and Qwen3.5-think, but negligible on the 20B generator). Overall, RAG-NIMBF transforms the configuration space of RAG into reproducible, comparable experiments. By attaching to existing production pipelines in a non-invasive way, it enables practitioners to systematically evaluate and improve deployed systems without disrupting existing workflows. This replaces ad hoc choices with evidence-based decisions.

Figures & tables

Explore similar work

CardsList
  1. LIT-RAGBench: Benchmarking Generator Capabilities of Large Language Models in Retrieval-Augmented Generation

    Mar 6, 2026Koki Itai, Shunichi Hasegawa, Yuta Yamamoto +2RAG EvaluationLLM Evaluation

  2. Retrieval Augmented Generation Compositionality

    Oct 21, 2026Ido Levy, Segev Shlomov, Leshem ChoshenRetrieval-Augmented GenerationRAG Evaluation

  3. RAG-Stack: Co-Optimizing RAG Serving Performance and Quality

    Aug 4, 2026Haiqiang Zhang, Yuanqing Lei, Wanting Li +2Retrieval-Augmented GenerationLLM Serving