Nooor
An AI that would rather show its sources than make something up.

In short
Nooor lets you ask about the Quran in everyday words. It answers only from well known books: explanations of the Quran (called tafsir) and records of what the Prophet Muhammad said and did (called hadith). Every sentence in its answer must point to the exact passage it came from, and a second AI checks that the passage really says that. If a check fails, Nooor does not guess. It shows you the passages so you can read them yourself. In a small test of 20 new questions, it found a right passage for 15 of them, up from 9. That is early evidence, not proof.
- What it is
- Semantic search with a grounded chat
- Built with
- Python, Weaviate, Docker Compose
- AI
- mxbai embeddings, DeepSeek
- Runs on
- My machine, with Docker Compose
- Tests
- Around 180, plus 50 scored questions
- Status
- Live at asknoor.org
Full stack: RAG, Semantic search, Weaviate, BM25 and hybrid search, ONNX embeddings, LLM query enrichment, hit@10, MRR, Grounded answers
Screens, full size



Screenshots of the real app running on my Mac, answering one of its own example questions. Select a picture to see it full size.
Everything below is for engineers: how it is built, what I measured and what went wrong.
The problem
The goal was simple to say: describe a problem in your own words and get the verses and commentary that speak to it. The hard part is knowing whether a change to the search made it better or only made it different. So the evaluation came first, and every setup was scored against the same questions.
How it works
Sources. The tafsir of Ibn Kathir and Maududi and the hadith of Sahih al Bukhari, each shown with its translation.
Ingestion. Each source is cleaned and split into units. A quality gate checks the units, and a failed check blocks the load. When a source changes, only the changed chunks are embedded again.
Search. Weaviate holds the vectors, and the mxbai large embedding model runs locally through ONNX. The search stack runs on my machine with Docker Compose and needs no API key. Only the enrichment step calls DeepSeek, which needs its own API key.
Enrichment. Before searching, an LLM (DeepSeek) pulls the domain terms out of the question. Search then runs on the question plus those terms.
How I measured it
An evaluation harness scores each setup on labelled questions: a main set of 30 and a held out set of 20 that I did not tune against. It compares vector, BM25 and hybrid search and different ways of packing passages, using hit@3, hit@10, MRR and recall@10.
| Question set | hit@10 before | hit@10 with query enrichment |
|---|---|---|
| Main set, 30 questions | 0.70 | 0.80 |
| Held out set, 20 questions | 0.45 | 0.75 |
hit@10 is the share of questions with a right passage in the top ten results. With samples this small, I treat the larger jump on the held out set with caution. The evaluation report has the questions and the full method.
The chat on top, and what is still missing
I also built a chat that answers from the retrieved passages. Every sentence about Islam has to cite a passage by its id. A turn goes through these steps:
| Step | What happens |
|---|---|
| Guard | Caps length, masks phones, emails and ID numbers |
| Rewrite | Turns a follow up into a question that stands on its own |
| Enrich | Pulls the domain terms out of the question |
| Retrieve | Takes the top passages from each source and merges them |
| Answer | Writes a reply that cites the passages it uses by id |
| Validate | Twelve code rules check the shape, the ids and the wording |
| Judge | A second model checks each cited sentence is supported |
| Fall back | After two failed attempts, shows only the sources |
How often a turn produced a checked answer, run by run in October 2026:
| Test run | Turns | Answered | Only sources |
|---|---|---|---|
| Message splitter fixed | 20 | 11 (55%) | 9 |
| Validator softened | 21 | 12 (57%) | 9 |
| Second judge added | 28 | 21 (75%) | 7 |
| Latest run, 23 October | 71 | 67 (94%) | 4 |
An earlier review found answers that listed passages without answering what was asked. Messages that may signal danger, such as grief with thoughts of not wanting to live, are flagged, but the chat has no help contact or safe reply for them yet. The chat is now public at asknoor.org, and that safety path is the next thing I am building.
Where it stands
Nooor is live at asknoor.org. The repository is private, so the evaluation report shows the questions, the scores and what is still wrong. Retrieval is measured and working. The chat is usable but not finished: the safety path for danger messages comes first.