See how you can call DocParse asynchronously
partition_file_async_submit
- function that makes a request to partition the file and returns a task_id that you can use to keep track of your request to partition the file
partition_file_async_result
- function that you can call to get the result of the partition_file task you just sent. It will return a dict that indicates a status (“done”
or “pending”
)
Here’s an example of how you can process multiple files at the same time: