[论文解读] Improving LLM Reliability with RAG in Religious Question-Answering: MufassirQAS
本文介紹了 MufassirQAS,這是一種檢索增強生成(RAG)系統,透過將回應建立在精心整理的土耳其語伊斯蘭文本資料庫上,提升大型語言模型(LLMs)在宗教問答中的可靠性。透過從向量資料庫檢索內容並使用經過道德設計的提示,該系統減少幻覺,確保回答準確、透明且尊重,其在敏感宗教問題上的表現優於 ChatGPT。
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.
研究动机与目标
- 解決基於 LLM 的宗教聊天機器人中幻覺與不當內容的挑戰。
- 提升在敏感宗教問答情境中回應的可靠性與透明度。
- 開發一種將 LLM 輸出建立在權威伊斯蘭文本上的系統,並提供可驗證的來源。
- 透過仔細設計的提示工程與道德約束,最小化冒犯性或不尊重的輸出。
- 評估該系統在處理敏感宗教問題時,與現有 LLM(如 ChatGPT)的表現差異。
提出的方法
- 系統使用向量資料庫儲存並從基本土耳其語翻譯的伊斯蘭文本中檢索相關段落。
- 採用檢索增強生成(RAG)技術,將 LLM 的回應建立在資料庫中檢索到的內容上。
- 系統提示經過精心設計,以防止產生有害、冒犯或不尊重的語言。
- 回應包含來源引用,例如頁碼與文章引用,以提升可信度與可追溯性。
- 該流程整合來自領域特定知識庫的檢索與 LLM 的生成,以提升事實一致性。
- 建立了一個專用的土耳其伊斯蘭文本資料集,以支援檢索與生成流程。
实验结果
研究问题
- RQ1基於 RAG 的檢索是否能提升 LLM 在宗教問答任務中的事實準確性?
- RQ2將 LLM 回應建立在權威伊斯蘭文本上,能在多大程度上減少幻覺與偏見?
- RQ3在處理敏感宗教議題時,該系統如何維持道德且尊重的對話?
- RQ4MufassirQAS 在處理複雜或具爭議性的宗教問題時,與通用 LLM(如 ChatGPT)相比表現如何?
- RQ5來源引用與檢索透明度對使用者信任與回應可靠性有何影響?
主要发现
- MufassirQAS 在回答敏感宗教問題時,表現優於 ChatGPT,展現出更高的準確性與可靠性。
- 該系統透過將回應建立在精心整理的伊斯蘭文本資料庫檢索段落上,成功減少幻覺。
- 道德提示工程有效防止了冒犯性、不尊重或不當的輸出。
- 提供如頁碼與文章引用等來源資訊,提升了回應的可信度與透明度。
- RAG 與領域特定知識的整合,改善了上下文的依據與回應的一致性。
- 該系統的設計可實現可驗證、可追溯且符合道德的回應,適用於高風險的宗教對話情境。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。