ScrapeGraphAI-100k: Dataset for Schema-Constrained LLM Generation
Organizations: ScrapeGraphAI, San Francisco, United States
Abstract
Producing output that conforms to a specified JSON schema underlies tool use, structured extraction, and knowledge base construction in modern large language models. Despite this centrality, public datasets for the task remain small, synthetic, or text-only, and rarely pair real page content with the prompts and schemas used in practice. We introduce ScrapeGraphAI-100k, 93,695 schema-constrained extraction events collected via opt-in ScrapeGraphAI telemetry in Q2--Q3 2025, deduplicated and balanced by schema from 9M raw events. The corpus spans 18 000+ unique schemas across 15 named languages plus a long-tail Other category, with English and Traditional Chinese covering 88% of detected content, each instance pairs Markdown-converted page content with a prompt, schema, LLM response, and per-example jsonschema-rs structural conformance labels (semantic correctness is out of scope, and raw HTML is deferred beyond v1.0). We characterize structural diversity across the corpus and identify sharp failure thresholds as schema complexity grows. As a case study, a 1.7B student fine-tuned on this data closely tracks the output distribution of its GPT-5-nano teacher, though it still trails a 30B-A3B reference (3.3B active parameters) on schema compliance. We offer this distillation result as preliminary evidence that grounding schema-constrained generation in real practitioner workloads at scale enables training and benchmarking that prior synthetic or text-only corpora could not support.
Figures & tables
| Dataset | Size | Lang. | Input | Output |
|---|---|---|---|---|
| C4 | 172B | English | Text | |
| FineWeb | 15T | English | Text | |
| WebMainBench | 7,887 | English | HTML | Markdown |
| WCE Benchmark | 7K | English | HTML | Text |
| SWDE | 124k | English | HTML | KV |
| OpenCeres | 2M | English | HTML | Triples |
| Metric | Qwen3 1.7B | Qwen3 4B | Qwen3-30B-A3B (3.3B active) | Ours |
|---|---|---|---|---|
| Validity Metrics | ||||
| Valid JSON | 0.9544 | 0.9681 | 0.9913 | 0.9558 |
| Schema compliant | 0.7954 | 0.8301 | 0.9363 | 0.9167 |
| Key-based Metrics | ||||
| Key precision | 0.7332 | 0.8029 | 0.8997 | 0.8988 |
| Key recall | 0.7477 | 0.8069 | 0.8956 | 0.8864 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Feature Name | Description |
|---|---|
| Identifiers | |
| id | Unique identifier for each extraction event |
| source | Source URL (domain-masked if sensitive) |
| schema_hash | SHA256 hash for deduplication |
| Input Content | |
| prompt | Natural language instruction |
| Metric | Mean | Std | Median | P25 | P75 | Max |
|---|---|---|---|---|---|---|
| Exec. Time (s) | 14.85 | 75.29 | 8.49 | 4.86 | 15.19 | 14,345 |
| Response Size (B) | 19,772 | 48,476 | 10,007 | 790 | 21,687 | 991,323 |
| Schema Size (B) | 1,161 | 1,012 | 1,080 | 1,058 | 1,106 | 56,254 |
| Schema Depth | 4.93 | 0.74 | 5.0 | 5.0 | 5.0 | 9.0 |
| Schema Keys | 41.40 | 42.10 | 37.0 | 37.0 | 37.0 | 3,060 |
| Schema Elements | 47.95 | 55.24 | 41.0 | 41.0 | 41.0 | 3,769 |
| Language | Count | Percentage (%) |
|---|---|---|
| eng_Latn | 49,187 | 52.91 |
| yue_Hant | 33,043 | 35.54 |
| kor_Hang | 5,389 | 5.80 |
| deu_Latn | 1,005 | 1.08 |
| nld_Latn | 669 | 0.72 |
| ltz_Latn | 463 | 0.50 |