content stringlengths 9 3.43k | meta dict | embeddings listlengths 768 768 |
|---|---|---|
أصول الإيمان
لسماحة الشيخ عبد العزيز بن باز الرئيس العام لإدارات البحوث العلمية والإفتاء والدعوة والإرشاد
الحمد لله رب العالمين, والصلاة والسلام على عبده ورسوله وخيرته من خلقه وأمينه على وحيه ونبينا وإمامنا محمد بن عبد الله وعلى آله وأصحابه ومن سلك سبيله واهتدى بهداه إلى يوم الدين.
أما بعد..
أيها الإخوة الكرام: حديثي م... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 1
} | [
-0.006021053064614534,
-0.027087869122624397,
0.006892203353345394,
-0.015297997742891312,
0.03662934899330139,
0.032060060650110245,
-0.04859606921672821,
0.045750707387924194,
0.02595970407128334,
0.02601449377834797,
0.0029063322581350803,
0.03147890418767929,
-0.007566787768155336,
0.0... |
وعن أسمائه وصفاته، وعن أصول هذا الدين، وعن شئون يوم القيامة والجنة والنار، وعن الرسل وأممهم حتى يجد القارئ في كل موضع من كتاب الله ما يزداد به إيمانه وعلمه، وحتى يطلب المزيد من العلم في كل موضع من كتاب الله عز وجل، وفي كل حديث عن رسول الله صلى الله عليه وسلم، قال عز وجل: {يَا أَيُّهَا الَّذِينَ آمَنُوا آمِنُوا بِاللَّه... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 2
} | [
-0.004852856043726206,
-0.01696637086570263,
0.011994423344731331,
-0.01380161289125681,
0.03935295343399048,
0.04116630554199219,
-0.03130592778325081,
0.0385926179587841,
0.018607042729854584,
0.014602930285036564,
-0.001707844203338027,
0.021072857081890106,
-0.0045017520897090435,
-0.0... |
ومن هذا الباب ما جاء في الحديث الصحيح، قيل: يا رسول الله أي الإسلام أفضل؟ قال: "أن تطعم الطعام وتقرأ السلام على من عرفت ومن لم تعرف"، وفي حديث آخر قال: "من سلم المسلمون من لسانه ويده".
فالإسلام أخص بالأعمال الظاهرة التي يظهر بها الانقياد لأمر الله والطاعة له والإتباع لشريعته وتحكيمها في كل شيء، والإيمان أخصّ بالأمور ال... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 3
} | [
-0.017140228301286697,
-0.023943381384015083,
0.007323278114199638,
-0.011504345573484898,
0.034139201045036316,
0.03562032803893089,
-0.025346865877509117,
0.03493150323629379,
0.015069359913468361,
0.02261956036090851,
-0.006607453338801861,
0.019714301452040672,
-0.004084551241248846,
-... |
يصم أولم يزك, أولم يحج, أو غير ذلك من شعائر الإسلام الظاهرة التي أوجبها الله عليه, فإن ذلك دليل على عدم إيمانه أو على ضعف إيمانه, فقد ينتفي الإيمان بالكلية كما تنتفي الشهادتين إجماعاً, وقد لاينتفي أصله ولكن ينتفي تمامه وكماله لعدم آدائه ذلك الواجب المعين كالصوم والحج مع الإستطاعة والزكاة ونحو ذلك من الأمور عند جمهور أه... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 4
} | [
-0.010241447016596794,
-0.04091829061508179,
0.007055490743368864,
-0.007237429264932871,
0.03354606777429581,
0.03938665986061096,
-0.02941463515162468,
0.029342077672481537,
0.030974654480814934,
0.02743300423026085,
-0.0001608535530976951,
0.02608954720199108,
-0.01379925012588501,
-0.0... |
قال النبي صلى الله عليه وسلم: "أو مسلمًا" فعاد سعد إلى مقالته والنبي صلى الله عليه وسلم يقول: "أو مسلمًا" والمقصود أن الإسلام والإيمان عند الاقتران لهما معنيان، معنى أخص ومعنى أعم، فالمسلم أعم من المؤمن، والمؤمن أخص من المسلم، فكل مؤمن مسلم ولا عكس، ولكن عند الإطلاق يدخل أحدهما في الآخر كما سبق بيان ذلك.
وما يدل على ذل... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 5
} | [
-0.01274176687002182,
-0.02280207723379135,
0.009613435715436935,
-0.01173762883991003,
0.034568384289741516,
0.0427456796169281,
-0.03668712079524994,
0.03767092898488045,
0.02465355210006237,
0.021591413766145706,
-0.00403761537745595,
0.018299276009202003,
-0.006762702949345112,
-0.0027... |
وَعَمِلُوا الصَّالِحَاتِ وَتَوَاصَوْا بِالْحَقِّ وَتَوَاصَوْا بِالصَّبْرِ} ؛ فالتواصي بالحق والتواصي بالصبر هما من جملة الأعمال الصالحات، والعمل الصالح من جملة الإيمان، فعطف العمل على الإيمان من عطف الخاص على العام، وهكذا عطف التواصي بالحق والتواصي بالصبر على ما قبله هو من عطف الخاص على العام، فالتواصي بالحق والتواصي ب... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 6
} | [
-0.004431818146258593,
-0.018527191132307053,
0.006432526279240847,
-0.022899441421031952,
0.03632037714123726,
0.03072245605289936,
-0.027624765411019325,
0.03835466131567955,
0.024167019873857498,
0.01591186411678791,
-0.0036368316505104303,
0.013347632251679897,
-0.00803525559604168,
-0... |
وأفعاله، ويدخل فيه أنه سبحانه وتعالى أرسل الرسل وأنزل الكتب وقدر الأشياء وعلم بها قبل وجودها سبحانه وتعالى، وأنه على كل شيء قدير وبكل شئ عليم، ومن أجمع ما ورد في ذلك من الكتاب العزيز قوله سبحانه: {قُلْ هُوَ اللَّهُ أَحَدٌ اللَّهُ الصَّمَدُ لَمْ يَلِدْ وَلَمْ يُولَدْ وَلَمْ يَكُنْ لَهُ كُفُواً أَحَدٌ} ، وقوله سبحانه: {ل... | {
"author_name": "عبد العزيز بن عبد الله بن باز ",
"doc_name": "أصول الإيمان",
"paragraph_number": 7
} | [
-0.007859242148697376,
-0.0073619382455945015,
0.006062748841941357,
-0.00030408360180445015,
0.03087082877755165,
0.028489986434578896,
-0.04736683517694473,
0.02817116118967533,
0.007010126020759344,
0.01735609583556652,
0.002115496201440692,
0.01879962347447872,
0.004219866823405027,
-0... |
[توطئة]
الإسلام أصوله ومبادؤه | {
"author_name": "محمد بن عبد الله بن صالح السحيم",
"doc_name": "الإسلام أصوله ومبادئه",
"paragraph_number": 1
} | [
0.014431675896048546,
-0.0052285087294876575,
0.007514315657317638,
-0.08084403723478317,
0.04510810971260071,
0.05097242817282677,
-0.09585011750459671,
0.050994351506233215,
0.031153202056884766,
-0.005697938147932291,
-0.004305307753384113,
0.022765187546610832,
0.0010576017666608095,
0... |
بسم الله الرحمن الرحيم
توطئة الحمد لله الذي أرسل رسوله بالهدى ودين الحق، والحمد لله الذي جعلنا من أتباع محمد صلى الله عليه وسلم، والحمد لله الذي من علينا فجعلنا من المتمسكين بهديه، الداعين إلى سبيله.
وأشهد أن لا إله إلا الله وحده لا شريك له، إله الأولين والآخرين، وقيوم السماوات والأرضين، أذعن له البر والفاجر، وشهدت بعد... | {
"author_name": "محمد بن عبد الله بن صالح السحيم",
"doc_name": "الإسلام أصوله ومبادئه",
"paragraph_number": 2
} | [
-0.013181544840335846,
-0.006795125547796488,
0.018342969939112663,
-0.018911883234977722,
0.03131653368473053,
0.02279866300523281,
-0.08867692202329636,
0.04214364290237427,
0.008665245957672596,
0.018537169322371483,
0.0072001684457063675,
0.026588715612888336,
-0.010698589496314526,
-0... |
"(1) يدعون من ضل إلى الهدى، ويحذرون الخلق من الهلاك والرد(...TRUNCATED) | {"author_name":"محمد بن عبد الله بن صالح السحيم","doc_name":"الإسلام(...TRUNCATED) | [-0.009786419570446014,-0.007954481057822704,0.011540106497704983,-0.04254349321126938,0.02564809843(...TRUNCATED) |
Aqeedah RAG Dataset 📚
A curated Arabic Islamic theology (Aqeedah) dataset with pre-computed FAISS embeddings, designed for advanced Retrieval-Augmented Generation (RAG) applications in Islamic scholarly research.
📋 Dataset Description
This dataset represents a specialized collection of 5419 paragraphs from authoritative Islamic theology texts, meticulously compiled and structured for computational analysis. The corpus focuses specifically on Aqeedah (Islamic creed), covering foundational topics in Islamic belief and theology.
Key Features:
- Authentic Arabic content with complete diacritics (Tashkeel) preserved for linguistic accuracy
- Pre-computed semantic embeddings (768-dimensional dense vectors) using state-of-the-art Arabic language models
- Rich scholarly metadata including source document names, author attributions, and precise paragraph references
- Optimized FAISS index for millisecond-scale semantic similarity search
- Hybrid retrieval support combining traditional keyword-based (BM25) and modern neural approaches
🎓 Research Context
This dataset was developed as part of an academic research initiative at Najran University, Kingdom of Saudi Arabia, under the supervision of Dr. Alya Alamodi, a distinguished scholar holding a Ph.D. in Islamic Theology (Aqeedah). Dr. Alamodi's expertise in classical Islamic sciences combined with modern computational approaches has shaped the careful curation and theological accuracy of this corpus.
The technical implementation and AI infrastructure were designed and developed by Abdullah Alamodi, M.Sc. candidate in Artificial Intelligence at IU International University of Applied Sciences, Germany. This collaboration represents an interdisciplinary effort bridging traditional Islamic scholarship with cutting-edge natural language processing and information retrieval technologies.
Research Objectives
- Democratizing Access: Making authoritative Aqeedah knowledge computationally accessible for researchers and students
- Semantic Search: Enabling meaning-based retrieval beyond keyword matching in classical Arabic texts
- AI-Assisted Learning: Supporting intelligent question-answering systems for Islamic education
- Scholarly Validation: Establishing benchmarks for Arabic NLP in religious domain-specific applications
📚 Source Texts
This dataset comprises carefully selected paragraphs from the following authoritative Islamic theology works:
- شرح الطحاوية (Sharh al-Tahawiyyah) - صدر الدين محمد بن علاء الدين علي بن محمد ابن أبي العز الحنفي (Volumes 1-2)
- كتاب التوحيد (Kitab al-Tawhid) - محمد بن عبد الوهاب
- شرح العقيدة الواسطية (Sharh al-Aqidah al-Wasitiyyah) - محمد بن صالح بن محمد العثيمين (Volumes 1-2)
- القول المفيد على كتاب التوحيد (Al-Qawl al-Mufid 'ala Kitab al-Tawhid) - محمد بن صالح بن محمد العثيمين (Volumes 1-4)
- القول السديد شرح كتاب التوحيد (Al-Qawl al-Sadid Sharh Kitab al-Tawhid) - عبد الرحمن بن ناصر السعدي
- أصول الإيمان (Usul al-Iman) - عبد العزيز بن عبد الله بن باز
- الوجيز في عقيدة السلف الصالح أهل السنة والجماعة (Al-Wajiz fi Aqidah al-Salaf al-Salih) - عبد الله بن عبد الحميد الأثري
- الإسلام أصوله ومبادئه (Al-Islam: Usuluhu wa Mabadi'uhu) - محمد بن عبد الله بن صالح السحيم
- فتاوى نور على الدرب (Fatawa Nur 'ala al-Darb) - محمد بن صالح بن محمد العثيمين (Volumes 1-4)
🗂️ Dataset Structure
Data Fields
paragraph_text(string): The Arabic text content with complete diacritical marksdoc_name(string): Title of the source Islamic textauthor_name(string): Name of the classical or contemporary scholarparagraph_number(int): Sequential paragraph identifier within the source documentembeddings(list of float): Pre-computed 768-dimensional embedding vector (L2-normalized)
Data Splits
This dataset contains a single split with 5419 carefully selected paragraphs from verified Islamic theology sources.
🤖 Embedding Model
Model: aubmindlab/bert-base-arabertv02
Technical Specifications:
- Architecture: BERT-Base (12 layers, 768 hidden dimensions)
- Pre-training: Arabic Wikipedia + other Arabic corpora
- Embedding Dimension: 768
- Text Normalization: Light preprocessing (preserves diacritics for theological accuracy)
- Pooling Strategy: Attention-masked average pooling
- Vector Normalization: L2 normalization for cosine similarity compatibility
🚀 Usage
Installation
pip install datasets faiss-cpu torch transformers pyarabic rank-bm25
Quick Start
from datasets import load_dataset
import torch
from transformers import AutoTokenizer, AutoModel
import pyarabic.araby as araby
# Load dataset with FAISS index
dataset = load_dataset("abdullah-alamodi/aqeedah-rag-dataset")
# Load the embedding model
model_name = "aubmindlab/bert-base-arabertv02"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name)
# Add FAISS index for fast retrieval
dataset['train'].add_faiss_index(column="embeddings")
# Helper function for embedding
def get_embedding(text):
normalized = araby.normalize_hamza(text)
text_input = f"query: {normalized}"
inputs = tokenizer([text_input], padding=True, truncation=True,
max_length=512, return_tensors='pt')
with torch.no_grad():
outputs = model(**inputs)
# Average pooling
embeddings = outputs.last_hidden_state.mean(dim=1)
embeddings = torch.nn.functional.normalize(embeddings, p=2, dim=1)
return embeddings[0].numpy()
# Search example
query = "ما معنى شهادة أن لا إله إلا الله؟"
query_embedding = get_embedding(query)
# Find top 5 similar documents
scores, retrieved = dataset['train'].get_nearest_examples(
"embeddings",
query_embedding,
k=5
)
# Display results
for i, (score, text, meta) in enumerate(zip(
scores,
retrieved['content'],
retrieved['meta']
)):
print(f"النص المسترجع للسؤال {i+1}".center(80, '-'))
print(f"Score: {score:.4f}")
print(f"Document: {meta['doc_name']} by {meta['author_name']}")
print(f"Paragraph: {meta['paragraph_number']}")
print(f"Text: {text[:200]}...")
print("\n")
Hybrid Search (BM25 + Dense)
from rank_bm25 import BM25Okapi
import numpy as np
import pyarabic.araby as araby
from datasets import load_dataset
from transformers import AutoTokenizer, AutoModel
import torch
# Load dataset with FAISS index
dataset = load_dataset("abdullah-alamodi/aqeedah-rag-dataset")
# Load the embedding model
model_name = "aubmindlab/bert-base-arabertv02"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name)
# Add FAISS index for fast retrieval
dataset['train'].add_faiss_index(column="embeddings")
# Helper function for embedding
def get_embedding(text):
normalized = araby.normalize_hamza(text)
text_input = f"query: {normalized}"
inputs = tokenizer([text_input], padding=True, truncation=True,
max_length=512, return_tensors='pt')
with torch.no_grad():
outputs = model(**inputs)
# Average pooling
embeddings = outputs.last_hidden_state.mean(dim=1)
embeddings = torch.nn.functional.normalize(embeddings, p=2, dim=1)
return embeddings[0].numpy()
# Prepare BM25 index
def normalize_for_bm25(text):
text = araby.normalize_hamza(text)
text = araby.strip_diacritics(text)
text = araby.strip_tatweel(text)
return text
corpus = [normalize_for_bm25(doc['content']) for doc in dataset['train']]
tokenized = [doc.split() for doc in corpus]
bm25 = BM25Okapi(tokenized)
# Search function
def hybrid_search(query, top_k=5):
# BM25 search
norm_query = normalize_for_bm25(query)
bm25_scores = bm25.get_scores(norm_query.split())
bm25_top = np.argsort(bm25_scores)[::-1][:top_k]
# Dense search
query_emb = get_embedding(query)
scores, faiss_results = dataset['train'].get_nearest_examples(
"embeddings", query_emb, k=top_k
)
# Extract FAISS indices (they're already sorted by score)
# Since get_nearest_examples returns actual data, we need to track indices differently
# Simple approach: just combine the unique results
# Get unique indices from both methods
bm25_indices = set(bm25_top.tolist())
# For FAISS, we'll use the returned results directly
# Combine: prioritize FAISS results, then add BM25-only results
combined_results = []
seen_content = set()
# Add FAISS results first
for content, meta in zip(faiss_results['content'], faiss_results['meta']):
if content not in seen_content:
combined_results.append({'content': content, 'meta': meta})
seen_content.add(content)
# Add unique BM25 results
for idx in bm25_top:
doc = dataset['train'][int(idx)]
if doc['content'] not in seen_content:
combined_results.append(doc)
seen_content.add(doc['content'])
if len(combined_results) >= top_k * 2: # Get up to 2x results
break
return combined_results[:top_k * 2] # Return more results for better coverage
# Example usage
results = hybrid_search("ما هي أركان الإيمان؟", top_k=5)
for i, res in enumerate(results):
print(f"Result {i+1}: {res['content']}\n")
📊 Dataset Statistics
- Total paragraphs: 5419
- Language: Classical and Modern Standard Arabic (ar)
- Domain: Islamic Theology (Aqeedah)
- Source texts: 17 volumes from 9 distinct scholarly works
- Average text length: ~951 characters per paragraph
- Embedding coverage: 100% of corpus
🎯 Intended Use
Primary Applications
- ✅ Scholarly RAG Systems: Building question-answering systems for Islamic theology education
- ✅ Semantic Search: Enabling meaning-based retrieval in classical Arabic religious texts
- ✅ Educational Technology: Supporting AI-powered learning platforms for Aqeedah studies
- ✅ Research Tools: Facilitating computational analysis of Islamic theological discourse
Research Domains
- Arabic Natural Language Processing (NLP)
- Information Retrieval in Religious Texts
- Cross-lingual Semantic Search
- Domain-Specific Language Models
⚠️ Limitations & Considerations
Scope Limitations
- Domain Specificity: Exclusively focused on Islamic theology (Aqeedah); not suitable for general Arabic NLP tasks
- Language: Limited to Arabic; no multilingual support
- Corpus Size: 5419 paragraphs represent a focused collection, not exhaustive coverage of all Aqeedah literature
- Temporal Coverage: Focuses on established scholarly works; may not include the most recent publications
Theological Considerations
- This dataset is curated for academic and educational purposes
- Users should consult qualified Islamic scholars for authoritative religious guidance
- The dataset represents specific theological perspectives within Sunni Islamic tradition (Ahl al-Sunnah wa al-Jama'ah)
Technical Limitations
- Embeddings are model-specific (AraBERT v2); transfer to other models may require re-encoding
- FAISS index optimized for CPU inference; GPU acceleration requires additional configuration
- Diacritic preservation may affect compatibility with some NLP tools trained on non-diacritized text
📜 License
MIT License - This dataset is freely available for academic research, educational purposes, and commercial applications with proper attribution.
🙏 Citation
If you use this dataset in your research or applications, please cite:
@dataset{aqeedah_rag_dataset_2025,
title={Aqeedah RAG Dataset: Arabic Islamic Theology Corpus with Pre-computed Embeddings},
author={Alamodi, Alya and Alamodi, Abdullah},
year={2025},
institution={Najran University, Saudi Arabia},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/datasets/abdullah-alamodi/aqeedah-rag-dataset}},
note={Curated by Dr. Alya Alamodi (Najran University), Technical Implementation by Abdullah Alamodi (IU International University of Applied Sciences)}
}
👥 Contributors
Principal Investigator & Theological Curation:
Dr. Alya Alamodi
Ph.D. in Islamic Theology (Aqeedah)
Najran University, Kingdom of Saudi Arabia
Technical Development & AI Implementation:
Abdullah Alamodi
M.Sc. Candidate in Artificial Intelligence
IU International University of Applied Sciences, Germany
📧 Contact
For questions regarding:
- Theological content and scholarly interpretation: Contact Dr. Alya Alamodi via Najran University
- Technical implementation and AI methodology: Contact Abdullah Alamodi
- General inquiries: Open an issue on the dataset repository
Acknowledgments: This work was supported by the academic resources of Najran University and developed with computational infrastructure provided by IU International University of Applied Sciences.
- Downloads last month
- 76