Mustafti
Sign in

Mustafti is an AI tool, not a mufti or a preacher. It answers from trusted sources only.

Transparency & testing

How we test Mustafti, with published results.

Repository on GitHub

How it works

  • Classification: each question is first classified by language, asker type and level: general (A, B), disputed (C), personal case (D), or urgent.
  • Sources: relevant texts are retrieved from the approved references only (the official content server, approved sites and published fatwas).
  • Evidence [n]: the assistant answers fully from its knowledge and cites sources with [n] where they apply. Each number opens a card with the exact text and its original link.
  • The guard checks every sentence before it reaches you and acts in three cases only: (1) an attributed text (verse, hadith or scholar's words) that does not match a retrieved source is corrected to the source text, or given by meaning without attribution; (2) a personal fatwa on an individual case is blocked and the asker is referred; (3) a mention of the model's name or its provider, or offensive content, is removed.
  • Languages: the interface is in Arabic and English, with ten more languages in progress; the chat answers in the asker's language, whatever it is.
  • Referral: for a personal case, the key facts are clarified, a closely related published fatwa may be shown for reference only (verbatim excerpt and link), and an anonymous case file is referred to a specialist. Urgent cases are directed to the right authority at once.

What it does not do

  • It does not rule on your personal case or declare your worship or contract valid or invalid.
  • It does not invent attributed text: verses, hadiths and scholars' words appear verbatim from a source, or by meaning without attribution.
  • It does not search the general web, and it does not take sides on sensitive disputed issues.
  • It never names the language model or its provider, and always introduces itself as Mustafti.

Testing

Automated tests run on every change (classification, guard, retrieval, permissions, database), and live test pages for admins run the reference questions and measure answer completeness and time. The results table will be published here soon.

All the code is published in the repository for review and evaluation.

Repository on GitHub