Downloads · 30 days
0
musabalosimi/bayaan
bayaan is a sentence similarity model from musabalosimi. Use it when you need a score for how close two texts are. The card lists the license as mit.
[](https://www.python.org/downloads/) [](https://flask.palletsprojects.com/) [](LICENSE) [](http://localhost:5001)
Downloads · 30 days
0
Access
Public
Updated Jul 1, 2025
Repo size
2.8 GB
Likes
1
Public
Click a slice to open those files.
.csv1.3 GB · 66%
From the Hugging Face model README
Bayaan is an AI-powered Quran Tafseer search system that uses multiple machine learning models to find relevant Islamic interpretations from 219,000 records across 84 scholarly books. It automatically picks the best AI approach for your query - simple keywords use TF-IDF, contextual searches use Word2Vec/BERT, making it like having an intelligent Islamic library at your fingertips.

Bayaan is powered by the comprehensive Quran-Tafseer dataset from Hugging Face, created by MohamedRashad. This dataset is a goldmine for anyone interested in Islamic studies, natural language processing, or understanding the Quran's deeper meanings.
| Column | Description | Example |
|---|---|---|
surah_name | Name of the Quran chapter | "Al-Fatiha", "Al-Baqarah" |
revelation_type | Where the Surah was revealed | "Meccan" or "Medinan" |
ayah | The specific Quranic verse | "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ" |
tafsir_book | Source of the interpretation | "Ibn Kathir", "Al-Jalalayn" |
tafsir_content | The actual scholarly commentary | Detailed Arabic interpretation |
Bayaan doesn't just do keyword matching - it understands context, meaning, and relationships between concepts using multiple AI approaches:
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Query Input │───▶│ Hybrid Router │───▶│ AI Models │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │
▼ ▼
┌──────────────────┐ ┌─────────────────────┐
│ Query Analysis │ │ • TF-IDF Matrix │
│ - Length Check │ │ • Word2Vec Vectors │
│ - Complexity │ │ • BERT Embeddings │
│ - Language │ │ • SentenceTransform│
└──────────────────┘ └─────────────────────┘
│ │
▼ ▼
┌──────────────────┐ ┌─────────────────────┐
│ Result Ranking │◀───│ Similarity Engine │
│ - Cosine Sim │ │ - Vector Matching │
│ - Score Fusion │ │ - Context Analysis │
└──────────────────┘ └─────────────────────┘
| File | Description | Required | Size |
|---|---|---|---|
tafseer.csv | Main Tafseer dataset | ✅ Yes | Variable |
w2v_vectors.npy | Pre-computed Word2Vec embeddings | ⚠️ Optional | ~100MB |
bert_vectors.npy | Pre-computed BERT embeddings | ⚠️ Optional | ~200MB |
tafsir_embeddings.npy | SentenceTransformer embeddings | ⚠️ Optional | ~300MB |