Upload folder using huggingface_hub
Browse files- README.md +216 -140
- data-00000-of-00001.parquet +2 -2
- dataset_info.json +19 -10
- state.json +1 -1
README.md
CHANGED
|
@@ -6,6 +6,7 @@ task_categories:
|
|
| 6 |
- text-retrieval
|
| 7 |
- question-answering
|
| 8 |
- text-generation
|
|
|
|
| 9 |
size_categories:
|
| 10 |
- 1K<n<10K
|
| 11 |
tags:
|
|
@@ -15,9 +16,10 @@ tags:
|
|
| 15 |
- rag
|
| 16 |
- knowledge-base
|
| 17 |
- production-ready
|
| 18 |
-
- cleaned
|
| 19 |
- high-quality
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
dataset_info:
|
| 22 |
features:
|
| 23 |
- name: index
|
|
@@ -32,68 +34,89 @@ dataset_info:
|
|
| 32 |
dtype: string
|
| 33 |
- name: content
|
| 34 |
dtype: string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
splits:
|
| 36 |
- name: train
|
| 37 |
-
num_examples:
|
| 38 |
---
|
| 39 |
|
| 40 |
-
# BYU-Idaho Web Content Dataset (
|
| 41 |
|
| 42 |
-
**
|
| 43 |
|
| 44 |
## Dataset Description
|
| 45 |
|
| 46 |
-
**Records:** 2,
|
| 47 |
**Source:** byui.edu and subdomains
|
| 48 |
-
**Format:** Markdown
|
| 49 |
-
**Version:**
|
| 50 |
-
**Quality:**
|
| 51 |
**Last Updated:** December 2025
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
## Quality Assurance
|
| 54 |
|
| 55 |
-
###
|
| 56 |
-
|
| 57 |
-
**
|
| 58 |
-
-
|
| 59 |
-
-
|
| 60 |
-
-
|
| 61 |
-
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
**
|
| 65 |
-
- ❌
|
| 66 |
-
- ❌
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
-
|
| 70 |
-
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
-
|
| 74 |
-
- ❌ "Late Charge" notices
|
| 75 |
-
- ❌ Deadline pages
|
| 76 |
-
- ❌ Calendar event duplicates
|
| 77 |
|
| 78 |
### Cleaning Statistics
|
| 79 |
|
| 80 |
| Stage | Count | Removed | % Removed |
|
| 81 |
|-------|-------|---------|-----------|
|
| 82 |
| Original crawled pages | 4,097 | - | - |
|
| 83 |
-
| After
|
| 84 |
-
|
|
| 85 |
-
|
|
|
|
|
| 86 |
|
| 87 |
## Dataset Structure
|
| 88 |
|
| 89 |
### Fields
|
| 90 |
|
| 91 |
-
|
|
|
|
| 92 |
- **url** (`string`): Source URL
|
| 93 |
-
- **title** (`string`): Cleaned page title
|
| 94 |
- **topic** (`string`): Main heading (H1)
|
| 95 |
- **meta_description** (`string`): SEO description
|
| 96 |
-
- **content** (`string`): Full page content in Markdown (avg 2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
### Example
|
| 99 |
|
|
@@ -103,146 +126,199 @@ dataset_info:
|
|
| 103 |
"url": "https://www.byui.edu/",
|
| 104 |
"title": "Home - BYU-Idaho",
|
| 105 |
"topic": "Christ-Centered. Student-Focused.",
|
| 106 |
-
"meta_description": "Welcome to BYU-Idaho's home page
|
| 107 |
-
"content": "# Christ-Centered. Student-Focused.\n\nBYU Idaho Icons
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
}
|
| 109 |
```
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
## Usage
|
| 112 |
|
| 113 |
-
###
|
| 114 |
|
| 115 |
```python
|
| 116 |
from datasets import load_dataset
|
| 117 |
|
| 118 |
-
dataset = load_dataset("BYU-Idaho/Web-Content")
|
| 119 |
-
print(f"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
```
|
| 121 |
|
| 122 |
-
###
|
| 123 |
|
| 124 |
```python
|
| 125 |
-
#
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
)
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
```
|
| 135 |
|
| 136 |
-
### RAG Application
|
| 137 |
|
| 138 |
```python
|
| 139 |
from datasets import load_dataset
|
| 140 |
from sentence_transformers import SentenceTransformer
|
| 141 |
|
| 142 |
-
# Load
|
| 143 |
ds = load_dataset("BYU-Idaho/Web-Content")['train']
|
|
|
|
| 144 |
|
| 145 |
-
# Generate embeddings
|
| 146 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 147 |
-
embeddings = model.encode(
|
| 148 |
|
| 149 |
-
# Use for retrieval
|
| 150 |
```
|
| 151 |
|
| 152 |
-
##
|
| 153 |
-
|
| 154 |
-
The dataset includes high-quality evergreen content about:
|
| 155 |
-
|
| 156 |
-
- **Academics** - Programs, majors, degrees, courses
|
| 157 |
-
- **Admissions** - Application process, requirements, transfer credits
|
| 158 |
-
- **Student Life** - Housing, activities, campus resources
|
| 159 |
-
- **Financial Aid** - Scholarships, grants, loans (general info only)
|
| 160 |
-
- **Campus Services** - Libraries, tutoring, career services
|
| 161 |
-
- **About BYU-Idaho** - Mission, history, leadership
|
| 162 |
-
- **Policies** - Academic policies, student conduct
|
| 163 |
-
- **Research** - Faculty research, student opportunities
|
| 164 |
-
|
| 165 |
-
## Excluded Content
|
| 166 |
-
|
| 167 |
-
**Temporal content** (changes frequently):
|
| 168 |
-
- Academic calendars and deadlines
|
| 169 |
-
- Event announcements
|
| 170 |
-
- News articles
|
| 171 |
-
- Job postings
|
| 172 |
-
- Speeches archive
|
| 173 |
-
|
| 174 |
-
**Low-value content:**
|
| 175 |
-
- 404 error pages
|
| 176 |
-
- Redirect pages
|
| 177 |
-
- Stub pages (<200 chars)
|
| 178 |
-
- Duplicate content (same text, different URLs)
|
| 179 |
-
- Empty pages
|
| 180 |
-
|
| 181 |
-
**Media and navigation:**
|
| 182 |
-
- Images, videos, PDFs
|
| 183 |
-
- Navigation menus
|
| 184 |
-
- UI elements
|
| 185 |
-
- External links
|
| 186 |
-
|
| 187 |
-
## Data Collection & Processing
|
| 188 |
-
|
| 189 |
-
**Crawler:** Custom Python crawler (Playwright + httpx)
|
| 190 |
-
**Scope:** Internal domain only (`*.byui.edu`)
|
| 191 |
-
**Method:** Robots.txt compliant, sitemap-based discovery
|
| 192 |
-
**Processing:** HTML → Markdown with noise removal
|
| 193 |
-
**Normalization:** Full ASCII (Unicode quotes removed)
|
| 194 |
-
**Deduplication:** SHA256 content hashing
|
| 195 |
-
**Filtering:** Multi-stage quality pipeline
|
| 196 |
|
| 197 |
-
|
|
|
|
|
|
|
|
|
|
| 198 |
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
| Total pages | 2,666 | 34.9% filtered from raw data |
|
| 202 |
-
| Avg content length | 2,526 chars | Up from 2,016 in raw data |
|
| 203 |
-
| Empty titles | 0% | 100% have titles |
|
| 204 |
-
| Empty topics | 0% | 100% have H1 headings |
|
| 205 |
-
| Empty descriptions | 0.64% | 17 pages only |
|
| 206 |
-
| Min content length | 200 chars | Enforced minimum |
|
| 207 |
-
| Unique content | 100% | SHA256 deduplicated |
|
| 208 |
|
| 209 |
## Use Cases
|
| 210 |
|
| 211 |
-
✅
|
| 212 |
-
|
|
|
|
|
|
|
| 213 |
|
| 214 |
-
✅
|
| 215 |
-
|
|
|
|
|
|
|
| 216 |
|
| 217 |
-
✅
|
| 218 |
-
|
|
|
|
|
|
|
| 219 |
|
| 220 |
-
✅
|
| 221 |
-
|
|
|
|
|
|
|
| 222 |
|
| 223 |
-
✅
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
Building conversational AI for student services
|
| 228 |
-
|
| 229 |
-
## Advantages Over Raw Data
|
| 230 |
-
|
| 231 |
-
1. **35% smaller** - Only high-quality evergreen content
|
| 232 |
-
2. **Higher information density** - Avg 2,526 chars vs 2,016
|
| 233 |
-
3. **No temporal noise** - No outdated calendars or deadlines
|
| 234 |
-
4. **No duplicates** - Unique content only
|
| 235 |
-
5. **Complete records** - 0% empty titles/topics
|
| 236 |
-
6. **Better RAG performance** - Relevant answers, no calendar spam
|
| 237 |
-
7. **Reduced hallucination** - No contradictory deadline dates
|
| 238 |
|
| 239 |
## Version History
|
| 240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
**v2.0.0 (Production)** - December 2025
|
| 242 |
- Initial production release
|
| 243 |
- 2,666 high-quality pages
|
| 244 |
-
-
|
| 245 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
|
| 247 |
## License
|
| 248 |
|
|
@@ -251,11 +327,11 @@ Internal BYU-Idaho use. Contact: ai-team@byui.edu
|
|
| 251 |
## Citation
|
| 252 |
|
| 253 |
```bibtex
|
| 254 |
-
@misc{byui-web-content-
|
| 255 |
-
title={BYU-Idaho Web Content Dataset (
|
| 256 |
author={BYU-Idaho AI Team},
|
| 257 |
year={2025},
|
| 258 |
-
version={
|
| 259 |
publisher={Hugging Face},
|
| 260 |
howpublished={\url{https://huggingface.co/datasets/BYU-Idaho/Web-Content}}
|
| 261 |
}
|
|
@@ -268,4 +344,4 @@ Internal BYU-Idaho use. Contact: ai-team@byui.edu
|
|
| 268 |
|
| 269 |
---
|
| 270 |
|
| 271 |
-
**
|
|
|
|
| 6 |
- text-retrieval
|
| 7 |
- question-answering
|
| 8 |
- text-generation
|
| 9 |
+
- text-classification
|
| 10 |
size_categories:
|
| 11 |
- 1K<n<10K
|
| 12 |
tags:
|
|
|
|
| 16 |
- rag
|
| 17 |
- knowledge-base
|
| 18 |
- production-ready
|
|
|
|
| 19 |
- high-quality
|
| 20 |
+
- categorized
|
| 21 |
+
- scored
|
| 22 |
+
pretty_name: BYU-Idaho Web Content (Enhanced)
|
| 23 |
dataset_info:
|
| 24 |
features:
|
| 25 |
- name: index
|
|
|
|
| 34 |
dtype: string
|
| 35 |
- name: content
|
| 36 |
dtype: string
|
| 37 |
+
- name: category
|
| 38 |
+
dtype: string
|
| 39 |
+
- name: content_type
|
| 40 |
+
dtype: string
|
| 41 |
+
- name: quality_score
|
| 42 |
+
dtype: int64
|
| 43 |
+
- name: reading_level
|
| 44 |
+
dtype: float64
|
| 45 |
splits:
|
| 46 |
- name: train
|
| 47 |
+
num_examples: 2448
|
| 48 |
---
|
| 49 |
|
| 50 |
+
# BYU-Idaho Web Content Dataset (Enhanced)
|
| 51 |
|
| 52 |
+
**Ultra-high-quality**, enriched web content from BYU-Idaho with category classification, quality scoring, and advanced filtering. Enterprise-ready for production RAG, search, and AI applications.
|
| 53 |
|
| 54 |
## Dataset Description
|
| 55 |
|
| 56 |
+
**Records:** 2,448 ultra-high-quality pages
|
| 57 |
**Source:** byui.edu and subdomains
|
| 58 |
+
**Format:** Markdown with enriched metadata
|
| 59 |
+
**Version:** 3.0.0 (Enhanced)
|
| 60 |
+
**Quality:** 40.2% of raw data filtered, avg score 91.5/100
|
| 61 |
**Last Updated:** December 2025
|
| 62 |
|
| 63 |
+
## Key Features
|
| 64 |
+
|
| 65 |
+
✨ **Category Classification** - 14 categories (Academics, Admissions, Student Life, etc.)
|
| 66 |
+
✨ **Content Type Detection** - 7 types (informational, guide, FAQ, procedure, policy, etc.)
|
| 67 |
+
✨ **Quality Scoring** - 0-100 score based on multiple quality factors
|
| 68 |
+
✨ **Reading Level** - Flesch-Kincaid grade level for each page
|
| 69 |
+
✨ **Advanced Filtering** - Faculty bios, repetitive lists, low-quality content removed
|
| 70 |
+
|
| 71 |
## Quality Assurance
|
| 72 |
|
| 73 |
+
### Enhanced Filtering Pipeline
|
| 74 |
+
|
| 75 |
+
**Stage 1: Base Filters** (from v2.0)
|
| 76 |
+
- ❌ Academic calendars and financial deadlines
|
| 77 |
+
- ❌ Temporal content (events with dates in URLs)
|
| 78 |
+
- ❌ Job postings and newsroom articles
|
| 79 |
+
- ❌ 404 errors and very short pages (<200 chars)
|
| 80 |
+
|
| 81 |
+
**Stage 2: Advanced Filters** (NEW in v3.0)
|
| 82 |
+
- ❌ **Faculty bio stubs** - 82 removed (short CV-only pages)
|
| 83 |
+
- ❌ **Repetitive list pages** - 149 removed (>65% word repetition)
|
| 84 |
+
- ❌ **Low-quality content** - Pages scoring <40/100 removed
|
| 85 |
+
|
| 86 |
+
**Stage 3: Quality Scoring** (NEW in v3.0)
|
| 87 |
+
- ✅ Content length optimization (penalty for too short/long)
|
| 88 |
+
- ✅ Metadata completeness check
|
| 89 |
+
- ✅ Structural quality (headers, lists, sentences)
|
| 90 |
+
- ✅ Uniqueness ratio (penalize repetitive text)
|
| 91 |
+
- ✅ **Average score: 91.5/100** (range: 50-100)
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
### Cleaning Statistics
|
| 94 |
|
| 95 |
| Stage | Count | Removed | % Removed |
|
| 96 |
|-------|-------|---------|-----------|
|
| 97 |
| Original crawled pages | 4,097 | - | - |
|
| 98 |
+
| After v2.0 filters | 2,679 | 1,418 | 34.6% |
|
| 99 |
+
| Removed faculty bios | 2,597 | 82 | 2.0% |
|
| 100 |
+
| Removed repetitive lists | 2,448 | 149 | 3.6% |
|
| 101 |
+
| **Final enhanced dataset** | **2,448** | **1,649** | **40.2%** |
|
| 102 |
|
| 103 |
## Dataset Structure
|
| 104 |
|
| 105 |
### Fields
|
| 106 |
|
| 107 |
+
**Core Fields:**
|
| 108 |
+
- **index** (`int64`): Sequential identifier (1-2448)
|
| 109 |
- **url** (`string`): Source URL
|
| 110 |
+
- **title** (`string`): Cleaned page title
|
| 111 |
- **topic** (`string`): Main heading (H1)
|
| 112 |
- **meta_description** (`string`): SEO description
|
| 113 |
+
- **content** (`string`): Full page content in Markdown (avg 2,230 chars)
|
| 114 |
+
|
| 115 |
+
**NEW Enrichment Fields:**
|
| 116 |
+
- **category** (`string`): Primary category (14 options)
|
| 117 |
+
- **content_type** (`string`): Content type (7 options)
|
| 118 |
+
- **quality_score** (`int64`): Quality score 0-100 (avg: 91.5)
|
| 119 |
+
- **reading_level** (`float64`): Flesch-Kincaid grade level (avg: 14.4)
|
| 120 |
|
| 121 |
### Example
|
| 122 |
|
|
|
|
| 126 |
"url": "https://www.byui.edu/",
|
| 127 |
"title": "Home - BYU-Idaho",
|
| 128 |
"topic": "Christ-Centered. Student-Focused.",
|
| 129 |
+
"meta_description": "Welcome to BYU-Idaho's home page...",
|
| 130 |
+
"content": "# Christ-Centered. Student-Focused.\n\nBYU Idaho Icons...",
|
| 131 |
+
"category": "About BYU-Idaho",
|
| 132 |
+
"content_type": "overview",
|
| 133 |
+
"quality_score": 95,
|
| 134 |
+
"reading_level": 12.3
|
| 135 |
}
|
| 136 |
```
|
| 137 |
|
| 138 |
+
## Categories (14 total)
|
| 139 |
+
|
| 140 |
+
| Category | Count | % | Description |
|
| 141 |
+
|----------|-------|---|-------------|
|
| 142 |
+
| **General** | 1,951 | 79.7% | General university content |
|
| 143 |
+
| **Academics** | 151 | 6.2% | Programs, majors, degrees |
|
| 144 |
+
| **Employment** | 113 | 4.6% | HR, jobs, faculty resources |
|
| 145 |
+
| **Student Life** | 62 | 2.5% | Housing, activities, campus life |
|
| 146 |
+
| **Financial Aid** | 54 | 2.2% | Scholarships, grants, loans |
|
| 147 |
+
| **Career Services** | 41 | 1.7% | Internships, job placement |
|
| 148 |
+
| **Admissions** | 37 | 1.5% | Application, requirements |
|
| 149 |
+
| **Registration & Records** | 12 | 0.5% | Registration, transcripts |
|
| 150 |
+
| **About BYU-Idaho** | 11 | 0.4% | Mission, history, leadership |
|
| 151 |
+
| **Academic Support** | 8 | 0.3% | Tutoring, success services |
|
| 152 |
+
| **Library** | 3 | 0.1% | Library services |
|
| 153 |
+
| **Athletics & Recreation** | 3 | 0.1% | Sports, fitness |
|
| 154 |
+
| **International** | 1 | 0.0% | Study abroad, int'l students |
|
| 155 |
+
| **Policies & Compliance** | 1 | 0.0% | Rules, compliance |
|
| 156 |
+
|
| 157 |
+
## Content Types (7 total)
|
| 158 |
+
|
| 159 |
+
| Type | Count | % | Description |
|
| 160 |
+
|------|-------|---|-------------|
|
| 161 |
+
| **informational** | 2,142 | 87.5% | General information pages |
|
| 162 |
+
| **contact** | 125 | 5.1% | Contact information |
|
| 163 |
+
| **guide** | 94 | 3.8% | Long-form guides (>5000 chars, 3+ sections) |
|
| 164 |
+
| **faq** | 35 | 1.4% | Frequently asked questions |
|
| 165 |
+
| **procedure** | 28 | 1.1% | Step-by-step procedures |
|
| 166 |
+
| **overview** | 14 | 0.6% | Overview/about pages |
|
| 167 |
+
| **policy** | 10 | 0.4% | Policy documents |
|
| 168 |
+
|
| 169 |
+
## Quality Metrics
|
| 170 |
+
|
| 171 |
+
| Metric | Value | Notes |
|
| 172 |
+
|--------|-------|-------|
|
| 173 |
+
| **Total pages** | 2,448 | 40.2% filtered from raw |
|
| 174 |
+
| **Avg quality score** | **91.5/100** | Range: 50-100 |
|
| 175 |
+
| **Min quality score** | 50 | No low-quality pages |
|
| 176 |
+
| **Avg reading level** | 14.4 grade | College-appropriate |
|
| 177 |
+
| **Avg content length** | 2,230 chars | Substantial content |
|
| 178 |
+
| **Empty titles** | 0% | 100% complete |
|
| 179 |
+
| **Empty topics** | 0% | 100% complete |
|
| 180 |
+
|
| 181 |
## Usage
|
| 182 |
|
| 183 |
+
### Basic Loading
|
| 184 |
|
| 185 |
```python
|
| 186 |
from datasets import load_dataset
|
| 187 |
|
| 188 |
+
dataset = load_dataset("BYU-Idaho/Web-Content")['train']
|
| 189 |
+
print(f"Total pages: {len(dataset)}") # 2,448
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
### Filter by Category
|
| 193 |
+
|
| 194 |
+
```python
|
| 195 |
+
# Get all Admissions pages
|
| 196 |
+
admissions = dataset.filter(lambda x: x['category'] == 'Admissions')
|
| 197 |
+
|
| 198 |
+
# Get all Academic pages
|
| 199 |
+
academics = dataset.filter(lambda x: x['category'] == 'Academics')
|
| 200 |
```
|
| 201 |
|
| 202 |
+
### Filter by Quality Score
|
| 203 |
|
| 204 |
```python
|
| 205 |
+
# Get only highest quality pages (95+)
|
| 206 |
+
top_quality = dataset.filter(lambda x: x['quality_score'] >= 95)
|
| 207 |
+
|
| 208 |
+
# Get pages suitable for general audiences (lower reading level)
|
| 209 |
+
accessible = dataset.filter(lambda x: x['reading_level'] <= 12.0)
|
| 210 |
+
```
|
| 211 |
+
|
| 212 |
+
### Filter by Content Type
|
| 213 |
+
|
| 214 |
+
```python
|
| 215 |
+
# Get all guides
|
| 216 |
+
guides = dataset.filter(lambda x: x['content_type'] == 'guide')
|
| 217 |
+
|
| 218 |
+
# Get all FAQs
|
| 219 |
+
faqs = dataset.filter(lambda x: x['content_type'] == 'faq')
|
| 220 |
+
|
| 221 |
+
# Get procedural content
|
| 222 |
+
procedures = dataset.filter(lambda x: x['content_type'] == 'procedure')
|
| 223 |
```
|
| 224 |
|
| 225 |
+
### RAG Application with Filtering
|
| 226 |
|
| 227 |
```python
|
| 228 |
from datasets import load_dataset
|
| 229 |
from sentence_transformers import SentenceTransformer
|
| 230 |
|
| 231 |
+
# Load high-quality pages only
|
| 232 |
ds = load_dataset("BYU-Idaho/Web-Content")['train']
|
| 233 |
+
high_quality = ds.filter(lambda x: x['quality_score'] >= 80)
|
| 234 |
|
| 235 |
+
# Generate embeddings for retrieval
|
| 236 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 237 |
+
embeddings = model.encode(high_quality['content'])
|
| 238 |
|
| 239 |
+
# Use for context retrieval in RAG
|
| 240 |
```
|
| 241 |
|
| 242 |
+
### Category-Specific RAG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
|
| 244 |
+
```python
|
| 245 |
+
# Build domain-specific retrievers
|
| 246 |
+
admissions_data = ds.filter(lambda x: x['category'] == 'Admissions')
|
| 247 |
+
financial_data = ds.filter(lambda x: x['category'] == 'Financial Aid')
|
| 248 |
|
| 249 |
+
# Route queries to appropriate category retriever
|
| 250 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
|
| 252 |
## Use Cases
|
| 253 |
|
| 254 |
+
### ✅ Retrieval-Augmented Generation (RAG)
|
| 255 |
+
- **Category-aware routing** - Direct queries to relevant content
|
| 256 |
+
- **Quality filtering** - Use only high-scoring pages for responses
|
| 257 |
+
- **Content-type matching** - Return FAQs for questions, guides for how-to queries
|
| 258 |
|
| 259 |
+
### ✅ Semantic Search
|
| 260 |
+
- **Multi-field search** - Search by category, content type, quality
|
| 261 |
+
- **Reading level filtering** - Adjust complexity for audience
|
| 262 |
+
- **Quality-ranked results** - Surface best content first
|
| 263 |
|
| 264 |
+
### ✅ Chatbot Training
|
| 265 |
+
- **FAQ extraction** - 35 pre-labeled FAQ pages
|
| 266 |
+
- **Procedure training** - 28 step-by-step procedures
|
| 267 |
+
- **Category-based intents** - Map user queries to 14 categories
|
| 268 |
|
| 269 |
+
### ✅ Content Analysis
|
| 270 |
+
- **Quality assessment** - Identify low-performing pages
|
| 271 |
+
- **Category gaps** - Find underrepresented topics
|
| 272 |
+
- **Reading level analysis** - Optimize content accessibility
|
| 273 |
|
| 274 |
+
### ✅ Fine-tuning
|
| 275 |
+
- **High-quality training data** - Avg 91.5/100 score
|
| 276 |
+
- **Diverse categories** - Balanced domain coverage
|
| 277 |
+
- **Structured content** - Headers, lists, clear organization
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
## Version History
|
| 280 |
|
| 281 |
+
**v3.0.0 (Enhanced)** - December 2025
|
| 282 |
+
- Added category classification (14 categories)
|
| 283 |
+
- Added content type detection (7 types)
|
| 284 |
+
- Added quality scoring (0-100)
|
| 285 |
+
- Added reading level calculation
|
| 286 |
+
- Removed 82 faculty bio stubs
|
| 287 |
+
- Removed 149 repetitive list pages
|
| 288 |
+
- 2,448 ultra-high-quality pages
|
| 289 |
+
|
| 290 |
**v2.0.0 (Production)** - December 2025
|
| 291 |
- Initial production release
|
| 292 |
- 2,666 high-quality pages
|
| 293 |
+
- 34.9% filtering applied
|
| 294 |
+
|
| 295 |
+
**v1.0.0 (Deduplicated)** - December 2025
|
| 296 |
+
- 3,442 deduplicated pages
|
| 297 |
+
- Basic quality filtering
|
| 298 |
+
|
| 299 |
+
## Advantages Over Previous Versions
|
| 300 |
+
|
| 301 |
+
| Feature | v1.0 | v2.0 | v3.0 (Enhanced) |
|
| 302 |
+
|---------|------|------|-----------------|
|
| 303 |
+
| **Records** | 3,442 | 2,666 | **2,448** |
|
| 304 |
+
| **Avg quality** | Unknown | Unknown | **91.5/100** |
|
| 305 |
+
| **Categories** | ❌ | ❌ | **✅ 14 categories** |
|
| 306 |
+
| **Content types** | ❌ | ❌ | **✅ 7 types** |
|
| 307 |
+
| **Quality scores** | ❌ | ❌ | **✅ 0-100 scale** |
|
| 308 |
+
| **Reading levels** | ❌ | ❌ | **✅ Flesch-Kincaid** |
|
| 309 |
+
| **Faculty bios removed** | ❌ | ❌ | **✅ 82 removed** |
|
| 310 |
+
| **List pages removed** | ❌ | ❌ | **✅ 149 removed** |
|
| 311 |
+
|
| 312 |
+
## Quality Guarantee
|
| 313 |
+
|
| 314 |
+
Every page in this dataset:
|
| 315 |
+
- ✅ Scores ≥50/100 on quality metrics
|
| 316 |
+
- ✅ Contains ≥200 characters of content
|
| 317 |
+
- ✅ Has both title and topic (H1)
|
| 318 |
+
- ✅ Is unique (SHA256 deduplicated)
|
| 319 |
+
- ✅ Is evergreen (no temporal content)
|
| 320 |
+
- ✅ Is categorized and typed
|
| 321 |
+
- ✅ Has calculated reading level
|
| 322 |
|
| 323 |
## License
|
| 324 |
|
|
|
|
| 327 |
## Citation
|
| 328 |
|
| 329 |
```bibtex
|
| 330 |
+
@misc{byui-web-content-enhanced-2025,
|
| 331 |
+
title={BYU-Idaho Web Content Dataset (Enhanced)},
|
| 332 |
author={BYU-Idaho AI Team},
|
| 333 |
year={2025},
|
| 334 |
+
version={3.0.0},
|
| 335 |
publisher={Hugging Face},
|
| 336 |
howpublished={\url{https://huggingface.co/datasets/BYU-Idaho/Web-Content}}
|
| 337 |
}
|
|
|
|
| 344 |
|
| 345 |
---
|
| 346 |
|
| 347 |
+
**Enterprise-Ready:** This dataset features advanced enrichment and filtering for production AI applications. With category classification, quality scoring, and reading levels, it's optimized for intelligent routing, quality filtering, and audience-appropriate responses.
|
data-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c71864a83f8feee2fe049847b136dd8bdee96bb3fd475d48a07893bb2ed23b44
|
| 3 |
+
size 3036330
|
dataset_info.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"dataset_name": "byui-web-content-
|
| 3 |
-
"version": "
|
| 4 |
-
"description": "
|
| 5 |
"features": {
|
| 6 |
"index": {
|
| 7 |
"dtype": "int64",
|
|
@@ -26,13 +26,22 @@
|
|
| 26 |
"content": {
|
| 27 |
"dtype": "string",
|
| 28 |
"_type": "Value"
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
}
|
| 38 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"dataset_name": "byui-web-content-enhanced",
|
| 3 |
+
"version": "3.0.0",
|
| 4 |
+
"description": "Ultra-high-quality BYU-Idaho web content with category classification and quality scores",
|
| 5 |
"features": {
|
| 6 |
"index": {
|
| 7 |
"dtype": "int64",
|
|
|
|
| 26 |
"content": {
|
| 27 |
"dtype": "string",
|
| 28 |
"_type": "Value"
|
| 29 |
+
},
|
| 30 |
+
"category": {
|
| 31 |
+
"dtype": "string",
|
| 32 |
+
"_type": "Value"
|
| 33 |
+
},
|
| 34 |
+
"content_type": {
|
| 35 |
+
"dtype": "string",
|
| 36 |
+
"_type": "Value"
|
| 37 |
+
},
|
| 38 |
+
"quality_score": {
|
| 39 |
+
"dtype": "int64",
|
| 40 |
+
"_type": "Value"
|
| 41 |
+
},
|
| 42 |
+
"reading_level": {
|
| 43 |
+
"dtype": "float64",
|
| 44 |
+
"_type": "Value"
|
| 45 |
}
|
| 46 |
}
|
| 47 |
}
|
state.json
CHANGED
|
@@ -4,6 +4,6 @@
|
|
| 4 |
"filename": "data-00000-of-00001.parquet"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
-
"_fingerprint": "
|
| 8 |
"_format_type": "parquet"
|
| 9 |
}
|
|
|
|
| 4 |
"filename": "data-00000-of-00001.parquet"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
+
"_fingerprint": "byui_web_content_enhanced_v3",
|
| 8 |
"_format_type": "parquet"
|
| 9 |
}
|