[Paper Review] Improving LLM Reliability with RAG in Religious Question-Answering: MufassirQAS
This paper introduces MufassirQAS, a Retrieval-Augmented Generation (RAG) system that enhances the reliability of large language models (LLMs) in religious question-answering by grounding responses in a curated Turkish Islamic text database. By retrieving context from a vector database and using ethically designed prompts, the system reduces hallucinations and ensures accurate, transparent, and respectful answers, outperforming ChatGPT on sensitive religious queries.
Religious teachings can sometimes be complex and challenging to grasp, but chatbots can serve as effective assistants in this domain. Large Language Model (LLM) based chatbots, powered by Natural Language Processing (NLP), can connect related topics and provide well-supported responses to intricate questions, making them valuable tools for religious education. However, LLMs are prone to hallucinations as they can generate inaccurate or irrelevant information, and these can include sensitive content that could be offensive, inappropriate, or controversial. Addressing such topics without inadvertently promoting hate speech or disrespecting certain beliefs remains a significant challenge. As a solution to these issues, we introduce MufassirQAS, a system that enhances LLM accuracy and transparency using a vector database-driven Retrieval-Augmented Generation (RAG) approach. We built a dataset comprising fundamental books containing Turkish translations and interpretations of Islamic texts. This database is leveraged to answer religious inquiries while ensuring that responses remain reliable and contextually grounded. Our system also presents the relevant dataset sections alongside the LLM-generated answers, reinforcing transparency. We carefully designed system prompts to prevent harmful, offensive, or disrespectful outputs, ensuring that responses align with ethical and respectful discourse. Moreover, MufassirQAS provides supplementary details, such as source page numbers and referenced articles, to enhance credibility. To evaluate its effectiveness, we tested MufassirQAS against ChatGPT with sensitive questions, and our system demonstrated superior performance in maintaining accuracy and reliability. Future work will focus on improving accuracy and refining prompt engineering techniques to further minimize biases and ensure even more reliable responses.
Motivation & Objective
- To address the challenge of hallucinations and inappropriate content in LLM-based religious chatbots.
- To enhance response reliability and transparency in sensitive religious question-answering contexts.
- To develop a system that grounds LLM outputs in authoritative Islamic texts with verifiable sources.
- To minimize offensive or disrespectful outputs through careful prompt engineering and ethical constraints.
- To evaluate the system’s performance against existing LLMs like ChatGPT on sensitive religious queries.
Proposed method
- The system uses a vector database to store and retrieve relevant passages from fundamental Turkish-translated Islamic texts.
- Retrieval-Augmented Generation (RAG) is employed to ground LLM responses in retrieved context from the database.
- System prompts are carefully engineered to prevent harmful, offensive, or disrespectful language.
- Responses include source references such as page numbers and article citations to enhance credibility and traceability.
- The pipeline integrates retrieval from a domain-specific knowledge base with LLM generation to improve factual consistency.
- A custom dataset of Turkish Islamic texts was constructed to support the retrieval and generation process.
Experimental results
Research questions
- RQ1Can RAG-based retrieval improve the factual accuracy of LLMs in religious question-answering tasks?
- RQ2To what extent does grounding LLM responses in authoritative Islamic texts reduce hallucination and bias?
- RQ3How does the system maintain ethical and respectful discourse when addressing sensitive religious topics?
- RQ4How does MufassirQAS compare to general-purpose LLMs like ChatGPT in handling complex or controversial religious queries?
- RQ5What impact do source citations and retrieval transparency have on user trust and response reliability?
Key findings
- MufassirQAS demonstrated superior performance to ChatGPT in maintaining accuracy and reliability when answering sensitive religious questions.
- The system successfully reduced hallucinations by grounding responses in retrieved passages from a curated Islamic text database.
- Ethical prompt engineering effectively prevented offensive, disrespectful, or inappropriate outputs.
- Providing source references such as page numbers and article citations enhanced the credibility and transparency of responses.
- The integration of RAG with domain-specific knowledge improved contextual grounding and response consistency.
- The system's design enables verifiable, traceable, and ethically aligned responses in high-stakes religious discourse.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.