Compare the LLM and Regex extraction methods in Unstructured’s structured data extractor to choose the right approach for your documents.
The structured data extractor supports two extraction methods — LLM and Regex — each suited to different document types and use cases. The extraction method setting determines how each field is populated.
Use this table to compare the two methods at a high level — how each processes your documents, the schema format it expects, and what the output looks like.
LLM
Regex
Choose when
Values depend on context; you need nested or typed fields