RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculture
On the map: Retrieval-augmented generation → Time series and agricultural RAG
Abstract (arXiv)
There are two common ways in which developers are incorporating proprietary and domain-specific data when building applications of Large Language Models (LLMs): Retrieval-Augmented Generation (RAG) and Fine-Tuning. RAG augments the prompt with the external data, while fine-Tuning incorporates the additional knowledge into the model itself. However, the pros and cons of both approaches are not well understood. In this paper, we propose a pipeline for fine-tuning and RAG, and present the tradeoffs of both for multiple popular LLMs, including Llama2-13B, GPT-3.5, and GPT-4. Our pipeline consists of multiple stages, including extracting information from PDFs, generating questions and answers, using them for fine-tuning, and leveraging GPT-4 for evaluating the results. We propose metrics to assess the performance of different stages of the RAG and fine-Tuning pipeline. We conduct an in-depth study on an agricultural dataset. Agriculture as an industry has not seen much penetration of AI, and we study a potentially disruptive application - what if we could provide location-specific insights to a farmer? Our results show the effectiveness of our dataset generation pipeline in capturing geographic-specific knowledge, and the quantitative and qualitative benefits of RAG and fine-tuning. We see an accuracy increase of over 6 p.p. when fine-tuning the model and this is cumulative with RAG, which increases accuracy by 5 p.p. further. In one particular experiment, we also demonstrate that the fine-tuned model leverages information from across geographies to answer specific questions, increasing answer similarity from 47% to 72%. Overall, the results point to how systems built using LLMs can be adapted to respond and incorporate knowledge across a dimension that is critical for a specific industry, paving the way for further applications of LLMs in other industrial domains.
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). Placed in Time series and agricultural RAG, one of 15 directions in Retrieval-augmented generation. Builds on 24 of its 53 references that are in the map. First posted on arXiv 16 Jan 2024.
Builds on
24 of 53 references.
References · 24
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,259
12 more
- 2017Mixed Precision Trainingcited by 1,135
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2023Capabilities of GPT-4 on Medical Challenge Problemscited by 630
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 351
- 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 150
- 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 110
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2021Seeing Through Clouds in Satellite Imagescited by 13
- 2023GPT-4 as an Agronomist Assistant? Answering Agriculture Exams Using Large Language Modelscited by 12
Built on by
Citing papers per year: 2024: 45; 2025: 26; 2026: 9.
80 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024Evaluation of Retrieval-Augmented Generation: A Surveycited by 146
- 2024InstructRAG: Instructing Retrieval-Augmented Generation via Self-Synthesized Rationalescited by 100
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learningcited by 63
- 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 49
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024Telco-RAG: Navigating the Challenges of Retrieval-Augmented Language Models for Telecommunicationscited by 26
- 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
- 2024T-RAG: Lessons from the LLM Trenchescited by 23
- 2024A Survey on Recent Advances in Conversational Data Generationcited by 23
- 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Modelscited by 23
38 more
- 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 22
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
- 2024Compressing Long Context for Enhancing RAG with AMR-based Concept Distillationcited by 16
- 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptationcited by 16
- 2024Do Large Language Models Need a Content Delivery Network?cited by 15
- 2024Search Engines in an AI Era: The False Promise of Factual and Verifiable Source-Cited Responsescited by 15
- 2025MRAMG-Bench: A Comprehensive Benchmark for Advancing Multimodal Retrieval-Augmented Multimodal Generationcited by 15
- 2025AgMMU: A Comprehensive Agricultural Multimodal Understanding Benchmarkcited by 15
- 2024MeMemo: On-device Retrieval Augmentation for Private and Personalized Text Generationcited by 12
- 2025Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systemscited by 11
- 2025DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidencecited by 10
- 2024ShizishanGPT: An Agricultural Large Language Model Integrating Tools and Resourcescited by 9
- 2024Beyond Memorization: The Challenge of Random Memory Access in Language Modelscited by 8
- 2024A Study on the Implementation Method of an Agent-Based Advanced RAG System Using Graphcited by 8
- 2024DeepNote: Note-Centric Deep Retrieval-Augmented Generationcited by 8
- 2025The Multi-Round Diagnostic RAG Framework for Emulating Clinical Reasoningcited by 8
- 2024Automated Review Generation Method Based on Large Language Modelscited by 7
- 2024RAGProbe: An Automated Approach for Evaluating RAG Applicationscited by 7
- 2024RAG4ITOps: A Supervised Fine-Tunable and Comprehensive RAG Framework for IT Operations and Maintenancecited by 7
- 2025Savaal: Scalable Concept-Driven Question Generation to Enhance Human Learningcited by 7
- 2024Evaluation of Geographical Distortions in Language Modelscited by 6
- 2024Meta Knowledge for Retrieval Augmented Large Language Modelscited by 6
- 2025LLM Web Dynamics: Tracing Model Collapse in a Network of LLMscited by 6
- 2025PowerChain: A Verifiable Agentic AI System for Automating Distribution Grid Analysescited by 6
- 2024Small Language Models for Application Interactions: A Case Studycited by 5
- 2024RAG Foundry: A Framework for Enhancing LLMs for Retrieval Augmented Generationcited by 5
- 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
- 2025Retrieval is Not Enough: Enhancing RAG Reasoning through Test-Time Critique and Optimizationcited by 5
- 2024Dynamic Q&A of Clinical Documents with Large Language Modelscited by 4
- 2024GPT vs RETRO: Exploring the Intersection of Retrieval and Parameter-Efficient Fine-Tuningcited by 4
- 2025Optimizing Retrieval Augmented Generation for Object Constraint Languagecited by 4
- 2025AgriRegion: Region-Aware Retrieval for High-Fidelity Agricultural Advicecited by 4
- 2024A + B: A General Generator-Reader Framework for Optimizing LLMs to Unleash Synergy Potentialcited by 3
- 2024QAEncoder: Towards Aligned Representation Learning in Question Answering Systemscited by 3
- 2024Synthetic Knowledge Ingestion: Towards Knowledge Refinement and Injection for Enhancing Large Language Modelscited by 3
- 2025A Practical Guide for Evaluating LLMs and LLM-Reliant Systemscited by 3
- 2025Enterprise AI Must Enforce Participant-Aware Access Controlcited by 3
- 2024Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuningcited by 2
50 most cited of 80 All 80 (JSON)
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning1 Oct 2026
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inference18 Aug 2026
- 2026LCAi: Life Cycle Assessment with big data fusion and retrieval-augmented generation-assisted interpretation25 Jun 2026
- 2026CultivAgents: Cultivating Relationship-Centered Multi-Agent Systems for Personalized Gardening22 May 2026
- 2026MASS-RAG: Multi-Agent Synthesis Retrieval-Augmented Generation20 Apr 2026
- 2026PREBA: Surgical Duration Prediction via PCA-Weighted Retrieval-Augmented LLMs and Bayesian Averaging Aggregation27 Feb 2026
- 2026RAPTOR-AI for Disaster OODA Loop: Hierarchical Multimodal RAG with Experience-Driven Agentic Decision-Making18 Jan 2026
- 2026Do Implicit Personalization and Explicit Styles Conflict? PsPLUG: A Lightweight Plug-in for Balancing Personalization and Style in Customized LLMs10 Jan 2026
- 2026CARD: Cluster-level Adaptation with Reward-guided Decoding for Personalized Text Generation9 Jan 2026
- 2025AgriRegion: Region-Aware Retrieval for High-Fidelity Agricultural Advice10 Dec 2025
- 2025CoEdge-RAG: Optimizing Hierarchical Scheduling for Retrieval-Augmented LLMs in Collaborative Edge Computing8 Nov 2025
- 2025From Personal to Collective: On the Role of Local and Global Memory in LLM Personalization28 Sep 2025
38 more
- 2025Enterprise AI Must Enforce Participant-Aware Access Control18 Sep 2025
- 2025Causal-Counterfactual RAG: The Integration of Causal-Counterfactual Reasoning into RAG17 Sep 2025
- 2025DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidence2 Sep 2025
- 2025PowerChain: A Verifiable Agentic AI System for Automating Distribution Grid Analyses23 Aug 2025
- 2025GridCodex: A RAG-Driven AI Framework for Power Grid Code Reasoning and Compliance18 Aug 2025
- 2025Comparing Knowledge Injection Methods for LLMs in a Low-Resource Regime8 Aug 2025
- 2025Leveraging Synthetic Data for Question Answering with Multilingual LLMs in the Agricultural Domain22 Jul 2025
- 2025GAIus: Combining Genai with Legal Clauses Retrieval for Knowledge-based Assistant2 Jul 2025
- 2025Knowledge Augmented Finetuning Matters in both RAG and Agent Based Dialog Systems28 Jun 2025
- 2025PDF Retrieval Augmented Question Answering22 Jun 2025
- 2025A Practical Guide for Evaluating LLMs and LLM-Reliant Systems16 Jun 2025
- 2025Building Models of Neurological Language6 Jun 2025
- 2025LLM Web Dynamics: Tracing Model Collapse in a Network of LLMs26 May 2025
- 2025Optimizing Retrieval Augmented Generation for Object Constraint Language19 May 2025
- 2025Grounding Synthetic Data Evaluations of Language Models in Unsupervised Document Corpora13 May 2025
- 2025Document Retrieval Augmented Fine-Tuning (DRAFT) for safety-critical software assessments2 May 2025
- 2025Retrieval is Not Enough: Enhancing RAG Reasoning through Test-Time Critique and Optimization21 Apr 2025
- 2025AgMMU: A Comprehensive Agricultural Multimodal Understanding Benchmark14 Apr 2025
- 2025The Multi-Round Diagnostic RAG Framework for Emulating Clinical Reasoning10 Apr 2025
- 2025Beyond QA Pairs: Assessing Parameter-Efficient Fine-Tuning for Fact Embedding in LLMs3 Mar 2025
- 2025Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systems25 Feb 2025
- 2025Savaal: Scalable Concept-Driven Question Generation to Enhance Human Learning18 Feb 2025
- 2025MRAMG-Bench: A Comprehensive Benchmark for Advancing Multimodal Retrieval-Augmented Multimodal Generation6 Feb 2025
- 2024Efficient Knowledge Injection in LLMs via Self-Distillation19 Dec 2024
- 2024ALKAFI-LLAMA3: Fine-Tuning LLMs for Precise Legal Understanding in Palestine19 Dec 2024
- 2024Adaptations of AI models for querying the LandMatrix database in natural language17 Dec 2024
- 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptation13 Dec 2024
- 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Models12 Dec 2024
- 2024Knowledge Management for Automobile Failure Analysis Using Graph RAG29 Nov 2024
- 2024Multimodal large language model for wheat breeding: a new exploration of smart breeding20 Nov 2024
- 2024FMEA Builder: Expert Guided Text Generation for Equipment Maintenance7 Nov 2024
- 2024RAG4ITOps: A Supervised Fine-Tunable and Comprehensive RAG Framework for IT Operations and Maintenance21 Oct 2024
- 2024Search Engines in an AI Era: The False Promise of Factual and Verifiable Source-Cited Responses15 Oct 2024
- 2024Synthetic Knowledge Ingestion: Towards Knowledge Refinement and Injection for Enhancing Large Language Models12 Oct 2024
- 2024DeepNote: Note-Centric Deep Retrieval-Augmented Generation11 Oct 2024
- 2024QAEncoder: Towards Aligned Representation Learning in Question Answering Systems30 Sep 2024
- 2024RAGProbe: An Automated Approach for Evaluating RAG Applications24 Sep 2024
- 2024ShizishanGPT: An Agricultural Large Language Model Integrating Tools and Resources20 Sep 2024
50 newest of 80 All 80 (JSON)
- 2024Evaluation of Retrieval-Augmented Generation: A Surveycited by 146
- 2024InstructRAG: Instructing Retrieval-Augmented Generation via Self-Synthesized Rationalescited by 100
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 49
- 2024Telco-RAG: Navigating the Challenges of Retrieval-Augmented Language Models for Telecommunicationscited by 26
- 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Modelscited by 23
- 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
- 2024Compressing Long Context for Enhancing RAG with AMR-based Concept Distillationcited by 16
- 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptationcited by 16
- 2025MRAMG-Bench: A Comprehensive Benchmark for Advancing Multimodal Retrieval-Augmented Multimodal Generationcited by 15
- 2024MeMemo: On-device Retrieval Augmentation for Private and Personalized Text Generationcited by 12
- 2025Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systemscited by 11
12 most cited of 31 All 31 (JSON)
- 2026MASS-RAG: Multi-Agent Synthesis Retrieval-Augmented Generation20 Apr 2026
- 2026PREBA: Surgical Duration Prediction via PCA-Weighted Retrieval-Augmented LLMs and Bayesian Averaging Aggregation27 Feb 2026
- 2025AgriRegion: Region-Aware Retrieval for High-Fidelity Agricultural Advice10 Dec 2025
- 2025CoEdge-RAG: Optimizing Hierarchical Scheduling for Retrieval-Augmented LLMs in Collaborative Edge Computing8 Nov 2025
- 2025PDF Retrieval Augmented Question Answering22 Jun 2025
- 2025Optimizing Retrieval Augmented Generation for Object Constraint Language19 May 2025
- 2025Document Retrieval Augmented Fine-Tuning (DRAFT) for safety-critical software assessments2 May 2025
- 2025Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systems25 Feb 2025
- 2025MRAMG-Bench: A Comprehensive Benchmark for Advancing Multimodal Retrieval-Augmented Multimodal Generation6 Feb 2025
- 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptation13 Dec 2024
- 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Models12 Dec 2024
- 2024Knowledge Management for Automobile Failure Analysis Using Graph RAG29 Nov 2024
12 newest of 31 All 31 (JSON)
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2025DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidencecited by 10
- 2025PowerChain: A Verifiable Agentic AI System for Automating Distribution Grid Analysescited by 6
- 2025Knowledge Augmented Finetuning Matters in both RAG and Agent Based Dialog Systemscited by 0
- 2026RAPTOR-AI for Disaster OODA Loop: Hierarchical Multimodal RAG with Experience-Driven Agentic Decision-Makingcited by 0
- 2026RAPTOR-AI for Disaster OODA Loop: Hierarchical Multimodal RAG with Experience-Driven Agentic Decision-Making18 Jan 2026
- 2025DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidence2 Sep 2025
- 2025PowerChain: A Verifiable Agentic AI System for Automating Distribution Grid Analyses23 Aug 2025
- 2025Knowledge Augmented Finetuning Matters in both RAG and Agent Based Dialog Systems28 Jun 2025
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justifications24 Mar 2024
- 2025The Multi-Round Diagnostic RAG Framework for Emulating Clinical Reasoningcited by 8
- 2025Retrieval is Not Enough: Enhancing RAG Reasoning through Test-Time Critique and Optimizationcited by 5
- 2025Causal-Counterfactual RAG: The Integration of Causal-Counterfactual Reasoning into RAGcited by 2
- 2025GridCodex: A RAG-Driven AI Framework for Power Grid Code Reasoning and Compliancecited by 1
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoningcited by 0
- 2026Mapping the RAG Landscape: A Four Axis Taxonomy of Efficiency, Defense, Interactivity, and Reasoning1 Oct 2026
- 2025Causal-Counterfactual RAG: The Integration of Causal-Counterfactual Reasoning into RAG17 Sep 2025
- 2025GridCodex: A RAG-Driven AI Framework for Power Grid Code Reasoning and Compliance18 Aug 2025
- 2025Retrieval is Not Enough: Enhancing RAG Reasoning through Test-Time Critique and Optimization21 Apr 2025
- 2025The Multi-Round Diagnostic RAG Framework for Emulating Clinical Reasoning10 Apr 2025
- 2024Do Large Language Models Need a Content Delivery Network?cited by 15
- 2024Do Large Language Models Need a Content Delivery Network?16 Sep 2024
- 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learningcited by 63
- 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learning17 Feb 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
- 2024T-RAG: Lessons from the LLM Trenchescited by 23
- 2024A Survey on Recent Advances in Conversational Data Generationcited by 23
- 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 22
- 2024Search Engines in an AI Era: The False Promise of Factual and Verifiable Source-Cited Responsescited by 15
- 2024ShizishanGPT: An Agricultural Large Language Model Integrating Tools and Resourcescited by 9
- 2024Beyond Memorization: The Challenge of Random Memory Access in Language Modelscited by 8
- 2024Automated Review Generation Method Based on Large Language Modelscited by 7
- 2025Savaal: Scalable Concept-Driven Question Generation to Enhance Human Learningcited by 7
- 2024Evaluation of Geographical Distortions in Language Modelscited by 6
- 2024Small Language Models for Application Interactions: A Case Studycited by 5
12 most cited of 31 All 31 (JSON)
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inference18 Aug 2026
- 2026LCAi: Life Cycle Assessment with big data fusion and retrieval-augmented generation-assisted interpretation25 Jun 2026
- 2026CultivAgents: Cultivating Relationship-Centered Multi-Agent Systems for Personalized Gardening22 May 2026
- 2026Do Implicit Personalization and Explicit Styles Conflict? PsPLUG: A Lightweight Plug-in for Balancing Personalization and Style in Customized LLMs10 Jan 2026
- 2025From Personal to Collective: On the Role of Local and Global Memory in LLM Personalization28 Sep 2025
- 2025Enterprise AI Must Enforce Participant-Aware Access Control18 Sep 2025
- 2025Comparing Knowledge Injection Methods for LLMs in a Low-Resource Regime8 Aug 2025
- 2025GAIus: Combining Genai with Legal Clauses Retrieval for Knowledge-based Assistant2 Jul 2025
- 2025A Practical Guide for Evaluating LLMs and LLM-Reliant Systems16 Jun 2025
- 2025Building Models of Neurological Language6 Jun 2025
- 2025Beyond QA Pairs: Assessing Parameter-Efficient Fine-Tuning for Fact Embedding in LLMs3 Mar 2025
- 2025Savaal: Scalable Concept-Driven Question Generation to Enhance Human Learning18 Feb 2025
12 newest of 31 All 31 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Towards AI Evaluation in Domain-Specific RAG Systems: The AgriHubi Case Study
- 2026Assessment of RAG and Fine-Tuning for Industrial Question-Answering-Applications
- 2025AgriGPT: a Large Language Model Ecosystem for Agriculture
- 2024Fine-Tuning or Fine-Failing? Debunking Performance Myths in Large Language Models
- 2024Fine Tuning LLM for Enterprise: Practical Guidelines and Recommendations
- 2024Investigating the performance of Retrieval-Augmented Generation and fine-tuning for the development of AI-driven knowledge-based systems
- 2023Establishing Performance Baselines in Fine-Tuning, Retrieval-Augmented Generation and Soft-Prompting for Non-Specialist LLM Users
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference