RAGSmith: A Framework for Finding the Optimal Composition of Retrieval-Augmented Generation Methods Across Datasets
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Retrieval-Augmented Generation (RAG) quality depends on many interacting choices across retrieval, ranking, augmentation, prompting, and generation, so optimizing modules in isolation is brittle. We introduce RAGSmith, a modular framework that treats RAG design as an end-to-end architecture search over nine technique families and 46,080 feasible pipeline configurations. A genetic search optimizes a scalar objective that jointly aggregates retrieval metrics (recall@k, mAP, nDCG, MRR) and generation metrics (LLM-Judge and semantic similarity). We evaluate on six Wikipedia-derived domains (Mathematics, Law, Finance, Medicine, Defense Industry, Computer Science), each with 100 questions spanning factual, interpretation, and long-answer types. RAGSmith finds configurations that consistently outperform naive RAG baseline by +3.8% on average (range +1.2% to +6.9% across domains), with gains up to +12.5% in retrieval and +7.5% in generation. The search typically explores ≈ 0.2% of the space (~ 100 candidates) and discovers a robust backbone -- vector retrieval plus post-generation reflection/revision -- augmented by domain-dependent choices in expansion, reranking, augmentation, and prompt reordering; passage compression is never selected. Improvement magnitude correlates with question type, with larger gains on factual/long-answer mixes than interpretation-heavy sets. These results provide practical, domain-aware guidance for assembling effective RAG systems and demonstrate the utility of evolutionary search for full-pipeline optimization.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 60 of its 89 references that are in the map. First posted on arXiv 3 Nov 2025.
Builds on
60 of 89 references.
Closest ancestors · 5
Same direction, newest first
- 2024AutoRAG: Automated Framework for optimization of Retrieval Augmented Generation Pipeline28 Oct
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach23 Jul
- 2024RAG-Fusion: a New Take on Retrieval-Augmented Generation31 Jan
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generation26 Sep
Other references · 55
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
38 more
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
- 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 1,009
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 923
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2023In-Context Retrieval-Augmented Language Modelscited by 702
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 692
- 2019Passage Re-ranking with BERTcited by 645
- 2022Precise Zero-Shot Dense Retrieval without Relevance Labelscited by 517
- 2023Active Retrieval Augmented Generationcited by 516
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
- 2022Teaching language models to support answers with verified quotescited by 292
- 2021Measuring Attribution in Natural Language Generation Modelscited by 256
- 2019Document Expansion by Query Predictioncited by 231
- 2020Sparse, Dense, and Attentional Representations for Text Retrievalcited by 214
- 2023Query Rewriting for Retrieval-Augmented Large Language Modelscited by 213
- 2022LinkBERT: Pretraining Language Models with Document Linkscited by 211
- 2024Retrieval-Augmented Generation with Graphs (GraphRAG)cited by 172
- 2023Take a Step Back: Evoking Reasoning via Abstraction in Large Language Modelscited by 159
- 2023Query2doc: Query Expansion with Large Language Modelscited by 149
- 2024RQ-RAG: Learning to Refine Queries for Retrieval Augmented Generationcited by 147
- 2022Dense Text Retrieval based on Pretrained Language Models: A Surveycited by 136
- 2020Break It Down: A Question Understanding Benchmarkcited by 131
- 2020XOR QA: Cross-lingual Open-Retrieval Question Answeringcited by 121
- 2019Multi-hop Reading Comprehension through Question Decomposition and Rescoringcited by 119
- 2021Mr. TyDi: A Multi-lingual Benchmark for Dense Retrievalcited by 119
- 2019JEC-QA: A Legal-Domain Question Answering Datasetcited by 116
- 2021Pyserini: An Easy-to-Use Python Toolkit to Support Replicable IR Research with Sparse and Dense Representationscited by 60
- 2024Attribute First, then Generate: Locally-attributable Grounded Text Generationcited by 54
- 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
- 2021Domain-matched Pre-training Tasks for Dense Retrievalcited by 53
- 2020Query Resolution for Conversational Search with Limited Supervisioncited by 52
50 most cited of 55 All 55 (JSON)
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026A Systematic Investigation of Document Chunking Strategies and Embedding Sensitivitycited by 3
- 2026RAGTurk: Best Practices for Retrieval Augmented Generation in Turkishcited by 1
- 2026CAFE: A Compound-AI Factorial Evaluation Frameworkcited by 1
- 2026AutoIndex: Learning Representation Programs for Retrievalcited by 0
- 2026Agentic AutoRAG: RAG Pipeline Optimization through Reasoning-Driven Agentscited by 0
- 2026Agentic AutoRAG: RAG Pipeline Optimization through Reasoning-Driven Agents6 Oct 2026
- 2026AutoIndex: Learning Representation Programs for Retrieval21 Jul 2026
- 2026CAFE: A Compound-AI Factorial Evaluation Framework11 Jul 2026
- 2026A Systematic Investigation of Document Chunking Strategies and Embedding Sensitivity7 Mar 2026
- 2026RAGTurk: Best Practices for Retrieval Augmented Generation in Turkish3 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025mmRAG: A Modular Benchmark for Retrieval-Augmented Generation over Text, Tables, and Knowledge Graphs
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning
- 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generation
- 2025Retrieval-Augmented Generation: A Comprehensive Survey of Architectures, Enhancements, and Robustness Frontiers
- 2025A Systematic Review of Key Retrieval-Augmented Generation (RAG) Systems: Progress, Gaps, and Future Directions
- 2024A Comprehensive Survey of Retrieval-Augmented Generation (RAG): Evolution, Current Landscape and Future Directions
- 2025Frustratingly Simple Retrieval Improves Challenging, Reasoning-Intensive Benchmarks
- 2025RAGTrace: Understanding and Refining Retrieval-Generation Dynamics in Retrieval-Augmented Generation