[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-273769-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-273769-en":131,"doc-similar-273769":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","ansari-a-retrieval-grounded-islamic-ai-assistant-architecture-deployment-and-lessons-from-140000-conversations","Ansari - A Retrieval-Grounded Islamic AI Assistant Architecture, Deployment, and Lessons from 140,000 Conversations","","General-purpose large language models increasingly answer religious questions, yet Islamic use exposes two major risks: factual fabrication and subtle value misalignment. Ansari is a deployed retrieval-grounded Islamic AI assistant that has handled 140,000+ conversations across 25+ languages since June 2023. Built on an agentic retrieval loop, it searches authenticated Islamic corpora—Qur’an, hadith, fiqh, and tafsir—and answers only retrieved text with citations. The paper covers architecture, multi-platform deployment, and evaluations, extracting lessons for any faith- or values-sensitive LLM system.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/ansari-a-retrieval-grounded-islamic-ai-assistant-architecture-deployment-and-lessons-from-140000-conversations/273769/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/ansari-a-retrieval-grounded-islamic-ai-assistant-architecture-deployment-and-lessons-from-140000-conversations/273769.png","ImageObject",300,407,{"name":42,"@type":43},"Seraphina","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-09-15",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",15,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problems does Ansari target in Islamic question answering with LLMs?","Question",{"text":63,"@type":64},"Ansari targets two key risks: factual fabrication (invented Qur’anic verses or hadith) and subtle value misalignment that can conflict with Islamic guidance.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does Ansari ensure answers are faithful and verifiable?",{"text":68,"@type":64},"Ansari uses an agentic retrieval loop: it searches authenticated Islamic corpora and answers only based on retrieved text, attaching citations for verification.",{"name":70,"@type":61,"acceptedAnswer":71},"What evaluations does the paper report for Ansari?",{"text":72,"@type":64},"The paper reports multiple complementary evaluations, including zero-shot performance on accredited institutional exams and human-rated validation during Ramadan, plus externally run benchmarks such as IslamicMMLU and IslamicLegalBench.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},273769,1790083847,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":124,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},962075114101,"https://ap-avatar.wpscdn.com/avatar/e000253a75eb197efd?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780044092746381165","arXiv : 2608 .20390v 1 [cs .CL] 30 Jun 2026  \nAnsari: A Retrieval-Grounded Islamic AI Assistant Architecture, Deployment, and Lessons from 140,000 Conversations  \nM Waleed Kadous Amr Elsayed Abdullah Al Nahas Ashraf Haress  \nThe Ansari Project  \nAbstract  \nGeneral-purpose large language models (LLMs) are increasingly used to answer religious questions, but for Islamic content they carry two serious risks: factual fabrication (inventing Qur’anic verses or hadith) and subtle value misalignment. We present Ansari, a deployed, retrieval-grounded Islamic AI assistant that has handled more than 140,000 conversations across 25+ languages since June 2023 . Ansari is built around an agentic retrieval loop: a tool-using language model issues searches against authenticated Islamic corpora—the Qur’an, hadith collections, a multi-volume jurisprudence (fiqh) encyclopedia, and exegetical (tafsir) sources—and answers only on the basis of what it retrieves, with citations attached for verification. We describe the system’s architecture (the agent loop, the retrieval tools, the corpora, and the system prompt that encodes editorial and theological policy), its multi-platform deployment (web, mobile, WhatsApp, and as a Model Context Protocol server and an Agent Skill), and what 140,000 real conversations reveal about how Muslims actually use such a tool. We report results on several complementary evaluations—zero-shot performance on accredited institutional exams, a human-rated validation during Ramadan, and two independent, externally run benchmarkson which Ansari currently tops the public IslamicMMLU leaderboard ahead of frontier models and is competitive on Islamic legal reasoning (IslamicLegalBench) while strongly resisting false premises—and draw out lessons that generalize beyond Islam to any faith-or values-sensitive deployment of LLMs: grounding is necessary but not suﬀicient, the system prompt is a theological as much as a technical artifact, and the absence of community in how models are formed remains a hard gap.  \n1 Introduction  \nThe arrival of capable conversational LLMs changed how ordinary people seek information, and religious knowledge was no exception. Within months of ChatGPT’s release, Muslims were asking general-purpose models about prayer, fasting, inheritance, and the meaning of Qur’anic verses. The convenience is real; so is the danger. A general model, optimized to be fluent and agreeable, will confidently produce a plausible-sounding hadith that does not exist, mis-cite a verse, or flatten a centuries-old juristic disagreement into a single confident ruling. The failures are concrete, not hypothetical: as recently as mid-2025, ChatGPT would tell users that washing the knees was a preferred step of ablution (wudu), a practice mentioned in no Qur’anic verse, hadith, or school of Islamic law. In a domain where a misattributed text can mislead someone’s worship, fluency without grounding is a liability.  \nAnsari (“the helper,” after the Ansar, the people of Madinah who sheltered the Prophet Muhammad)1 is our response to that gap: a deployed Islamic AI assistant designed so that authenticity  \n1 Live at [https://askansari.ai](https://askansari.ai) ; open-source code at [https://github.com/ansari-project](https://github.com/ansari-project).  \nand accuracy are structural properties of the system rather than hopes about the model. Since June 2023 it has answered more than 140,000 conversations in over 25 languages, across the web, native mobile apps, and WhatsApp, and more recently as a Model Context Protocol (MCP) server and an Agent Skill embedded inside other assistants.  \nThis paper is a system-and-experience report. We make four contributions:  \n1. A grounded architecture for a values-sensitive domain. We describe an agentic retrieval-augmented design in which a tool-using language model searches authenticated Islamic corpora and answers only from retrieved text, with native citations. We ground the description in the actu","cbCaikC2kfStT2cr","https://ap.wps.com/l/cbCaikC2kfStT2cr","pdf",108585,"English","# Introduction\n# Background and related work\n# System architecture and deployment\n## Agentic retrieval loop\n## Retrieval tools and corpora\n## Multi-platform deployment\n# Usage study of real demand\n# Evaluation and benchmarks\n## IslamicMMLU\n## IslamicLegalBench\n## Institutional exams and human validation\n# Transferable lessons","[{\"question\":\"What problems does Ansari target in Islamic question answering with LLMs?\",\"answer\":\"Ansari targets two key risks: factual fabrication (invented Qur’anic verses or hadith) and subtle value misalignment that can conflict with Islamic guidance.\"},{\"question\":\"How does Ansari ensure answers are faithful and verifiable?\",\"answer\":\"Ansari uses an agentic retrieval loop: it searches authenticated Islamic corpora and answers only based on retrieved text, attaching citations for verification.\"},{\"question\":\"What evaluations does the paper report for Ansari?\",\"answer\":\"The paper reports multiple complementary evaluations, including zero-shot performance on accredited institutional exams and human-rated validation during Ramadan, plus externally run benchmarks such as IslamicMMLU and IslamicLegalBench.\"}]","Ansari - A Retrieval-Grounded Islamic AI Assistant Architecture, Deployment, and Lessons from 140,000 Conversations | PDF",1789472755,25,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f1d4592bd8f4d4c9ec8c79282860dc3b.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a8214a955fbeeaf4d76fe16e94bd5749.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/daf6e37bb26e51c78eddc9cffb39c76a.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/deb36b2385714f921a8c5a0bca2fc303.webp",980,1268,{"list":164,"token":11},[165,172,179,186,192,199,205,212,219,226],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},3494,"Method and Theory in the Study of Islamic Origins","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696119393/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=tOr5UjKOgjgS913BmRdVxnv2%2FkM%3D","method-and-theory-in-the-study-of-islamic-origins",75,1776303358,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},85547,"IslamicMMLU: A Benchmark for Evaluating LLMs on Islamic Knowledge","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809324391/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=xwf15zCD%2FN1X113YMezX8SMrtEE%3D","islamicmmlu-a-benchmark-for-evaluating-llms-on-islamic-knowledge",23,1784204373,{"doc_id":180,"doc_title":181,"file_type":138,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},83408,"ProjAgent: Procedural Similarity Retrieval for Repository-Level Code Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808971364/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=2YftqIQtLtCi7YtqQct2uwIu%2FIA%3D","projagent-procedural-similarity-retrieval-for-repository-level-code-generation",29,1784187358,{"doc_id":187,"doc_title":188,"file_type":138,"home_preview_img_url":189,"slug":190,"view_count":184,"category_name":29,"create_tm":191},82778,"Candidate Constrained Retrieval Augmented Generation for LongEval RAG System Design and Empirical Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808788874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=jqKLakObGhZ3wrZ8Fg7%2BLlqyKmw%3D","candidate-constrained-retrieval-augmented-generation-for-longeval-rag-system-design-and-empirical-analysis",1784182881,{"doc_id":193,"doc_title":194,"file_type":138,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":29,"create_tm":198},273732,"Hadith computational science in the age of large language models: a critical narrative review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899962149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=FoJ3EZHBZ16Sxnz7EXTkfOzVx34%3D","hadith-computational-science-in-the-age-of-large-language-models-a-critical-narrative-review",13,1789472658,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":124,"category_name":29,"create_tm":204},273616,"DeepWeaver - Bridging the Evidence Synthesis Gap in Open-Ended Question Answering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899553848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=x6wlfuSV%2Bx%2Bx%2BBR4PSw3jEQF5Rg%3D","deepweaver-bridging-the-evidence-synthesis-gap-in-open-ended-question-answering",1789472289,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},273455,"HYPERSKILL - Self-Evolving LLM Agents via Hypergraph-Structured Skill Memory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899938238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=xFUCPGbbLdsUqQUtHK3wh9Ihojs%3D","hyperskill-self-evolving-llm-agents-via-hypergraph-structured-skill-memory",18,1789471499,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},82187,"AgentKGV Agentic LLM-RAG Framework with Two-Stage Training for the Fact Verification of Knowledge Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808675362/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=L8X5kgZ8C0RtNevEsRQ123DPUwE%3D","agentkgv-agentic-llm-rag-framework-with-two-stage-training-for-the-fact-verification-of-knowledge-graphs",35,1784178688,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},82319,"Deceptive Grounding: Entity Attribution Failure in Clinical Retrieval-Augmented Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808731414/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=Oi8fCvCtV872zowgi2op1QAbdlo%3D","deceptive-grounding-entity-attribution-failure-in-clinical-retrieval-augmented-generation",38,1784179571,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":197,"category_name":29,"create_tm":231},273508,"Towards Safer RAG - Only Agents Capable of System 2 Thinking may Access Untrusted Documents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899943510/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796222879&Signature=p3i4tJpp6vTWyBCrIFT3ZEraj%2Bs%3D","towards-safer-rag-only-agents-capable-of-system-2-thinking-may-access-untrusted-documents",1789471778]