RAG-Based Multi-Agent Legal Decision Support System with Virtual Trial Simulation: Design and Implementation of the Justice Chamber

Authors:

Abstract
Large Language Models (LLMs) have demonstrated considerable potential for legal information processing and decision support. However, their application to the legal domain remains challenging because inaccurate or unsupported information, including fabricated statutes and judicial precedents, can undermine the reliability of legal consultation. This study presents Justice Chamber, an intelligent legal decision support system that combines Retrieval-Augmented Generation (RAG) with stateful multi-agent virtual trial simulation. The proposed system retrieves relevant statutes, Supreme Court precedents, and sentencing information through a vector database and incorporates the retrieved evidence into the reasoning process of multiple legal agents. The system automatically classifies submitted cases into civil or criminal categories and generates supplementary questions when essential case information is missing. It then conducts a multi-round adversarial simulation involving legal advocate agents, followed by parallel adjudication through three judicial perspectives: a Strict Principle Judge, an Equity-Centric Judge, and a Public Opinion Judge. A Master Judge subsequently integrates the resulting perspectives into a final decision report. In addition, a lightweight sentiment analysis pipeline is employed to incorporate public opinion information derived from Korean news articles. The system was implemented using technologies including Azure OpenAI, ChromaDB, LangGraph, Sentence Transformers, FastAPI, and PostgreSQL. For functional validation, two actual Supreme Court cases were used as ground-truth references while withholding their original decisions from the simulation. The system correctly classified both cases, identified their core legal principles, and produced judgment directions consistent with the corresponding Supreme Court decisions. These results demonstrate the feasibility of combining evidence-grounded retrieval and multi-agent adversarial reasoning for interactive legal decision support. The proposed framework provides a foundation for developing more transparent, structured, and context-aware AI-assisted legal consultation systems.