Check the citations, do not trust the model
A model can sound sure and cite wrongly. Every citation is parsed and turned into a link to quran.com or sunnah.com, so a reader can verify it in one tap.
LLM Application · 2026
A Qur'an app with Qalam, an AI chatbot that talks like a person and backs every answer with the ayah or hadith it comes from, linked to its source.

The brief
Quranity is a Qur'an app, live on Google Play and the App Store, that brings Qur'an learning, accurate prayer times and AI guidance into one place. Its centrepiece is Qalam, a chatbot you can talk to like a person. It answers from the Qur'an and Hadith and cites the exact source for every answer, with a link to quran.com or sunnah.com. Qalam is educational guidance, not a replacement for a scholar's ruling, and it says so.
The problem
A model can sound right and still cite nothing, or cite something wrong. For religious guidance that is not acceptable: every answer has to point to a real ayah or hadith that a reader can check.
What I did
I built the Qalam guidance layer: the source policy, a prompt for each perspective, strict citation formats, and a check that parses every citation, builds a direct link to the source, and tries again when the references are weak. I also led the project as product manager.
The system
The mobile app on Google Play and the App Store, plus a multilingual website with an admin dashboard.
Accounts, subscriptions, prayer times, content and notifications behind the apps.
The chatbot service: a source policy, a prompt for each perspective, a citation check that links to quran.com and sunnah.com, and a second pass when references are weak.
Videos are processed in the background and served from cloud storage, so uploads never block the app.
Choices
A model can sound sure and cite wrongly. Every citation is parsed and turned into a link to quran.com or sunnah.com, so a reader can verify it in one tap.
A friendly conversation is what makes people use it. Every answer still ends with its source, so the tone never replaces the evidence.
Qalam is framed as educational guidance. It encourages users to ask a qualified scholar for binding rulings.
Capabilities
Problems
Problem
Answers could sound good but miss strict, verifiable citations.
Fix
I enforced citation formats in the prompts, parsed every citation with regular expressions, generated direct links to the sources, and added a second pass when the references were weak.
Problem
Video streaming and image loading did not work, and the AWS S3 bucket was not behaving the way I needed.
Fix
It took nearly a week of testing storage configuration, file access and media delivery separately before I found the causes. Now I validate cloud storage early and test media delivery on its own before putting everything together.
Stack
Qalam AI service (mine)
Platform
Mobile app
In my words
I wanted authentic Islamic knowledge to be easier to reach in everyday life. Quranity puts Qur'an learning, accurate prayer times and AI guidance in one simple app. I hoped technology could help Muslims strengthen their connection with Allah, and I wanted the AI to stay respectful of Islamic principles and grounded in trusted sources.
Video streaming and image loading would not work, and the S3 bucket did not behave as I expected. It looked like a simple integration and became nearly a week of debugging. I had to understand how storage configuration, file access and media delivery interact. The lesson I kept: validate cloud storage early, and test media delivery by itself before it goes into the final product.
The result
Qalam is live in the Quranity app on Google Play and the App Store, and every answer carries a source link. Its concise mode is designed to cut token cost by about 45%.
Next project
Hairlync
Computer Vision

I work on the AI layer: retrieval, reasoning and the code underneath. I hand it over ready to integrate.