Grounding Arabic LLMs in the Doha Historical Dictionary: Retrieval-Augmented Understanding of Quran and Hadith

arXiv cs.CL / 3/26/2026

💬 OpinionSignals & Early TrendsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper proposes a retrieval-augmented generation (RAG) framework that grounds Arabic LLM outputs in diachronic lexicographic knowledge from the Doha Historical Dictionary of Arabic (DHDA) to better handle complex historical and religious texts like the Quran and Hadith.
  • It uses a hybrid retrieval strategy combined with an intent-based routing mechanism to supply LLMs with precise, contextually relevant evidence drawn specifically from DHDA rather than general-purpose corpora.
  • Experiments report improved accuracy for Arabic-native models such as Fanar and ALLaM to over 85%, reducing the performance gap versus the proprietary Gemini model.
  • The evaluation approach leverages “LLM-as-a-judge” with Gemini and validates results via human evaluation, showing high agreement (kappa = 0.87).
  • The study identifies recurring linguistic challenges—especially diacritics and compound expressions—and releases code and resources publicly for reproducibility.

Abstract

Large language models (LLMs) have achieved remarkable progress in many language tasks, yet they continue to struggle with complex historical and religious Arabic texts such as the Quran and Hadith. To address this limitation, we develop a retrieval-augmented generation (RAG) framework grounded in diachronic lexicographic knowledge. Unlike prior RAG systems that rely on general-purpose corpora, our approach retrieves evidence from the Doha Historical Dictionary of Arabic (DHDA), a large-scale resource documenting the historical development of Arabic vocabulary. The proposed pipeline combines hybrid retrieval with an intent-based routing mechanism to provide LLMs with precise, contextually relevant historical information. Our experiments show that this approach improves the accuracy of Arabic-native LLMs, including Fanar and ALLaM, to over 85\%, substantially reducing the performance gap with Gemini, a proprietary large-scale model. Gemini also serves as an LLM-as-a-judge system for automatic evaluation in our experiments. The automated judgments were verified through human evaluation, demonstrating high agreement (kappa = 0.87). An error analysis further highlights key linguistic challenges, including diacritics and compound expressions. These findings demonstrate the value of integrating diachronic lexicographic resources into retrieval-augmented generation frameworks to enhance Arabic language understanding, particularly for historical and religious texts. The code and resources are publicly available at: https://github.com/somayaeltanbouly/Doha-Dictionary-RAG.