Documentation Index
Fetch the complete documentation index at: https://docs-docflow.textin.ai/llms.txt
Use this file to discover all available pages before exploring further.
Feature Overview
For complex documents containing multiple files of multiple categories, the file splitting function supports intelligent recognition of document content to achieve automatic splitting and classification of documents.Use Cases
1. Medical Insurance Claims Scenario
A multi-page file contains:- Pages 1-2: Insurance policy information
- Pages 3-5: Medical invoices
- Pages 6-10: Hospitalization records
2. Logistics Import/Export Scenario
One file contains:- Page 1: Export customs declaration
- Page 2: Commercial invoice
- Page 3: Packing List
- Page 4: Sales contract
The file splitting function can intelligently split by document type.
API Parameter Configuration
Enable File Splitting Function
Setsplit_flag=true in the upload interface to enable the file splitting function:
Parameter Description
| Parameter Name | Type | Default Value | Description |
|---|---|---|---|
split_flag | boolean | false | Whether to enable file splitting function |
Example Code
Return Result Description
File Splitting Result Structure
After enabling the file splitting function, the result returned by thefile/fetch interface will include the child_files field, which describes the information of sub-documents after splitting:
Key Field Description
| Field Name | Type | Description |
|---|---|---|
child_files | array | List of sub-files after splitting |
child_files[].id | string | Unique identifier of sub-file |
child_files[].task_type | integer | Task type, 0 indicates generated by file splitting |
child_files[].category | string | Document classification result |
child_files[].pages | string | Page information of sub-files after splitting, including page numbers of sub-files in the original file |

