Extract Structured Data
lyzr_extractExtract structured data from files, URLs, or raw text by defining an extraction schema. Specify the fields you need to turn unstructured content into usable, organized output.
Instructions
Extract structured data from a file (base64), a file URL, or raw text, according to an extraction schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Extraction tier (default standard) | |
| target | No | Extraction target mode (default per_doc) | |
| annotate | No | Whether to annotate the source (default false) | |
| file_url | No | URL of a file to extract from, instead of uploading bytes | |
| filename | No | Filename for the uploaded file (used with file_content_base64) | |
| full_text | No | Raw text to extract from, instead of uploading a file | |
| mime_type | No | MIME type of the uploaded file | |
| chunk_size | No | Chunk size for extraction (default 1000) | |
| extra_info | No | JSON string of extra metadata (default '{}') | |
| chunk_overlap | No | Chunk overlap for extraction (default 100) | |
| parser_config | No | Parser configuration string | |
| extraction_schema | Yes | Schema string describing what fields/structure to extract | |
| file_content_base64 | No | Base64-encoded file content to extract from (omit if using full_text or file_url) |