parallel muti agent workflow #18282
Replies: 1 comment
-
Hey @bashiryounis! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! LlamaIndex supports parallel execution of agents natively through its workflow functionality. You can achieve parallel processing by using the For your specific use case, you can modify your workflow to utilize this parallel execution feature. Here's a general approach you can follow:
By following these steps, you can set up a parallel agent workflow in LlamaIndex that allows multiple agents to work simultaneously and independently, updating a shared state as their tasks complete. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm currently experimenting with multi-agent workflows using LlamaIndex, and I'm looking for some guidance on running agents in parallel rather than sequentially via handoff.
My goal is to have multiple agents (e.g., 4) working simultaneously and independently, while updating a shared state concurrently — instead of relying on the current sequential handoff approach, which slows down the process.
the current setup relies on agent handoffs, which makes the workflow sequential. Instead, I'd like to run all four agents in parallel, letting them process the input concurrently and update the shared state as their tasks complete.
Is there a recommended pattern or approach within LlamaIndex (or any best practice) to achieve this kind of parallel agent execution?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions