Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Bedrock embeddings call retry extension #2917

Merged

Conversation

RPKosec
Copy link
Contributor

@RPKosec RPKosec commented Jul 31, 2024

AWS Bedrock embeddings retry for Titan models added.
Change sends requests to AWS Bedrock in batches, not all in one go and introduces timeout between calls if throttling exception is caught. After every retry, timeout is increased and stays at the value until the end of operation. Retry counter is reset when successful response is returned, but throws exception if there are to many throttling exceptions in a row.
Additional parameter, set by user are max retries and batch size. Current observations show, batch size 50 works well.

@HenryHengZJ HenryHengZJ marked this pull request as ready for review August 1, 2024 14:46
@HenryHengZJ HenryHengZJ merged commit edbaa53 into FlowiseAI:main Aug 2, 2024
2 checks passed
@RPKosec RPKosec deleted the bug/aws-embedding-throttling-2907 branch August 5, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants