Replies: 2 comments
-
Hey @InAnYan, I'm here to help you out with any bugs, questions, or contributions you have in mind. Let's figure this out together! Using nested workflows in LlamaIndex offers several advantages over simply creating a field in your workflow class:
Overall, nested workflows provide a more dynamic and flexible way to manage complex workflows compared to using fields in the workflow class. 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.
-
I also have the same confusion. Could not understand why extra complication (.add_workflow method) is introduced. It should have some advantage over using workflow as a field |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You have a dedicated page for nested workflows: https://docs.llamaindex.ai/en/stable/understanding/workflows/nested/.
Nested workflows currently work like this:
add_workflow
:Why would I do all of this, instead of just creating a field in my workflow class?:
Beta Was this translation helpful? Give feedback.
All reactions