extract_information
Extract key information from documents using a user-defined schema or auto-generation. Handles PDFs, images, and Office files up to 50MB.
Instructions
Extract structured information from documents using Upstage Universal Information Extraction.
This tool can extract key information from any document type without pre-training.
You can either provide a schema defining what information to extract, or let the system
automatically generate an appropriate schema based on the document content.
Supported file formats: JPEG, PNG, BMP, PDF, TIFF, HEIC, DOCX, PPTX, XLSX
Max file size: 50MB
Max pages: 100
Args:
file_path: Path to the document file to process
schema_path: Optional path to a JSON file containing the extraction schema
schema_json: Optional JSON string containing the extraction schema
auto_generate_schema: Whether to automatically generate a schema if none is provided
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the document file to process | |
| schema_json | No | JSON string containing the extraction schema (optional) | |
| schema_path | No | Path to JSON file containing the extraction schema (optional) | |
| auto_generate_schema | No | Whether to automatically generate a schema |