Xây dựng hệ thống chatbot hỏi đáp pháp luật
Abstract
This undergraduate thesis investigates a legal question-answering chatbot using retrieval-augmented generation. Legal questions require access to relevant documents and careful handling of generated answers. The author studies retrieval-augmented generation, prepares legal text for search, builds a question-answering flow, and implements a Streamlit interface. The thesis documents data preparation, retrieval, and response generation. The report presents a working chatbot demonstration for legal questions. Its conclusion says the project established the main retrieval and response pipeline. Query rewriting, reranking, multiple candidate answers, user accounts, conversation memory, and answer ratings are listed as future developments. The manuscript does not establish legal correctness across an independently labeled question set or suitability for professional legal advice. Answers may be incomplete or wrong when retrieval fails or source documents are outdated. The contribution is a documented student study or prototype whose stated scope can guide further testing.