Enhancements to OpenAI Embedding: Batch Processing, Customer Support and Dynamic Model Selection #1844
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
In the current update of the OpenAI embedding script there are new features such as batch processing, asynchronous support, dynamic model selection, and improved error handling. These enhancements are concerned with increasing the performance, flexibility, and the level of error shown to the user.
Related Issues
None on associated concerns, where proactive performance enhancement is being implemented.
Discussions
Some discussion focused on enhancing script throughput by means of batch operations and async capability.
QA Instructions
To validate the enhancements, one should perform the embedding requests in both batch and async modes.
Merge Plan
Before merge, make certain that all changes are good with different sizes of input.
Motivation and Context
This update is focused on enhancing the work of requests’ embedding and streamlines methods.
How we test:
Performance enhancements: Batch mode capability with asynchronous features.
Flexibility: Dynamic model selection.
Improved error handling: Saying the wrong thing at the wrong time.
Please delete options that are not relevant.
Checklist:
Maintainer Checklist