mlsanityData to 7 Oct 2026

Chunking German Legal Code

arXiv 2605.19806 ↗First posted 19 May 2026cs.CL cs.AIcited by 0

On the map: Retrieval-augmented generation → Legal and financial RAG

Abstract (arXiv)

This paper investigates chunking strategies for retrieval-augmented generation on German statutory law, using the German Civil Code as a structured benchmark corpus. We implement and compare a range of segmentation approaches, including structural units (sections, subsections, sentences, propositions), fixed-size windows, contextual chunking, semantic clustering, Lumber-style chunking, and RAPTOR-based hierarchical retrieval. All methods are evaluated on a legal question-answering dataset with section-level gold labels, measuring recall, query latency, index build time, and storage requirements. Results show that chunking strategies aligned with the inherent legal structure - particularly section and subsection - based retrieval-achieve the highest recall, while more complex approaches that override this structure perform worse. These simpler methods also offer favorable computational efficiency compared to LLM-intensive techniques such as contextual chunking, RAPTOR, and Lumber. The findings highlight a key trade-off between semantic enrichment and operational cost, and demonstrate that preserving domain-specific structure is critical for effective legal information retrieval.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 4 of its 11 references that are in the map. First posted on arXiv 19 May 2026.

Builds on

4 of 11 references.

References · 4

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  3. 2023Dense X Retrieval: What Retrieval Granularity Should We Use?cited by 88
  4. 2021Dense Hierarchical Retrieval for Open-Domain Question Answeringcited by 33

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasets
  2. 2024Unlocking Legal Knowledge with Multi-Layered Embedding-Based Retrieval
  3. 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain
  4. 2026Fine-grained Claim-level RAG Benchmark for Law
  5. 2026Legal-DC: Benchmarking Retrieval-Augmented Generation for Legal Documents
  6. 2026Legal RAG Bench: an end-to-end benchmark for legal RAG
  7. 2025NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering
  8. 2026Efficient LLM Distillation for Bangladesh Legal Context: A Smartphone-Compatible Retrieval-Augmented Generation Model