Generative AI for Islamic Texts: The EMAN Framework for Mitigating GPT Hallucinations
Amina El Ganadi, Amina El Ganadi, Sania Aftar, Luca Gagliardelli, Federico Ruozzi
2025
Abstract
Recent advancements in large language models (LLMs) have facilitated specialized applications in fields such as religious studies. Customized AI models, developed using tools like GPT Builder to source information from authoritative collections such as Sahih al-Bukhari or the Qur’an, were explored as potential solutions to address inquiries related to Islamic teachings. However, initial evaluations highlighted significant limitations, including hallucinations and reference inaccuracies, which undermined their reliability for handling sensitive religious content. To address these limitations, this study proposes EMAN (Embedding Methodology for Authentic Narrations), a novel framework designed to enhance adherence to Sahih al-Bukhari through API-based integration. Three methodologies are examined within this framework: Zero-Shot Instructions, which guide the model without prior examples; Few-Shot Learning, which fine-tunes the model using a limited set of examples; and Embedding-Based Integration, which grounds the model directly in a verified Ahadith database. Results demonstrate that Embedding-Based Integration significantly improves performance by anchoring outputs in a structured knowledge base, reducing hallucination rates, and increasing accuracy. The success of this approach underscores its potential for enhancing LLM performance in precision-critical domains. This research provides a foundation for the ethical and accurate deployment of AI in religious studies, emphasizing accountability and fidelity to source material.
DownloadPaper Citation
in Harvard Style
El Ganadi A., Aftar S., Gagliardelli L. and Ruozzi F. (2025). Generative AI for Islamic Texts: The EMAN Framework for Mitigating GPT Hallucinations. In Proceedings of the 17th International Conference on Agents and Artificial Intelligence - Volume 3: ICAART; ISBN 978-989-758-737-5, SciTePress, pages 1221-1228. DOI: 10.5220/0013312800003890
in Bibtex Style
@conference{icaart25,
author={Amina El Ganadi and Sania Aftar and Luca Gagliardelli and Federico Ruozzi},
title={Generative AI for Islamic Texts: The EMAN Framework for Mitigating GPT Hallucinations},
booktitle={Proceedings of the 17th International Conference on Agents and Artificial Intelligence - Volume 3: ICAART},
year={2025},
pages={1221-1228},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0013312800003890},
isbn={978-989-758-737-5},
}
in EndNote Style
TY - CONF
JO - Proceedings of the 17th International Conference on Agents and Artificial Intelligence - Volume 3: ICAART
TI - Generative AI for Islamic Texts: The EMAN Framework for Mitigating GPT Hallucinations
SN - 978-989-758-737-5
AU - El Ganadi A.
AU - Aftar S.
AU - Gagliardelli L.
AU - Ruozzi F.
PY - 2025
SP - 1221
EP - 1228
DO - 10.5220/0013312800003890
PB - SciTePress