<< Home | Tech
Automated classification of 230K wiki pages
| Area | Tech |
| AI used | Claude Sonnet 4.5 |
| Source | r/PromptDesign |
| Posted | 2026-02-06 |
The move
Use a high-performing LLM to generate high-quality reasoning and labels for a small subset of data to train a smaller, local model for large-scale classification.Steps
- Clean raw wiki data by removing non-essential elements like tables and references.
- Hand-label a small, diverse subset of your data to establish a ground truth.
- Use a powerful LLM to generate labels and reasoning for the subset using a strict classification prompt.
- Train a smaller, local model on the LLM-generated dataset.
- Run the local model on the full dataset and iteratively correct mismatches.
Prompt for your AI
You are an expert Data Labeling System. Analyze the provided wiki page content and classify it into one of these categories: [text_based, image_based, video_based, audio_based, interactive_based, performance_based, non_media, ambiguous, index_page]. Provide your classification and a brief reasoning following this pattern: [Subject Identity]. Stated facts: [Fact 1], [Fact 2]. [Policy Confirmation]. Content: [Paste wiki page content here]
What happened
The user needed to classify 2M wiki pages into specific media categories but lacked a scalable method. They used Claude Sonnet 4.5 to process 500 hand-labeled examples, generating consistent labels and reasoning. This data was then used to train a local Qwen2.5-14B-Instruct model to handle the remaining 230K rows efficiently.Watch out
The local model's accuracy is entirely dependent on the quality of the initial 500-row training set. Ensure the prompt logic is strictly followed to avoid 'hallucinated' classifications.Give it to your agent
Read https://howtheyuse.ai/p/automated-classification-of-230k-wiki-pages.md and help me do this.