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

OpenAI's Batch API Support #8482

Open
kluhan opened this issue Oct 22, 2024 · 0 comments
Open

OpenAI's Batch API Support #8482

kluhan opened this issue Oct 22, 2024 · 0 comments
Labels
type:feature New feature or request

Comments

@kluhan
Copy link

kluhan commented Oct 22, 2024

Is your feature request related to a problem? Please describe.
Currently, Haystack doesn’t support OpenAI’s batch API, which limits throughput and efficiency when processing large amounts of data with OpenAI models. This leads to higher latency and increased costs due to individual API calls for each request.

Describe the solution you'd like
I’d like to see Haystack support or enable leveraging the capabilities of OpenAI’s batch API.

Describe alternatives you've considered
I’ve considered workarounds, such as building a custom component that sends requests to a server, collects several requests for batching, and returns the results after processing. However, this approach would require running hundreds of pipeline instances in parallel, adding significant complexity.

Additional context
Batch API support would be a valuable enhancement, particularly for large-scale applications. Any information on potential plans or timelines for this feature would be appreciated.

@anakin87 anakin87 added the type:feature New feature or request label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants