Skip to content
All work
RAG & Search2024

Quranity

A live Qur'an app with Qalam, an AI assistant whose answers are grounded in Qur'an and Hadith retrieval.

A Qur'anic study app shipped on Google Play. Its centrepiece is Qalam, an AI assistant that answers questions by retrieving from Qur'an and Hadith sources rather than generating from model memory. The app also carries cinematic Qur'an stories and prayer times. Underneath sits a Python service exposing tajweed colour-coded Arabic text, word-by-word translation, grammatical breakdown, and tafsir, with full-text search over the corpus.

Primary technologies

  • Python
  • Flutter
  • Dart
  • RAG
  • Full-text search

01 / Context

What this project is

A Qur'anic study app shipped on Google Play. Its centrepiece is Qalam, an AI assistant that answers questions by retrieving from Qur'an and Hadith sources rather than generating from model memory. The app also carries cinematic Qur'an stories and prayer times. Underneath sits a Python service exposing tajweed colour-coded Arabic text, word-by-word translation, grammatical breakdown, and tafsir, with full-text search over the corpus.

Engineering problem

Religious answers are exactly where a model must not improvise. Every response has to trace back to a real source, which makes this a retrieval problem before it is a generation one.

Approach

Built the assistant as a retrieval-grounded system over structured Qur'an and Hadith data, with a full-text search layer beneath it, and carried the work through product management and QA as well as the AI layer.

02 / Architecture

How the system is structured

  1. 01

    Layer 01

    Structured Qur'an & Hadith corpus

    Tajweed colour-coded Arabic text, word-by-word translation, grammatical breakdown, and tafsir, normalised into one queryable structure.

  2. 02

    Layer 02

    Retrieval layer

    Full-text search over the corpus, so a question resolves to specific passages before any model is asked to phrase an answer.

  3. 03

    Layer 03

    Qalam assistant

    The response layer. It answers only from what retrieval returned, which is what keeps religious answers attributable.

03 / Engineering judgment

Decisions that shaped it

  1. 01

    Retrieval before generation

    Religious answers are exactly where a model must not improvise. Treating this as a search problem first made every answer traceable to a source.

  2. 02

    One corpus, many surfaces

    The same structured data powers the assistant, the reading view, and search — rather than maintaining separate content pipelines per feature.

04 / Stack

What it's built with

Application

  • Flutter
  • Dart

AI & retrieval

  • Python
  • RAG
  • Full-text search

05 / Capabilities

What it does

  1. 01

    Qalam — an AI assistant grounded in Qur'an and Hadith retrieval

  2. 02

    Cinematic Qur'an stories

  3. 03

    Prayer times

  4. 04

    Tajweed colour-coded Arabic with word-by-word translation

06 / Challenges

What was hard, and what fixed it

Challenge 01

Problem

A general-purpose model will confidently produce religious claims it cannot support, which is unacceptable in this domain.

Solution

Constrained the assistant to answer from retrieved passages only, so the failure mode becomes "no answer found" rather than a fabricated one.

07 / Outcome

What shipped

Live on Google Play with the Qalam assistant, Qur'an stories, and prayer times in production.

Next step

Have something like this
you need built properly?

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

© 2026 Md. Sakibur Rahman