LegalBot-EC: An LLM-Based Chatbot for Legal Assistance in Ecuadorian Law
Year: 2025
Type: article
Abstract: This work introduces LegalBot-EC, a legal chatbot designed to provide responses based on Ecuadorian law based on large language models (LLMs), The system combines ChromaDB for contextual retrieval and LLaMA 3.1 as its generative model, ensuring legally relevant and contextually grounded answers. Its knowledge base consists of two key legal documents, the COIP and the 2008 Constitution of Ecuador, which serve as the foundation for response generation. The chatbot was evaluated through two key assessments: user satisfaction and accuracy measurement. A satisfaction study conducted with final-year university students specializing in law resulted in an average score of 88.72 out of 100, indicating strong approval in terms of correctness, relevance, and clarity. Additionally, an accuracy assessment based on 25 legal queries demonstrated robust performance, with 23 correct responses, 2 partially correct responses, and none classified as incorrect, yielding a weighted accuracy of 96%. Furthermore, qualitative tests confirm the chatbot’s ability to generate well-structured, legally sound responses, even when queried in English, demonstrating multilingual capabilities.
Source: IEEE Access
Authors: Francklin Rivas-Echeverría, Leo Thomas Ramos, José Luis Ibarra, Sonia Zerpa-Bonillo, Stalin Arciniegas, Marilena Asprino-Salas
Language: English
Field: Social Sciences
Domain: Social Sciences
Open Access status: gold
Estimated APC paid: $2,075
OpenAlex ID: W4411406687
