{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,4]],"date-time":"2025-12-04T12:10:24Z","timestamp":1764850224035,"version":"3.46.0"},"reference-count":0,"publisher":"IOS Press","isbn-type":[{"value":"9781643686387","type":"electronic"}],"license":[{"start":{"date-parts":[[2025,12,2]],"date-time":"2025-12-02T00:00:00Z","timestamp":1764633600000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025,12,2]]},"abstract":"<jats:p>This paper presents a Retrieval Augmented Generation (RAG) pipeline adapted to simulate the process of resolving legal cases. It introduces two novel approaches to enhance the RAG pipeline for legal reasoning: 1) problem generation, which automatically creates fictitious legal cases to improve retrieval performance, and 2) query rewriting, which reformulates user queries to better align with relevant passages. These methods are evaluated on a legal reasoning dataset derived from real U.S. civil procedure cases. Experiments conducted across different retrieval methods (keyword search, tensor search, and hybrid search with re-ranking) and language models (GPT-4, SAULM, Llama-3 8B) highlight the benefits of the more advanced RAG pipeline. Notably, the query rewriting approach consistently improves performance by enhancing the alignment between queries and passages.<\/jats:p>","DOI":"10.3233\/faia251614","type":"book-chapter","created":{"date-parts":[[2025,12,4]],"date-time":"2025-12-04T12:05:34Z","timestamp":1764849934000},"source":"Crossref","is-referenced-by-count":0,"title":["LR2: A Legal RAG for Legal Reasoning over Cases"],"prefix":"10.3233","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7086-7898","authenticated-orcid":false,"given":"Irene","family":"Benedetto","sequence":"first","affiliation":[{"name":"JAKALA, Via Borsellino, 17, Torino, 10139, Italy"},{"name":"Politecnico di Torino, Corso Castelfidardo, 39, Torino, 10129, Italy"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7185-5247","authenticated-orcid":false,"given":"Luca","family":"Cagliero","sequence":"additional","affiliation":[{"name":"Politecnico di Torino, Corso Castelfidardo, 39, Torino, 10129, Italy"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4562-2463","authenticated-orcid":false,"given":"Francesco","family":"Tarasconi","sequence":"additional","affiliation":[{"name":"Aruba SPA, Via San Clemente 53, Ponte San Pietro, Italy"}]}],"member":"7437","container-title":["Frontiers in Artificial Intelligence and Applications","Legal Knowledge and Information Systems"],"original-title":[],"link":[{"URL":"https:\/\/ebooks.iospress.nl\/pdf\/doi\/10.3233\/FAIA251614","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,12,4]],"date-time":"2025-12-04T12:05:34Z","timestamp":1764849934000},"score":1,"resource":{"primary":{"URL":"https:\/\/ebooks.iospress.nl\/doi\/10.3233\/FAIA251614"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,12,2]]},"ISBN":["9781643686387"],"references-count":0,"URL":"https:\/\/doi.org\/10.3233\/faia251614","relation":{},"ISSN":["0922-6389","1879-8314"],"issn-type":[{"value":"0922-6389","type":"print"},{"value":"1879-8314","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,12,2]]}}}