category
parameter during file upload, so DocFlow will skip the automatic classification process and go directly to the extraction stage.
The specified
category
must be a file category that has been configured in the DocFlow workspace, otherwise processing will fail.Manual classification can save processing time and is particularly suitable for batch processing scenarios with the same type of documents.
Use Cases
- Batch processing of same type documents: Such as batch processing invoices, contracts, etc.
- Known document types: Document category is determined before uploading files
- Improve processing efficiency: Skip classification step and go directly to extraction stage
Specify Category During Upload
Add thecategory
parameter to the file upload interface to achieve manual classification:
Specify Category for Batch Upload
For batch upload, you can specify the same category for all files:Processing Workflow Comparison
Automatic Classification Workflow
Manual Classification Workflow
Notes
- Category must be configured: The specified
category
must have been configured in the DocFlow workspace, otherwise an error will be returned - Category name matching: Category name must exactly match what was configured (case-sensitive)
- Processing status: Files with manual classification will skip classification status directly in query results
- Error handling: If the specified category does not exist, file processing will fail. It is recommended to first ensure the category is correctly configured through Configure File Categories
Query Processing Results
After files with manual classification are processed, you can query results through thefile/fetch
interface:
Return Result Example
Chinese File Category Parameter Passing
When you need to specify Chinese or other non-English file categories, you need to perform UTF-8 URL encoding on thecategory
parameter.
Encoding Example
Use the
urllib.parse.quote()
function to URL encode Chinese category names.