Find answers from the community

Updated 4 months ago

Hi guys, I am playing around with

At a glance
Hi guys, I am playing around with workflows but I struggle to understand how to use them in the right way.

I come from development, been used nodejs for more than 8 years in IoT so events was my way to think.

I am building an agent that can interact with Google Calendar, I thought to creat a FunctionTool that wrap the Calendar Class.

The user can interact with the calendar using a chat.

In this case, how the workflows can be implemented in the propped way?
W
G
4 comments
Workflows is a event driven platform, So if you have certain scenarios like once you fetch records from calender you want to format it in a particular way before indexing you can do that.

Second let say based on your query you wanna perform some action like cancel calender booking or create a new booking. You can do that in a event.

You can find lot of examples here for workflow implementation: https://docs.llamaindex.ai/en/stable/module_guides/workflow/#examples
Hey! Thanks for your answer. I guessed so. So in a scenario where a chat agent can interact with different tools - database, vector store, third part API - the right way for implementing workflows could be having 1 workflow each tool, right?
Yes and no, both scenario can happen
like if you want more control over each interaction you can define them in a different event if not then let it stay in a single place ( for example: Query engine consist of two main work - Retrieval and response generation. You can split them into diff events if you want to have more power and want to do something before it goes to the next step. )
Ok thanks you. I think I get it now.
Add a reply
Sign up and join the conversation on Discord