Sadeque, Farig YousufHossain, TanzirAnawar, Md. ShakilIslam, Ar-RafiKarim, Md. Adnan2025-01-212025-01-21©20242024-10ID 20301154ID 20301162ID 20301164ID 20301157http://hdl.handle.net/10361/25235Cataloged from PDF version of thesis.Includes bibliographical references (pages 49-51).This thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science, 2024.In a country where laws and regulations are as difficult to understand as the cases they govern, the path to justice is anything but straightforward. For many in Bangladesh, the legal system’s complexity acts as a gatekeeper because most of the people can not simply comprehend its complex language. Our research presents a Retrieval Augmented Generation (RAG) system that integrates large transformerbased language models like Mistral-7B, deCILM-7B, LLaMA 3.1-8B, and others with a specialized legal retrieval module containing Bangladeshi laws and regulations. This allows the system to interpret user inquiries using natural language, retrieve relevant legal information from the corpus, and generate detailed responses grounded in and applying the country’s legal code - complete with applicable citations. At the heart of it all is an embedded Retrieval Augmented Generative system that combines neural automation and strong encoder-decoder transformers for generating legal documents and classifications quickly, ensuring legal accuracy. And the human-in-the-loop verification process to review and modify output allows users to get even more accurate results. This can massively improve general people’s understanding of legal matters as well as it can work as a lawyer’s helping hand too.59 pagesenBRAC University theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission.Retrieval augmented generationLanguage modelingNLPMachine learningLarge transformer-based language modelsHuman-in-the-loop validationArtificial intelligenceArtificial intelligence--Legal applications.Natural language processing (Computer science).Justice, Administration of--Bangladesh.Artificial intelligence--Computer programs.Advancing legal accessibility in Bangladesh through AI-powered assistance and natural language interfacesThesis