data-pipeline

Automates LLM pretraining corpus creation with cleaning, MinHash deduplication, PII removal, and reporting.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Rachasumanth/text2llm001 --skill data-pipeline-rachasumanth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-pipeline
Source: https://github.com/Rachasumanth/text2llm001/tree/main/workspace/skills/data-pipeline
Command: npx skills add https://github.com/Rachasumanth/text2llm001 --skill data-pipeline-rachasumanth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires trafilatura, resiliparse, datasketch, pandas, pyarrow, regex, ftfy, langdetect, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of high-quality datasets for training Large Language Models from raw web and domain-specific data, ensuring data cleanliness, uniqueness, and privacy.

Core Features & Use Cases

  • Data Ingestion: Collects text from diverse sources like web pages, documents, and databases.
  • Data Refinement: Performs cleaning, deduplication (MinHash), quality filtering (FineWeb-Edu style), and PII redaction.
  • Use Case: Generate a clean, de-duplicated, and PII-scrubbed dataset of 1 million web documents for pre-training a new LLM, ensuring balanced domain representation.

Quick Start

Use the data-pipeline skill to build a pretraining corpus from scraped web data.

Frequently Asked Questions about data-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a pretraining corpus for LLMs from scraped web data?

To build a pretraining corpus for LLMs, you can automate the ingestion of raw scraped web data and apply cleaning, MinHash deduplication, heuristic quality filtering, and PII removal to ensure dataset safety.

What is MinHash deduplication and how does it work for dataset cleaning?

MinHash deduplication is a data cleaning technique that efficiently identifies and removes near-duplicate text documents. It ensures data uniqueness in large-scale LLM pretraining corpora by estimating document similarity.

How do I remove PII from a dataset before training a language model?

To remove PII from a dataset, apply automated PII redaction during the data pipeline process. This ensures sensitive personal information is scrubbed from documents before pretraining an LLM.

Can I use pandas and pyarrow to process large datasets for LLM training?

Yes, you can use pandas and pyarrow to process large datasets for LLM training. The pipeline leverages these libraries to handle data manipulation and columnar storage efficiently during automated corpus creation.

Does this data pipeline support FineWeb-Edu style quality filtering?

Yes, the data pipeline supports FineWeb-Edu style quality filtering. It applies heuristic-based filters to retain high-quality text documents, ensuring balanced domain representation for pretraining.

What are the limitations of using regex and ftfy for text cleaning in data pipelines?

Using regex and ftfy for text cleaning handles encoding fixes and pattern removal, but may struggle with highly unstructured web data. Additional pipeline steps like quality filtering are needed to ensure corpus integrity.