Performance Evaluation of Chatbot Based on LLM and Retrieval-Augmented Generation (RAG) for Retrieving Tajweed Knowledge Information
Abstract
The development of artificial intelligence technology, especially Large Language Models (LLM), has driven innovation in chatbot-based learning systems. However, pure LLM still has limitations in producing accurate information in specific domains, such as Tajweed science, due to the phenomenon of hallucination. This study evaluates the performance of a chatbot based on LLM and Retrieval-Augmented Generation (RAG) to address these limitations. The proposed methodology involves developing a RAG system using the Zephyr-7B-Beta model combined with BGE embedding (BAAI/bge-base-en-v1.5). The system was tested using the Tajweed dataset with 21 question iterations to ensure consistency of results in Indonesian and English. The evaluation was conducted based on key metrics: Accuracy, Relevance, and Consistency assessed by experts. The results show that the RAG-based chatbot outperforms pure LLM with a 20% increase in accuracy, and exhibits higher stability in maintaining the correspondence of answers to knowledge sources and cross-language consistency. This research contributes to the development of a reliable AI-based learning system for the religious domain through a knowledge-grounded system.