Extract structured fields from text per a user-supplied schema
Per-row — runs once for each row.
EXTRACT_STRUCTURED({{ text }}, {{ schema }})| name | type | description |
|---|---|---|
| text | VARCHAR | The text document to extract from |
| schema | VARCHAR | JSON schema of the desired output (free-form shape) |
Basic field extraction with mixed types
SELECT
extract_structured (
'Product: Acme Widget. Shipped 2024-05-12 for $49.99 to customer Jane Doe.',
'{"product_name":"string","ship_date":"date","total":"decimal","customer":"string"}'
);Crawl a website and extract structured data from each page (via Firecrawl)
Extract specific information from unstructured text (zero-shot NER)
LLM-backed extraction (escape hatch for EXTRACTS)
Merge multiple timelines into unified chronological sequence
Extract information from text using natural-language instructions
Parse, validate, or transform patterned strings using plain-English instructions
Extract structured fields from text per a user-supplied schema
Per-row — runs once for each row.
EXTRACT_STRUCTURED({{ text }}, {{ schema }})| name | type | description |
|---|---|---|
| text | VARCHAR | The text document to extract from |
| schema | VARCHAR | JSON schema of the desired output (free-form shape) |
Basic field extraction with mixed types
SELECT
extract_structured (
'Product: Acme Widget. Shipped 2024-05-12 for $49.99 to customer Jane Doe.',
'{"product_name":"string","ship_date":"date","total":"decimal","customer":"string"}'
);Crawl a website and extract structured data from each page (via Firecrawl)
Extract specific information from unstructured text (zero-shot NER)
LLM-backed extraction (escape hatch for EXTRACTS)
Merge multiple timelines into unified chronological sequence
Extract information from text using natural-language instructions
Parse, validate, or transform patterned strings using plain-English instructions