Please use this identifier to cite or link to this item: https://dspace.ctu.edu.vn/jspui/handle/123456789/126160
Title: DEVELOPMENT OF AN AI-BASED LEGAL CONSULTATION SYSTEM USING HIERARCHICAL RAG, HYBRID RETRIEVAL, AND LARGE LANGUAGE MODELS FOR VIETNAMESE LEGAL DOCUMENT SEARCH
Other Titles: PHÁT TRIỂN HỆ THỐNG TƯ VẤN PHÁP LUẬT AI SỬ DỤNG HIERARCHICAL RAG, HYBRID RETRIEVAL VÀ LLM TRONG TRA CỨU VĂN BẢN PHÁP LUẬT VIỆT NAM.
Authors: Trần, Công Án
Nguyễn, Nhật Hào
Keywords: CÔNG NGHỆ THÔNG TIN - CHẤT LƯỢNG CAO
Issue Date: 2025
Publisher: Trường Đại Học Cần Thơ
Abstract: Accessing accurate Vietnamese legal information remains challenging due to the vast number of regulations, complex hierarchical structures, and the limitations of traditional keyword-based search tools. This thesis develops LegalMate, an AIpowered legal assistant that addresses these issues through a novel 3-tier RetrievalAugmented Generation (RAG) architecture combined with hybrid retrieval (BM25 + dense vector search), query enhancement, and cross-encoder reranking. The system was implemented using a Python/FastAPI backend with PostgreSQL + pgvector for efficient hierarchical vector search, Google Gemini-1.5- flash for response generation and query enhancement, and a cross-platform Flutter mobile application (Android/iOS). Evaluation on a diverse legal question dataset shows that the proposed 3-tier RAG approach achieves recall@5 ≥ 80%, precision@5 ≥ 60%, groundedness ≥ 4.0/5.0, and an average response time of 8–20 seconds— significantly outperforming baseline keyword and single-tier vector search methods. The results demonstrate the effectiveness and practical feasibility of structured multi-tier RAG for the Vietnamese legal domain, providing a reliable, user-friendly, and source-cited legal assistant suitable for both citizens and professionals.
Description: 149 Tr
URI: https://dspace.ctu.edu.vn/jspui/handle/123456789/126160
Appears in Collections:Trường Công nghệ Thông tin & Truyền thông

Files in This Item:
File Description SizeFormat 
_file_
  Restricted Access
4.89 MBAdobe PDF
Your IP: 216.73.216.219


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.