feat: Production rebuild 33 articles, Parquet, 3 splits (v2.0.0)
Browse files- README.md +237 -40
- data/test-00000-of-00001.parquet +3 -0
- data/train-00000-of-00001.parquet +3 -0
- data/validation-00000-of-00001.parquet +3 -0
README.md
CHANGED
|
@@ -1,61 +1,258 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
language:
|
| 4 |
-
-
|
| 5 |
size_categories:
|
| 6 |
- n<1K
|
| 7 |
task_categories:
|
| 8 |
- text-generation
|
| 9 |
-
-
|
|
|
|
| 10 |
tags:
|
| 11 |
-
-
|
| 12 |
-
- travel
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
|
|
|
| 16 |
- rag
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
configs:
|
| 19 |
-
- config_name:
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
-
path: data/
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
- split:
|
| 26 |
-
path: data/
|
| 27 |
---
|
| 28 |
|
| 29 |
-
#
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
|
| 34 |
-
##
|
| 35 |
-
- **Dataset Hygiene**: Contains ONLY informational articles. No fake `ShareGPT` or `Alpaca` tags are used.
|
| 36 |
-
- **Data Provenance**: All articles are authored by Hasan09, tracking Muslim travel guides, mosque histories, and cross-sectarian observations.
|
| 37 |
|
| 38 |
-
|
| 39 |
-
This repository exposes two subsets via Parquet formatting to prevent `TooBigContentError` and enable scalable RAG architectures:
|
| 40 |
|
| 41 |
-
###
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
language:
|
| 4 |
+
- en
|
| 5 |
size_categories:
|
| 6 |
- n<1K
|
| 7 |
task_categories:
|
| 8 |
- text-generation
|
| 9 |
+
- question-answering
|
| 10 |
+
- text-retrieval
|
| 11 |
tags:
|
| 12 |
+
- islamic-articles
|
| 13 |
+
- muslim-travel
|
| 14 |
+
- halal-food
|
| 15 |
+
- mosque
|
| 16 |
+
- prayer-room
|
| 17 |
+
- singapore
|
| 18 |
- rag
|
| 19 |
+
- knowledge-base
|
| 20 |
+
- text-corpus
|
| 21 |
+
- nlp
|
| 22 |
+
- retrieval-augmented-generation
|
| 23 |
+
pretty_name: "Islamic Articles Corpus - English RAG Dataset"
|
| 24 |
+
dataset_info:
|
| 25 |
+
features:
|
| 26 |
+
- name: id
|
| 27 |
+
dtype: string
|
| 28 |
+
- name: title
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: text
|
| 31 |
+
dtype: string
|
| 32 |
+
- name: text_preview
|
| 33 |
+
dtype: string
|
| 34 |
+
- name: source_url
|
| 35 |
+
dtype: string
|
| 36 |
+
- name: content_hash
|
| 37 |
+
dtype: string
|
| 38 |
+
- name: language
|
| 39 |
+
dtype: string
|
| 40 |
+
- name: topic_category
|
| 41 |
+
dtype: string
|
| 42 |
+
- name: char_count
|
| 43 |
+
dtype: int32
|
| 44 |
+
- name: word_count
|
| 45 |
+
dtype: int32
|
| 46 |
+
- name: image_count
|
| 47 |
+
dtype: int32
|
| 48 |
+
- name: has_images
|
| 49 |
+
dtype: bool
|
| 50 |
+
- name: source_platform
|
| 51 |
+
dtype: string
|
| 52 |
+
splits:
|
| 53 |
+
- name: train
|
| 54 |
+
num_examples: 26
|
| 55 |
+
- name: validation
|
| 56 |
+
num_examples: 3
|
| 57 |
+
- name: test
|
| 58 |
+
num_examples: 4
|
| 59 |
+
config_name: default
|
| 60 |
configs:
|
| 61 |
+
- config_name: default
|
| 62 |
data_files:
|
| 63 |
- split: train
|
| 64 |
+
path: data/train-*.parquet
|
| 65 |
+
- split: validation
|
| 66 |
+
path: data/validation-*.parquet
|
| 67 |
+
- split: test
|
| 68 |
+
path: data/test-*.parquet
|
| 69 |
---
|
| 70 |
|
| 71 |
+
# ☪ Islamic Articles Corpus - English RAG Dataset
|
| 72 |
|
| 73 |
+
[](https://opensource.org/licenses/MIT)
|
| 74 |
+
[](https://github.com/salaamalykum)
|
| 75 |
|
| 76 |
+
## Dataset Description
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
**Islamic Articles Corpus** is a curated English-language RAG corpus containing **33 articles** covering Muslim travel guides, mosque visits, halal food, prayer room directories, and Islamic community documentation. Every article preserves **complete full-text content** with all **608 embedded image references**. Content focuses heavily on **Singapore, Iran, Japan, Oman, and Qatar** mosque and travel documentation.
|
|
|
|
| 79 |
|
| 80 |
+
### Key Properties
|
| 81 |
+
| Property | Value |
|
| 82 |
+
|---|---|
|
| 83 |
+
| **Total Records** | 33 |
|
| 84 |
+
| **Language** | English (en) |
|
| 85 |
+
| **Format** | Parquet (auto Dataset Viewer enabled) |
|
| 86 |
+
| **Splits** | train (26), validation (3), test (4) |
|
| 87 |
+
| **Avg. Article Length** | 10,260 characters |
|
| 88 |
+
| **Total Characters** | 338,603 |
|
| 89 |
+
| **Total Image References** | 608 |
|
| 90 |
+
| **Articles with Images** | 30 / 33 |
|
| 91 |
+
| **License** | MIT |
|
| 92 |
+
| **Version** | v2.0.0 |
|
| 93 |
+
| **Release Date** | 2026-06-13 |
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
## Embeddable Dataset Viewer
|
| 98 |
+
|
| 99 |
+
```html
|
| 100 |
+
<iframe
|
| 101 |
+
src="https://huggingface.co/datasets/qurancn/islamic-articles-corpus/embed/viewer/default/train"
|
| 102 |
+
frameborder="0"
|
| 103 |
+
width="100%"
|
| 104 |
+
height="560px"
|
| 105 |
+
></iframe>
|
| 106 |
+
```
|
| 107 |
|
| 108 |
+
**Direct viewer links:**
|
| 109 |
+
- [🔍 Browse All](https://huggingface.co/datasets/qurancn/islamic-articles-corpus/viewer/default/train)
|
| 110 |
+
- [🕌 Mosques](https://huggingface.co/datasets/qurancn/islamic-articles-corpus/viewer/default/train?q=Mosque)
|
| 111 |
+
- [✈️ Travel](https://huggingface.co/datasets/qurancn/islamic-articles-corpus/viewer/default/train?q=Travel)
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Topic Distribution
|
| 116 |
+
|
| 117 |
+
| Category | Count |
|
| 118 |
+
|---|---|
|
| 119 |
+
| Mosques & Prayer Rooms | 26 |
|
| 120 |
+
| Islamic Knowledge | 2 |
|
| 121 |
+
| Community & Business | 2 |
|
| 122 |
+
| Travel Guides | 2 |
|
| 123 |
+
| Halal Food | 1 |
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## Data Schema
|
| 129 |
+
|
| 130 |
+
| Column | Type | Description | Queryable |
|
| 131 |
+
|---|---|---|---|
|
| 132 |
+
| `id` | string | Article ID | ✅ |
|
| 133 |
+
| `title` | string | Full article title | ✅ Full-text |
|
| 134 |
+
| `text` | string | **Complete article body** with Markdown images | ✅ Full-text |
|
| 135 |
+
| `text_preview` | string | First 300 chars (Viewer-friendly) | ✅ |
|
| 136 |
+
| `source_url` | string | Canonical URL | ✅ |
|
| 137 |
+
| `content_hash` | string | SHA-256 integrity hash | ✅ |
|
| 138 |
+
| `language` | string | Language tag (`en`) | ✅ Filter |
|
| 139 |
+
| `topic_category` | string | Topic category | ✅ Filter |
|
| 140 |
+
| `char_count` | int32 | Character count | ✅ Sort |
|
| 141 |
+
| `word_count` | int32 | Word count | ✅ Sort |
|
| 142 |
+
| `image_count` | int32 | Image references count | ✅ Sort |
|
| 143 |
+
| `has_images` | bool | Has images | ✅ Filter |
|
| 144 |
+
| `source_platform` | string | Source website | ✅ Filter |
|
| 145 |
+
|
| 146 |
+
### SQL Console Queries
|
| 147 |
|
|
|
|
|
|
|
| 148 |
```sql
|
| 149 |
+
SELECT topic_category, COUNT(*) as count, AVG(char_count) as avg_len
|
| 150 |
+
FROM train GROUP BY topic_category ORDER BY count DESC;
|
| 151 |
+
|
| 152 |
+
SELECT title, char_count, image_count FROM train ORDER BY image_count DESC LIMIT 10;
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
---
|
| 156 |
+
|
| 157 |
+
## Data Samples
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
#### Example: About salaamalykum website:What we are doing now and what we
|
| 161 |
+
| Field | Value |
|
| 162 |
+
|---|---|
|
| 163 |
+
| `title` | About salaamalykum website:What we are doing now and what we are belie |
|
| 164 |
+
| `text_preview` | --- # About salaamalykum website:What we are doing now and what we are believe... > **Original Source**: [https://salaa... |
|
| 165 |
+
| `source_url` | `https://salaamalykum.com/article/1408` |
|
| 166 |
+
| `topic_category` | Islamic Knowledge |
|
| 167 |
+
| `char_count` | 17066 |
|
| 168 |
+
| `image_count` | 0 |
|
| 169 |
+
|
| 170 |
+
#### Example: Africalocals.com Buyer Protection, MONEY BACK GUARANTEE and
|
| 171 |
+
| Field | Value |
|
| 172 |
+
|---|---|
|
| 173 |
+
| `title` | Africalocals.com Buyer Protection, MONEY BACK GUARANTEE and Terms & Co |
|
| 174 |
+
| `text_preview` | --- # Africalocals.com Buyer Protection, MONEY BACK GUARANTEE and Terms & Conditions > **Original Source**: [https://sa... |
|
| 175 |
+
| `source_url` | `https://salaamalykum.com/article/1172` |
|
| 176 |
+
| `topic_category` | Islamic Knowledge |
|
| 177 |
+
| `char_count` | 7221 |
|
| 178 |
+
| `image_count` | 4 |
|
| 179 |
+
|
| 180 |
+
#### Example: Best Halal Food in Beijing: Muslim-Friendly Restaurants and
|
| 181 |
+
| Field | Value |
|
| 182 |
+
|---|---|
|
| 183 |
+
| `title` | Best Halal Food in Beijing: Muslim-Friendly Restaurants and Hui Muslim |
|
| 184 |
+
| `text_preview` | --- # Best Halal Food in Beijing: Muslim-Friendly Restaurants and Hui Muslim Street Food Map (Issue 57) > **Original So... |
|
| 185 |
+
| `source_url` | `https://salaamalykum.com/article/3126` |
|
| 186 |
+
| `topic_category` | Halal Food |
|
| 187 |
+
| `char_count` | 20236 |
|
| 188 |
+
| `image_count` | 68 |
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
---
|
| 192 |
+
|
| 193 |
+
## Data Collection & Processing Pipeline
|
| 194 |
+
|
| 195 |
+
### Source
|
| 196 |
+
Articles from [salaamalykum.com](https://salaamalykum.com), an open-source platform documenting Muslim life worldwide.
|
| 197 |
+
|
| 198 |
+
### Processing Steps
|
| 199 |
+
1. **Content Extraction**: Articles sourced from WeCenter 3.1.9 CMS
|
| 200 |
+
2. **Markdown Formatting**: Standardized with headings, blockquotes, and image references
|
| 201 |
+
3. **SHA-256 Hashing**: Content integrity verification per article
|
| 202 |
+
4. **Topic Classification**: Rule-based keyword classifier
|
| 203 |
+
5. **Parquet Serialization**: `pyarrow` with `row_group_size=20`, `write_page_index=True`
|
| 204 |
+
6. **Split Generation**: Deterministic shuffle (seed=42), 80/10/10
|
| 205 |
+
|
| 206 |
+
### Known Limitations
|
| 207 |
+
- Image URLs reference external hosts (not embedded as binary)
|
| 208 |
+
- Focused primarily on Singapore and Asia-Pacific region
|
| 209 |
+
- English content (see [Chinese-Muslim](https://huggingface.co/datasets/qurancn/Chinese-Muslim) for Chinese version)
|
| 210 |
+
|
| 211 |
+
---
|
| 212 |
+
|
| 213 |
+
## Related Datasets
|
| 214 |
+
|
| 215 |
+
| Dataset | Articles | Language | Focus |
|
| 216 |
+
|---|---|---|---|
|
| 217 |
+
| [Chinese-Muslim](https://huggingface.co/datasets/qurancn/Chinese-Muslim) | 279 | zh-CN | Full Chinese Muslim knowledge |
|
| 218 |
+
| [Chinese-Muslim-Travel](https://huggingface.co/datasets/qurancn/Chinese-Muslim-Travel) | 347 | zh-CN | Muslim travel |
|
| 219 |
+
| [Islamic-Culture](https://huggingface.co/datasets/qurancn/Islamic-Culture) | 260 | zh-CN | Islamic culture |
|
| 220 |
+
| **[islamic-articles-corpus](https://huggingface.co/datasets/qurancn/islamic-articles-corpus)** (this) | 33 | en | English articles |
|
| 221 |
+
|
| 222 |
+
---
|
| 223 |
+
|
| 224 |
+
## Usage
|
| 225 |
+
|
| 226 |
+
```python
|
| 227 |
+
from datasets import load_dataset
|
| 228 |
+
ds = load_dataset("qurancn/islamic-articles-corpus")
|
| 229 |
+
article = ds["train"][0]
|
| 230 |
+
print(article["title"])
|
| 231 |
+
print(article["text"]) # Full body with images
|
| 232 |
+
```
|
| 233 |
+
|
| 234 |
+
---
|
| 235 |
+
|
| 236 |
+
## Version History
|
| 237 |
+
|
| 238 |
+
| Version | Date | Changes |
|
| 239 |
+
|---|---|---|
|
| 240 |
+
| `v2.0.0` | 2026-06-13 | Full rebuild: Parquet, 3 splits, 13-column schema, complete text + images |
|
| 241 |
+
| `v1.0.0` | 2026-06-13 | Initial upload |
|
| 242 |
+
|
| 243 |
+
## Citation
|
| 244 |
+
|
| 245 |
+
```bibtex
|
| 246 |
+
@dataset{islamic_articles_corpus_2026,
|
| 247 |
+
title={Islamic Articles Corpus: English RAG Dataset},
|
| 248 |
+
author={Salaamalykum Project},
|
| 249 |
+
year={2026},
|
| 250 |
+
url={https://huggingface.co/datasets/qurancn/islamic-articles-corpus}
|
| 251 |
+
}
|
| 252 |
```
|
| 253 |
+
|
| 254 |
+
## License
|
| 255 |
+
[MIT License](https://opensource.org/licenses/MIT)
|
| 256 |
+
|
| 257 |
+
## Contact
|
| 258 |
+
- Email: [bropeace@protonmail.com](mailto:bropeace@protonmail.com)
|
data/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6efa1c98945f1f129ceed495eca667095d3456ee65d64bb42d5f3149d4a7cfa6
|
| 3 |
+
size 16514
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4bbcd1b49b75b6987bbd7fdaedd6cf159c830cabd6262e469594567042931b3
|
| 3 |
+
size 121803
|
data/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d84e9d46e936de7c987d4fbb410bf7f9f59f6e8ca574b57c291a7157a7effb4
|
| 3 |
+
size 19400
|