Chain of Prompts and Memories for Accessible Symbolic Applications in the Legal Domain
Open Access
- 22 September 2025
- journal article
- Published by Queensland University of Technology in Law, Technology and Humans
Abstract
This article introduces a novel hybrid approach that enhances the accessibility and explainability of symbolic legal systems by integrating them with large language models (LLMs). While symbolic systems provide transparency and justifiability, they suffer from communicability issues and limitations in knowledge representation. Conversely, LLMs offer natural language fluency but struggle with reliability and justifiability in legal reasoning. The article bridges this gap by structuring legal tasks into a modular, interconnected sequence of prompts, supported by contextually relevant memory retrieval, thus creating a chain of prompts and memories. The methodology is validated through two case studies. The first applies it to computable contracts, demonstrating its ability to map code to contractual provisions, thereby making them more accessible. The second case study involves an expert legal system, where the hybrid approach generates accessible explanations of Prolog-based legal reasoning. The findings show that the hybrid approach enhances the clarity and interpretability of legal applications while preserving justifiability, using a modular structure that allows for adaptability across different legal tasks.Keywords
This publication has 27 references indexed in Scilit:
- GPT-4 passes the bar examPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2024
- Ensemble methods for improving extractive summarization of legal case judgementsArtificial Intelligence and Law, 2023
- Pacta sunt servanda: Legal contracts inScience of Computer Programming, 2022
- Thirty years of Artificial Intelligence and Law: the first decadeArtificial Intelligence and Law, 2022
- Contract as automaton: representing a simple financial agreement in computational formArtificial Intelligence and Law, 2021
- From User Needs to Expert Knowledge: Mapping Laymen Queries with Ontologies in the Domain of Consumer MediationLecture Notes in Computer Science, 2012
- Logical Foundations for Rule-Based Systems2006
- A Hybrid‐Based Expert System for Personal Pension Planning in the UKIntelligent Systems in Accounting, Finance and Management, 1995
- An expert system for federal tax planningExpert Systems, 1984
- MYCIN: a knowledge-based consultation program for infectious disease diagnosisInternational Journal of Man-Machine Studies, 1978