What problem does it solve?
Manually choosing between regex and LLM for structured text parsing often leads to either excessive costs from overusing LLMs or poor accuracy from poorly written regex rules. This Skill eliminates that guesswork with a proven decision framework to balance speed, cost, and accuracy for consistent text formats.
Core Features & Use Cases
- Hybrid Parsing Pipeline: Uses regex to handle 95-98% of structured text extractions deterministically, and only routes low-confidence edge cases to an LLM for correction.
- Built-in Confidence Scoring: Automatically flags malformed or incomplete extractions (e.g., missing answers, too few choices) to identify exactly which items need LLM review.
- Real-World Use Case: Parse 1000 quiz questions from a consistent text format, extract questions, choices, and answers with 98% accuracy via regex, and only send 2% of malformed items to an LLM, cutting total processing costs by ~95% compared to using an LLM for all items.
Quick Start
Use the regex-vs-llm-structured-text skill to parse the attached quiz document, extract all question text, multiple-choice options, and correct answers, and flag any low-confidence extractions for optional LLM review.