I am using python boto3 'classify_document' api on own server for custom classification also I am just sending normal text to classify, in a loop I am getting first response with 0 RetryAttempts and then after it start RetryAttempts like 6 to 10 time for each document.
I am getting result but it slow down process with 6 to 10 time retry.