Rafiq
You're offline — Rafiq will retry when reconnected
Rafiq
Folders
Recents
Esc to close

How Rafiq Answers

Rafiq does not answer from memory. It searches a library of the Quran, the hadith, tafsir and the works of scholars, then writes the reply from what that search found, with the sources shown under it.

What Rafiq searches

The library holds about 1.17 million passages:

  • The Quran, all 6,236 verses.
  • About 36,000 hadith from Sahih al-Bukhari, Sahih Muslim, the Sunan of Abu Dawud, al-Tirmidhi, al-Nasa'i and Ibn Majah, and the Muwatta of Imam Malik.
  • About 35,000 passages of tafsir, among them Ibn Kathir, al-Sa'di, al-Shanqiti's Adwa' al-Bayan, Ibn Uthaymeen, al-Shawkani and Abu al-Su'ud.
  • About 227,000 fatwas, among them those of Shaykh Ibn Baz, Shaykh Ibn Uthaymeen, the Permanent Committee for Scholarly Research and Ifta, and the fatwa centre of Islamweb.
  • Sections of classical and modern works, among them Ibn Taymiyyah, Ibn al-Qayyim, Ibn Qudamah, Ibn Hajar, al-Dhahabi and al-Albani.

How a reply is made

First Rafiq works out what is being asked. It reads past typos, follows on from earlier turns in the chat, and notices when a question is outside what it can answer.

Then it searches the library two ways, by meaning and by the words used, and looks to the scholars' rulings first. The passages it finds are ranked against the question, and only those close enough to it are kept.

A language model then writes the reply from those passages, and the sources it used are listed under the answer, so each one can be opened and read.

If the library holds nothing close enough to the question, Rafiq says so. It does not fill the gap with a guess.

Where scholars differ

Rafiq follows Ahl al-Sunnah wal-Jama'ah. Where the scholars differ on a ruling, it gives the Hanbali and Athari position first, then notes the other positions briefly and says whose they are. That leaning is stated here so that it is never hidden.

Questions that need more than a ruling

Some questions are not only questions of fiqh. When one touches a medical emergency, a person in danger at home, or a punishment that only a court may carry out, the answer opens with what to do first, such as seeing a doctor or getting to safety, before the ruling.

What an answer is not

An answer shows what the scholars said about a question. It is not a fatwa, and it is not a ruling on your own case. A question that turns on your own circumstances belongs with a qualified scholar who can hear them.

Checking an answer

Every source is linked under the answer. Read it, especially before acting on a ruling. If an answer is wrong, the flag under it sends a report saying what was wrong, and reports are read to correct Rafiq.

The model

The reply is written by DeepSeek, a language model. It is given the passages the search found and instructed to write from them.

More about RafiqAbout RafiqFrequently Asked QuestionsAn Islamic AI You Can CheckCan You Trust ChatGPT With Islamic Questions?How to Check Whether a Hadith Is AuthenticPrivacy PolicyTerms of UseCookie Policyالعربية
My Lord, increase me in knowledge وَقُل رَّبِّ زِدْنِي عِلْمًا Qur'an 20:114

You are reading a shared conversation.

Start your own conversation

A guide, not a fatwa · About · FAQ · Privacy · Terms · Cookies

Optional. Rafiq uses it only as what to call you.

Ask in Arabic and the answer comes back in Arabic too.

Used when you ask for today's prayer times.

Stronger text and border contrast (WCAG-oriented)
Preview — Bismillah. This is how answers and evidence will look at your chosen size and spacing.
Keyboard Shortcuts
Command palette CtrlShiftP
Export conversation CtrlShiftE
Toggle sidebar CtrlB
New chat CtrlK
Send message Enter
New line ShiftEnter
Stop generation Esc
Export conversation CtrlShiftE
Show shortcuts Ctrl/
Report Response

Tell us what went wrong in your own words. Only the first box is needed.

Regular Rafiq
Reporting answer to:
Answer excerpt: