ScrapeGraphAI-100k: Dataset for Schema-Constrained LLM Generation
This paper introduces ScrapeGraphAI-100k, a large-scale, real-world dataset of 93,695 schema-constrained extraction events derived from practitioner telemetry, which enables the training and benchmarking of large language models on structured generation tasks where prior synthetic or text-only corpora were insufficient.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a very smart, but sometimes overly chatty, robot assistant (a Large Language Model). You ask it to read a messy webpage and pull out specific details, like the price of a shoe or the author of an article. You want the answer in a perfect, neat box (a JSON schema), not a rambling paragraph.
The problem is that while we have lots of data on how these robots talk, we don't have enough data on how they extract information from real websites when you give them strict rules. Most existing datasets are like practice drills made up in a lab—they don't look like the messy, real-world websites people actually use.
Enter "ScrapeGraphAI-100k."
Think of this paper as the introduction of a massive, real-world training manual for these robots. Here is the breakdown in simple terms:
1. The "Real-World Gym"
The authors didn't make up fake websites. They collected 93,695 real examples of people using their software to scrape data from the internet.
- The Source: They asked 9 million users of their open-source tool if they could anonymously share what they were doing. About 93,000 of those interactions were kept after cleaning up duplicates and noise.
- The "Four-Tuple": Every example in this dataset is a complete story:
- The Content: The webpage text (converted to Markdown, like a clean document).
- The Request: The human's prompt (e.g., "Get the price and size").
- The Rules: The strict "box" (JSON schema) the robot had to fill.
- The Result: What the robot actually wrote back.
2. The "Complexity Trap"
The researchers analyzed these examples and found a fascinating pattern, like a speed limit sign for robots.
- Simple Tasks: If the rules (schema) are simple (like asking for just a name and price), the robots are great at following them.
- The Cliff: As the rules get more complex (more nested folders, more fields, more "if/then" logic), the robots start to crash.
- The Finding: There is a sharp "failure threshold." Once a rule set gets too deep or has too many keys, the success rate drops like a stone. It's like asking a human to fill out a form with 500 fields; eventually, they just give up or make mistakes.
3. The "Student vs. Teacher" Experiment
To prove this dataset is useful, the authors ran a small experiment, like a science fair project:
- The Teacher: A very smart, expensive model (GPT-5-nano) that generated perfect answers for the dataset.
- The Student: A tiny, cheap model (1.7 billion parameters) that was "taught" using this new dataset.
- The Result: The tiny student learned so well from the real-world examples that it started acting almost as good as a much larger, more expensive model (30 billion parameters) when it came to following the strict rules.
- The Catch: The student was great at drawing the outline of the box correctly (structural accuracy), but sometimes still struggled to get the exact words inside the box perfect (semantic correctness).
4. What's Inside the Box?
- Languages: It's mostly English and Traditional Chinese (about 88% of the data), covering 18,000 different types of "rule sets."
- What's Missing: The paper admits they didn't include the raw, messy HTML code of the websites (just the clean text version) and they don't have a "human-verified" gold standard for every single answer yet. They are saving that for a future update (Version 2.0).
The Bottom Line
This paper says: "We built a massive library of real-world examples where robots tried to follow strict rules to extract data. We found that robots get confused when rules get too complex, but if you train a small robot on this real data, it can learn to follow the rules almost as well as a giant robot."
It's a tool for researchers to build better, smaller, and more efficient AI tools that can read websites without getting lost in the details.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.