T-RAG: Lessons from the LLM Trenches
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLM) have shown remarkable language capabilities fueling attempts to integrate them into applications across a wide range of domains. An important application area is question answering over private enterprise documents where the main considerations are data security, which necessitates applications that can be deployed on-prem, limited computational resources and the need for a robust application that correctly responds to queries. Retrieval-Augmented Generation (RAG) has emerged as the most prominent framework for building LLM-based applications. While building a RAG is relatively straightforward, making it robust and a reliable application requires extensive customization and relatively deep knowledge of the application domain. We share our experiences building and deploying an LLM application for question answering over private organizational documents. Our application combines the use of RAG with a finetuned open-source LLM. Additionally, our system, which we call Tree-RAG (T-RAG), uses a tree structure to represent entity hierarchies within the organization. This is used to generate a textual description to augment the context when responding to user queries pertaining to entities within the organization's hierarchy. Our evaluations, including a Needle in a Haystack test, show that this combination performs better than a simple RAG or finetuning implementation. Finally, we share some lessons learned based on our experiences building an LLM application for real-world use.
Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 33 of its 46 references that are in the map. First posted on arXiv 12 Feb 2024.
Builds on
33 of 46 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
21 more
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
- 2023PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimizationcited by 311
- 2024The Power of Noise: Redefining Retrieval for RAG Systemscited by 275
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 171
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 138
- 2023A Confederacy of Models: a Comprehensive Evaluation of LLMs on Creative Writingcited by 98
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 80
- 2023Retrieve-Rewrite-Answer: A KG-to-Text Enhanced LLMs Framework for Knowledge Graph Question Answeringcited by 64
- 2023Empower Large Language Model to Perform Better on Industrial Domain-Specific Question Answeringcited by 41
- 2023Psy-LLM: Scaling up Global Mental Health Psychological Services with AI-based Large Language Modelscited by 36
- 2023Fully Autonomous Programming with Large Language Modelscited by 31
- 2022ERNIE-GeoL: A Geography-and-Language Pre-trained Model and its Applications in Baidu Mapscited by 25
- 2024Extending LLMs' Context Window with 100 Samplescited by 20
- 2021Training Large-Scale News Recommenders with Pretrained Language Models in the Loopcited by 18
- 2022LingYi: Medical Conversational Question Answering System based on Multi-modal Knowledge Graphscited by 15
- 2023Fine-tuning Large Enterprise Language Models via Ontological Reasoningcited by 14
- 2017Question Answering through Transfer Learning from Large Fine-grained Supervision Datacited by 9
- 2023Evaluation of AI Chatbots for Patient-Specific EHR Questionscited by 9
- 2022From Human Days to Machine Seconds: Automatically Answering and Generating Machine Learning Final Examscited by 6
Built on by
Citing papers per year: 2024: 5; 2025: 11; 2026: 7.
23 papers.
Sort:
By area:
- 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Modelscited by 85
- 2025HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generationcited by 24
- 2025MultiFinRAG: An Optimized Multimodal Retrieval-Augmented Generation (RAG) Framework for Financial Question Answeringcited by 9
- 2024Optimizing and Evaluating Enterprise Retrieval-Augmented Generation (RAG): A Content Design Perspectivecited by 7
- 2025CFT-RAG: An Entity Tree Based Retrieval Augmented Generation Algorithm With Cuckoo Filtercited by 4
- 2025PIS: Linking Importance Sampling and Attention Mechanisms for Efficient Prompt Compressioncited by 4
- 2025HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modelingcited by 4
- 2024Autoware.Flex: Human-Instructed Dynamically Reconfigurable Autonomous Driving Systemscited by 3
- 2025ALoFTRAG: Automatic Local Fine Tuning for Retrieval Augmented Generationcited by 3
- 2024KaPQA: Knowledge-Augmented Product Question-Answeringcited by 2
- 2025DeepThink: Aligning Language Models with Domain-Specific User Intentscited by 2
- 2025AutoMT: A Multi-Agent LLM Framework for Automated Metamorphic Testing of Autonomous Driving Systemscited by 2
11 more
- 2026SF-RAG: Structure-Fidelity Retrieval-Augmented Generation for Academic Question Answeringcited by 2
- 2024LLM-R: A Framework for Domain-Adaptive Maintenance Scheme Generation Combining Hierarchical Agents and RAGcited by 1
- 2026Disco-RAG: Discourse-Aware Retrieval-Augmented Generationcited by 1
- 2024Can we only use guideline instead of shot in prompt?cited by 0
- 2025CoRAG: Collaborative Retrieval-Augmented Generationcited by 0
- 2025Harmonia: End-to-End RAG Serving Optimizationcited by 0
- 2026RAG without Forgetting: Continual Query-Infused Key Memorycited by 0
- 2026Coordinated Semantic Alignment and Evidence Constraints for Retrieval-Augmented Generation with Large Language Modelscited by 0
- 2026Rethinking Retrieval-Augmentation as Synthesis: A Query-Aware Context Merging Approachcited by 0
- 2026Bridge-RAG: An Abstract Bridge Tree Based Retrieval Augmented Generation Algorithmcited by 0
- 2026Hierarchical Abstract Tree for Cross-Document Retrieval-Augmented Generationcited by 0
- 2026Hierarchical Abstract Tree for Cross-Document Retrieval-Augmented Generation1 May 2026
- 2026Rethinking Retrieval-Augmentation as Synthesis: A Query-Aware Context Merging Approach18 Mar 2026
- 2026Coordinated Semantic Alignment and Evidence Constraints for Retrieval-Augmented Generation with Large Language Models4 Mar 2026
- 2026SF-RAG: Structure-Fidelity Retrieval-Augmented Generation for Academic Question Answering14 Feb 2026
- 2026RAG without Forgetting: Continual Query-Infused Key Memory5 Feb 2026
- 2026Bridge-RAG: An Abstract Bridge Tree Based Retrieval Augmented Generation Algorithm12 Jan 2026
- 2026Disco-RAG: Discourse-Aware Retrieval-Augmented Generation7 Jan 2026
- 2025HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modeling30 Dec 2025
- 2025AutoMT: A Multi-Agent LLM Framework for Automated Metamorphic Testing of Autonomous Driving Systems22 Oct 2025
- 2025MultiFinRAG: An Optimized Multimodal Retrieval-Augmented Generation (RAG) Framework for Financial Question Answering25 Jun 2025
- 2025Harmonia: End-to-End RAG Serving Optimization1 May 2025
- 2025PIS: Linking Importance Sampling and Attention Mechanisms for Efficient Prompt Compression23 Apr 2025
11 more
- 2025CoRAG: Collaborative Retrieval-Augmented Generation2 Apr 2025
- 2025HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generation18 Feb 2025
- 2025DeepThink: Aligning Language Models with Domain-Specific User Intents8 Feb 2025
- 2025CFT-RAG: An Entity Tree Based Retrieval Augmented Generation Algorithm With Cuckoo Filter25 Jan 2025
- 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Models21 Jan 2025
- 2025ALoFTRAG: Automatic Local Fine Tuning for Retrieval Augmented Generation21 Jan 2025
- 2024Autoware.Flex: Human-Instructed Dynamically Reconfigurable Autonomous Driving Systems20 Dec 2024
- 2024LLM-R: A Framework for Domain-Adaptive Maintenance Scheme Generation Combining Hierarchical Agents and RAG7 Nov 2024
- 2024Optimizing and Evaluating Enterprise Retrieval-Augmented Generation (RAG): A Content Design Perspective1 Oct 2024
- 2024Can we only use guideline instead of shot in prompt?3 Sep 2024
- 2024KaPQA: Knowledge-Augmented Product Question-Answering22 Jul 2024
- 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Modelscited by 85
- 2025MultiFinRAG: An Optimized Multimodal Retrieval-Augmented Generation (RAG) Framework for Financial Question Answeringcited by 9
- 2024Optimizing and Evaluating Enterprise Retrieval-Augmented Generation (RAG): A Content Design Perspectivecited by 7
- 2025CFT-RAG: An Entity Tree Based Retrieval Augmented Generation Algorithm With Cuckoo Filtercited by 4
- 2025HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modelingcited by 4
- 2025ALoFTRAG: Automatic Local Fine Tuning for Retrieval Augmented Generationcited by 3
- 2026SF-RAG: Structure-Fidelity Retrieval-Augmented Generation for Academic Question Answeringcited by 2
- 2026Disco-RAG: Discourse-Aware Retrieval-Augmented Generationcited by 1
- 2025CoRAG: Collaborative Retrieval-Augmented Generationcited by 0
- 2025Harmonia: End-to-End RAG Serving Optimizationcited by 0
- 2026RAG without Forgetting: Continual Query-Infused Key Memorycited by 0
- 2026Coordinated Semantic Alignment and Evidence Constraints for Retrieval-Augmented Generation with Large Language Modelscited by 0
12 most cited of 14 All 14 (JSON)
- 2026Hierarchical Abstract Tree for Cross-Document Retrieval-Augmented Generation1 May 2026
- 2026Coordinated Semantic Alignment and Evidence Constraints for Retrieval-Augmented Generation with Large Language Models4 Mar 2026
- 2026SF-RAG: Structure-Fidelity Retrieval-Augmented Generation for Academic Question Answering14 Feb 2026
- 2026RAG without Forgetting: Continual Query-Infused Key Memory5 Feb 2026
- 2026Bridge-RAG: An Abstract Bridge Tree Based Retrieval Augmented Generation Algorithm12 Jan 2026
- 2026Disco-RAG: Discourse-Aware Retrieval-Augmented Generation7 Jan 2026
- 2025HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modeling30 Dec 2025
- 2025MultiFinRAG: An Optimized Multimodal Retrieval-Augmented Generation (RAG) Framework for Financial Question Answering25 Jun 2025
- 2025Harmonia: End-to-End RAG Serving Optimization1 May 2025
- 2025CoRAG: Collaborative Retrieval-Augmented Generation2 Apr 2025
- 2025CFT-RAG: An Entity Tree Based Retrieval Augmented Generation Algorithm With Cuckoo Filter25 Jan 2025
- 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Models21 Jan 2025
12 newest of 14 All 14 (JSON)
- 2024KaPQA: Knowledge-Augmented Product Question-Answeringcited by 2
- 2024Can we only use guideline instead of shot in prompt?cited by 0
- 2024Can we only use guideline instead of shot in prompt?3 Sep 2024
- 2024KaPQA: Knowledge-Augmented Product Question-Answering22 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2025A Systematic Review of Key Retrieval-Augmented Generation (RAG) Systems: Progress, Gaps, and Future Directions
- 2025When Retrieval Succeeds and Fails: Rethinking Retrieval-Augmented Generation for LLMs
- 2024Evaluating the Efficacy of Open-Source LLMs in Enterprise-Specific RAG Systems: A Comparative Study of Performance and Scalability
- 2024Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely
- 2024Know Your RAG: Dataset Taxonomy and Generation Strategies for Evaluating RAG Systems
- 2025LLM-Assisted Question-Answering on Technical Documents Using Structured Data-Aware Retrieval Augmented Generation
- 2024Retrieval Augmented Generation Systems: Automatic Dataset Creation, Evaluation and Boolean Agent Setup
- 2024Improving Retrieval for RAG based Question Answering Models on Financial Documents