All for law and law for all: Adaptive RAG Pipeline for Legal Research
On the map: Retrieval-augmented generation → Legal and financial RAG
Abstract (arXiv)
Retrieval-Augmented Generation (RAG) has transformed how we approach text generation tasks by grounding Large Language Model (LLM) outputs in retrieved knowledge. This capability is especially critical in the legal domain. In this work, we introduce a novel end-to-end RAG pipeline that improves upon previous baselines using three targeted enhancements: (i) a context-aware query translator that disentangles document references from natural-language questions and adapts retrieval depth and response style based on expertise and specificity, (ii) open-source retrieval strategies using SBERT and GTE embeddings that achieve substantial performance gains while remaining cost-efficient, and (iii) a comprehensive evaluation and generation framework that combines RAGAS, BERTScore-F1, and ROUGE-Recall to assess semantic alignment and faithfulness across models and prompt designs. Our results show that carefully designed open-source pipelines can rival proprietary approaches in retrieval quality, while a custom legal-grounded prompt consistently produces more faithful and contextually relevant answers than baseline prompting. Taken together, these contributions demonstrate the potential of task-aware, component-level tuning to deliver legally grounded, reproducible, and cost-effective RAG systems for legal research assistance.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 3 of its 10 references that are in the map. First posted on arXiv 18 Aug 2025.
Builds on
3 of 10 references.
Closest ancestors · 2
Same direction, newest first
- 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications29 Aug
- 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain19 Aug
Other references · 1
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2026Fine-grained Claim-level RAG Benchmark for Lawcited by 2
- 2025Retrieving Semantically Similar Decisions under Noisy Institutional Labels: Robust Comparison of Embedding Methodscited by 0
- 2026Navigating Global AI Regulation: A Multi-Jurisdictional Retrieval-Augmented Generation Systemcited by 0
- 2026Maat: The Agentic Legal Research Assistant for Competition Protectioncited by 0
- 2026Evaluating RAG for French immigration law: a benchmark and baseline studycited by 0
- 2026Evaluating RAG for French immigration law: a benchmark and baseline study27 Jul 2026
- 2026Maat: The Agentic Legal Research Assistant for Competition Protection26 May 2026
- 2026Fine-grained Claim-level RAG Benchmark for Law20 May 2026
- 2026Navigating Global AI Regulation: A Multi-Jurisdictional Retrieval-Augmented Generation System28 Apr 2026
- 2025Retrieving Semantically Similar Decisions under Noisy Institutional Labels: Robust Comparison of Embedding Methods5 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answering
- 2025LexRAG: Benchmarking Retrieval-Augmented Generation in Multi-Turn Legal Consultation Conversation
- 2025Fishing for Answers: Exploring One-shot vs. Iterative Retrieval Strategies for Retrieval Augmented Generation
- 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasets
- 2026Enhancing Legal LLMs through Metadata-Enriched RAG Pipelines and Direct Preference Optimization
- 2025LegalRAG: A Hybrid RAG System for Multilingual Legal Information Retrieval
- 2025ASVRI-Legal: Fine-Tuning LLMs with Retrieval Augmented Generation for Enhanced Legal Regulation
- 2025The 3rd Place Solution of CCIR CUP 2025: A Framework for Retrieval-Augmented Generation in Multi-Turn Legal Conversation