LegalCheck: Retrieval- and Context-Augmented Generation for Drafting Municipal Legal Advice Letters
Virgill van der Meer, Julien Rossi

TL;DR
LegalCheck is an AI system that automates drafting municipal legal advice letters by combining retrieval of legal knowledge with context-aware generation, improving efficiency and consistency in legal workflows.
Contribution
This work introduces LegalCheck, a novel retrieval- and context-augmented generation system that enhances legal drafting with expert-in-the-loop validation and real-world deployment insights.
Findings
LegalCheck reduced drafting time from hours to minutes.
The system achieved 80-100% coverage of essential legal reasoning.
Legal professionals reported decreased workload and increased consistency.
Abstract
Public-sector legal departments in the Netherlands face acute staff shortages, increased case volumes, and increased pressure to meet regulatory compliance. This paper presents LegalCheck, a novel system that addresses these challenges by automating the drafting of objection response letters through a combination of Retrieval-Augmented Generation (RAG) and Context-Augmented Generation (CAG). Using a large language model (LLM) alongside curated legal knowledge bases, LegalCheck performs retrieval of relevant laws and precedents, and uses controlled prompting to incorporate both external knowledge and case-specific details into a coherent draft. An expert-in-the-loop review ensures that each generated letter is legally sound and contextually appropriate. In a real-world deployment within the Municipality of Amsterdam, LegalCheck produced near-final advice letters in minutes rather than…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
