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

Async support for pipe #359

Open
almajo opened this issue Dec 5, 2024 · 1 comment
Open

Async support for pipe #359

almajo opened this issue Dec 5, 2024 · 1 comment

Comments

@almajo
Copy link

almajo commented Dec 5, 2024

Hi,

I was wondering why there was no async version of pipe available? I have a rag module that can be run completely asynchronous with different calls to LLMs and Vector stores. I would love if we could use an AsyncGenerator as well as a return type for the pipe.

Any thoughts on that?

As most pipelines are calls to other APIs, Async support would make a lot of sense in my opinion.

@bahrikutlu
Copy link

You should be able to start an event loop inside the synchronous pipe function and process multiple tasks in parallel. Starting an LLM conversation to generate the boilerplate code is a good start. That is how I figured it out.

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

No branches or pull requests

2 participants