unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

feat: enable users to define retry logic when using `partition_via_api`

Open Coniferish opened this issue 4 months ago • 0 comments

Is your feature request related to a problem? Please describe. partition_via_api does not accept arguments for defining the retry logic to be used by the python client. This means partition_via_api and unstructured-ingest (which depends on partition_via_api) have restricted functionality.

Describe the solution you'd like In partition_via_api, sdk.general.partition() should be called with an optional RetryConfig: New parameters (strategy: str, backoff: BackoffStrategy, and retry_connection_errors: bool) will need to be added to partition_via_api since request_kwargs is used for all of the partition and chunking parameters. These new params should be used to init a RetryConfig object.

In addition to updating partition_via_api, unstructured-ingest also needs to be updated.

Coniferish avatar Apr 29 '24 17:04 Coniferish