What is Few-Shot Extraction?
Few-shot extraction is an AI-driven parsing technique where a Large Language Model (LLM) is given a target schema and a handful of labeled examples, then tasked with extracting structured data from raw, unstructured text or HTML. Unlike traditional CSS selectors that break when a site's layout changes, few-shot models rely on semantic understanding, making them highly resilient to DOM drift and ideal for long-tail scraping targets where writing custom parsers is economically unviable.