Legal-DC: Benchmarking Retrieval-Augmented Generation for Legal Documents

Yaocong Li, Qiang Lan, Leihan Zhang, Le Zhang
3/12/2026
cs.CL

Official code: legal-dc/Legal-DC (2 stars, last commit 2024-11-01).

Abstract

Retrieval-Augmented Generation (RAG) has emerged as a promising technology for legal document consultation, yet its application in Chinese legal scenarios faces two key limitations: existing benchmarks lack specialized support for joint retriever-generator evaluation, and mainstream RAG systems often fail to accommodate the structured nature of legal provisions. To address these gaps, this study advances two core contributions: First, we constructed the Legal-DC benchmark dataset, comprising 480 legal documents (covering areas such as market regulation and contract management) and 2,475 refined question-answer pairs, each annotated with clause-level references, filling the gap for specialized evaluation resources in Chinese legal RAG. Second, we propose the LegRAG framework, which integrates legal adaptive indexing (clause-boundary segmentation) with a dual-path self-reflection mechanism to ensure clause integrity while enhancing answer accuracy. Third, we introduce automated evaluation methods for large language models to meet the high-reliability demands of legal retrieval scenarios. LegRAG outperforms existing state-of-the-art methods by 1.3% to 5.6% across key evaluation metrics. This research provides a specialized benchmark, practical framework, and empirical insights to advance the development of Chinese legal RAG systems. Our code and data are available at https://github.com/legal-dc/Legal-DC.

View on arXivView PDF

Code Implementations(1)

legal-dc/Legal-DCOfficial100%

Legal-DC: Benchmarking Retrieval-Augmented Generation for Legal Document Consultation

21PythonSep 15, 20241 years ago

Similar Papers

Cite this paper

@article{li2026legaldc,
  title  = {Legal-DC: Benchmarking Retrieval-Augmented Generation for Legal Documents},
  author = {Yaocong Li and Qiang Lan and Leihan Zhang and Le Zhang},
  year   = {2026},
  eprint = {2603.11772},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.11772v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.11772.svg)](https://codeofpaper.com/paper/2603.11772)

Discussion