Generate extraction field prompts
Generate field names, field types, field prompts, and other configuration references from a sample document or prompt. When you pass the app_id of a high-speed custom extraction application, the high-speed auto-configuration service returns a configuration preview such as common_rule, field_rule, and table_rule. This endpoint does not save a configuration version or automatically populate the Web application. High-speed applications must provide file_url or file_base64. prompt is only used as an auxiliary instruction.
Authorizations
Production OpenAPI Accessor access_key. You can find it in My API in the ADP platform. If the key is disabled, expired, or does not belong to the production environment, the API returns Accessor not found.
Path Parameters
Tenant name. Default: laiye.
Body
- Option 1
- Option 2
Field configuration generation request. The request body must provide file_url or file_base64. prompt can be used as an auxiliary generation instruction.
Application ID. When you pass a high-speed custom extraction application, the response returns a high-speed auto-configuration preview.
Base64-encoded file. Required for high-speed applications if file_url is not provided.
File URL. Required for high-speed applications if file_base64 is not provided.
User-provided generation instruction. Provide a file as well, and use prompt only as an auxiliary instruction.
Document type. You can provide this for standard application recommendations. High-speed applications detect the document type automatically.
Document type description. You can provide this for standard application recommendations.
