<?xml version="1.0" encoding="UTF-8"?>
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" version="3.1" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd">
  <titleInfo>
    <title>A hybrid architecture for legal reasoning</title>
    <subTitle>integrating retrieval-augmented generation and prompt compliance filtering</subTitle>
  </titleInfo>
  <name type="personal">
    <namePart>Nguyen Le Quang</namePart>
    <role>
      <roleTerm authority="marcrelator" type="text">creator</roleTerm>
    </role>
  </name>
  <name type="personal">
    <namePart>Chaklam Silpasuwanchai</namePart>
    <role>
      <roleTerm type="text">Chairperson</roleTerm>
    </role>
  </name>
  <name type="personal">
    <namePart>Chutiporn Anutariya</namePart>
    <role>
      <roleTerm type="text">Examination Committee</roleTerm>
    </role>
  </name>
  <name type="personal">
    <namePart>Chantri Polprasert</namePart>
    <role>
      <roleTerm type="text">Examination Committee</roleTerm>
    </role>
  </name>
  <typeOfResource>text</typeOfResource>
  <genre authority="marc">theses</genre>
  <originInfo>
    <place>
      <placeTerm type="code" authority="marccountry">th</placeTerm>
    </place>
    <place>
      <placeTerm type="text">Pathum Thani, Thailand</placeTerm>
    </place>
    <publisher>Asian Institute of Technology</publisher>
    <dateIssued>2025</dateIssued>
    <issuance>monographic</issuance>
  </originInfo>
  <language>
    <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
  </language>
  <physicalDescription>
    <form authority="marcform">print</form>
    <extent>46 leaves : ill.+ 1 online resource</extent>
  </physicalDescription>
  <abstract>In the evolving landscape of legal technology, the application of Large Language Models  (LLMs) presents new opportunities for automating legal reasoning, document understanding,  and case-based decision support. However, traditional LLMs often lack factual grounding and  suffer from hallucinations, posing risks in high-stakes legal contexts. To address these  challenges, this thesis proposes a hybrid architecture that integrates Retrieval-Augmented  Generation (RAG) with a prompt compliance filtering mechanism to build a robust and  trustworthy legal assistant system.The architecture leverages a combination of cutting-edge LLMs, including GPT-4 (OpenAI,  2024), Qwen3 (Team, 2025), and Llama (Llama Team, 2024), as the generative core. These  models are dynamically augmented with context retrieved from a comprehensive legal corpus  comprising statutes, regulations, and historical legal cases. A dense retriever module queries  relevant documents from the legal knowledge base, which are then combined with the user{u2019}s  prompt to form a retrieval-augmented input for the generator. To ensure domain-specific  compliance and output integrity, a template-based prompt-validation gateway is applied at  both the input and output stages. This layer enforces structured syntax, filters unsafe or  incomplete queries, and verifies legal accuracy and tone in the generated responses.The system is evaluated on tasks such as legal case prediction, statute-based question  answering, and legal argument synthesis. Experimental results demonstrate that the hybrid  approach improves factual consistency, legal relevance, and prompt adherence compared to  baseline LLM outputs. The architecture is modular, scalable, and adaptable to multilingual  legal systems, positioning it as a practical framework for future intelligent legal assistants. </abstract>
  <note>A project report submitted in partial fulfillment of the requirements for the Degree of Master of Science (Professional) in Data Science and Artificial Intelligence Applications</note>
  <note>Master of Science (Professional) - Asian Institute of Technology, 2025</note>
  <subject authority="lcsh">
    <topic>Information retrieval</topic>
    <topic>Automation</topic>
  </subject>
  <subject authority="lcsh">
    <topic>Generative artificial intelligence</topic>
  </subject>
  <relatedItem type="series">
    <titleInfo>
      <title>Project ; no. PJPR PMDS-25-04</title>
    </titleInfo>
    <name type="corporate">
      <namePart>Asian Institute of Technology.</namePart>
      <namePart/>
    </name>
  </relatedItem>
  <identifier type="uri">http://203.159.5.9/ait-thesis/detail.php?q=B23688</identifier>
  <location>
    <url displayLabel="Full-Text">http://203.159.5.9/ait-thesis/detail.php?q=B23688</url>
  </location>
  <recordInfo>
    <recordCreationDate encoding="marc">260224</recordCreationDate>
    <recordChangeDate encoding="iso8601">20260817161320.0</recordChangeDate>
  </recordInfo>
</mods>
