mlsanityData to 7 Oct 2026

T-RAG: Lessons from the LLM Trenches

arXiv 2402.07483 ↗First posted 12 Feb 2024cs.AI cs.CLcited by 23

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  7. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  8. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
  9. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  10. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  11. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  12. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
21 more
  1. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
  2. 2023PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimizationcited by 311
  3. 2024The Power of Noise: Redefining Retrieval for RAG Systemscited by 275
  4. 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 171
  5. 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
  6. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 138
  7. 2023A Confederacy of Models: a Comprehensive Evaluation of LLMs on Creative Writingcited by 98
  8. 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
  9. 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 80
  10. 2023Retrieve-Rewrite-Answer: A KG-to-Text Enhanced LLMs Framework for Knowledge Graph Question Answeringcited by 64
  11. 2023Empower Large Language Model to Perform Better on Industrial Domain-Specific Question Answeringcited by 41
  12. 2023Psy-LLM: Scaling up Global Mental Health Psychological Services with AI-based Large Language Modelscited by 36
  13. 2023Fully Autonomous Programming with Large Language Modelscited by 31
  14. 2022ERNIE-GeoL: A Geography-and-Language Pre-trained Model and its Applications in Baidu Mapscited by 25
  15. 2024Extending LLMs' Context Window with 100 Samplescited by 20
  16. 2021Training Large-Scale News Recommenders with Pretrained Language Models in the Loopcited by 18
  17. 2022LingYi: Medical Conversational Question Answering System based on Multi-modal Knowledge Graphscited by 15
  18. 2023Fine-tuning Large Enterprise Language Models via Ontological Reasoningcited by 14
  19. 2017Question Answering through Transfer Learning from Large Fine-grained Supervision Datacited by 9
  20. 2023Evaluation of AI Chatbots for Patient-Specific EHR Questionscited by 9
  21. 2022From Human Days to Machine Seconds: Automatically Answering and Generating Machine Learning Final Examscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 11; 2026: 7.

23 papers.

Sort:

By area:

  1. 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Modelscited by 85
  2. 2025HopRAG: Multi-Hop Reasoning for Logic-Aware Retrieval-Augmented Generationcited by 24
  3. 2025MultiFinRAG: An Optimized Multimodal Retrieval-Augmented Generation (RAG) Framework for Financial Question Answeringcited by 9
  4. 2024Optimizing and Evaluating Enterprise Retrieval-Augmented Generation (RAG): A Content Design Perspectivecited by 7
  5. 2025CFT-RAG: An Entity Tree Based Retrieval Augmented Generation Algorithm With Cuckoo Filtercited by 4
  6. 2025PIS: Linking Importance Sampling and Attention Mechanisms for Efficient Prompt Compressioncited by 4
  7. 2025HGMEM: Hypergraph-based Working Memory to Improve Multi-step RAG for Long-Context Complex Relational Modelingcited by 4
  8. 2024Autoware.Flex: Human-Instructed Dynamically Reconfigurable Autonomous Driving Systemscited by 3
  9. 2025ALoFTRAG: Automatic Local Fine Tuning for Retrieval Augmented Generationcited by 3
  10. 2024KaPQA: Knowledge-Augmented Product Question-Answeringcited by 2
  11. 2025DeepThink: Aligning Language Models with Domain-Specific User Intentscited by 2
  12. 2025AutoMT: A Multi-Agent LLM Framework for Automated Metamorphic Testing of Autonomous Driving Systemscited by 2
11 more
  1. 2026SF-RAG: Structure-Fidelity Retrieval-Augmented Generation for Academic Question Answeringcited by 2
  2. 2024LLM-R: A Framework for Domain-Adaptive Maintenance Scheme Generation Combining Hierarchical Agents and RAGcited by 1
  3. 2026Disco-RAG: Discourse-Aware Retrieval-Augmented Generationcited by 1
  4. 2024Can we only use guideline instead of shot in prompt?cited by 0
  5. 2025CoRAG: Collaborative Retrieval-Augmented Generationcited by 0
  6. 2025Harmonia: End-to-End RAG Serving Optimizationcited by 0
  7. 2026RAG without Forgetting: Continual Query-Infused Key Memorycited by 0
  8. 2026Coordinated Semantic Alignment and Evidence Constraints for Retrieval-Augmented Generation with Large Language Modelscited by 0
  9. 2026Rethinking Retrieval-Augmentation as Synthesis: A Query-Aware Context Merging Approachcited by 0
  10. 2026Bridge-RAG: An Abstract Bridge Tree Based Retrieval Augmented Generation Algorithmcited by 0
  11. 2026Hierarchical Abstract Tree for Cross-Document Retrieval-Augmented Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025A Systematic Review of Key Retrieval-Augmented Generation (RAG) Systems: Progress, Gaps, and Future Directions
  2. 2025When Retrieval Succeeds and Fails: Rethinking Retrieval-Augmented Generation for LLMs
  3. 2024Evaluating the Efficacy of Open-Source LLMs in Enterprise-Specific RAG Systems: A Comparative Study of Performance and Scalability
  4. 2024Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely
  5. 2024Know Your RAG: Dataset Taxonomy and Generation Strategies for Evaluating RAG Systems
  6. 2025LLM-Assisted Question-Answering on Technical Documents Using Structured Data-Aware Retrieval Augmented Generation
  7. 2024Retrieval Augmented Generation Systems: Automatic Dataset Creation, Evaluation and Boolean Agent Setup
  8. 2024Improving Retrieval for RAG based Question Answering Models on Financial Documents