Year: 2025
Type: book-chapter
Abstract: The creation of legal documents often requires the generation of text that adheres to a predefined schema, a process that can be significantly enhanced through the use of digital and automated tools. This paper presents JusBuild, a Retrieval-Augmented Generation (RAG)-based document builder architecture designed to assist legal practitioners in drafting new legal documents. JusBuild operates through a multi-layered framework: the Document Segmentation Layer partitions legal documents into functional sections based on a predefined schema; the Storage Layer collects semantically meaningful vector representations of these sections, generated by an embedding model; and the Retrieval and RAG Layers provide real-time suggestions to the practitioner during the drafting process. To evaluate its versatility, JusBuild was tested on two distinct datasets, varying in document template, language, and judicial matter, demonstrating its adaptability and applicability across diverse legal contexts. The results highlight JusBuild’s potential to streamline legal document drafting while maintaining user full control over document production, leveraging its “human-in-the-loop” approach.
Institutions: University of Milan, Politecnico di Torino
Language: English
Subfield: Law
Field: Social Sciences
Domain: Social Sciences
Open Access status: green
Funder: European Commission
Awards: G507880695, G6319203643
OpenAlex ID: W7169697715
