Islamic Chatbot Based on Reinforcement Learning Using Q-Learning Algorithm
Khazanah Journal of Religion and Technology · 08.03.2026 · 3 (2) · 71-76
DOI: 10.66948/kjrt.32.19 ↗Kurz gefasst
Fachartikel in der Zeitschrift Khazanah Journal of Religion and Technology, online erschienen am 08.03.2026. Verfasst von Aria Octavian Hamza und 4 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
This study develops a retrieval-based chatbot using a Reinforcement Learning (RL) approach with a Q-Learning algorithm combined with a Sentence-Transformer (SBERT) model to understand the semantic context of user questions. The system is designed to map questions into vector representations, calculate meaning similarity with training data, and select answers based on learned Q-values. The dataset used consists of question-answer pairs in JSON format. The training process is carried out in a question-and-answer simulation environment, where the RL agent is rewarded based on the suitability of the selected answer. Test results show that the chatbot is able to provide relevant and contextual responses even though the sentence structure differs from the training data. To improve accessibility, the system is packaged as a REST API using Flask and integrated into a Flutter-based mobile application as a user interface. This approach has proven to be efficient and computationally lightweight, and offers a promising alternative for developing responsive retrieval-based educational chatbots.
Zitieren
APA
Hamza, A. O., Firmansyah, D., Giffari, A., Muthmainnah, A., & Firdaus, A. Z. (2026). Islamic Chatbot Based on Reinforcement Learning Using Q-Learning Algorithm. Khazanah Journal of Religion and Technology, 3(2), 71-76. https://doi.org/10.66948/kjrt.32.19
Vancouver
Hamza AO, Firmansyah D, Giffari A, Muthmainnah A, Firdaus AZ. Islamic Chatbot Based on Reinforcement Learning Using Q-Learning Algorithm. Khazanah Journal of Religion and Technology. 2026;3(2):71-76. doi:10.66948/kjrt.32.19
BibTeX
@article{Hamza2026,
author = {Hamza, Aria Octavian and Firmansyah, Denis and Giffari, Abidzar and Muthmainnah, Aisyah and Firdaus, Adil Zukhruf},
title = {Islamic Chatbot Based on Reinforcement Learning Using Q-Learning Algorithm},
journal = {Khazanah Journal of Religion and Technology},
year = {2026},
volume = {3},
number = {2},
pages = {71--76},
doi = {10.66948/kjrt.32.19}
}
EUVIMED