crazyyanchao / llmcompiler

LLMCompiler is an Agent Architecture designed to speed up the execution of agent tasks by executing them quickly in the DAG. It also saves the cost of redundant token use by reducing the number of calls to the LLM.
Apache License 2.0
12 stars 2 forks source link

A use case example #2

Open nooralahzadeh opened 1 month ago

nooralahzadeh commented 1 month ago

Could you provide an example of show case of how your LLMcompiler provides a plan and final answer? Thanks

crazyyanchao commented 1 month ago

@nooralahzadeh Please refer to the example below. Example of Performing Complex Mathematical Calculations

nooralahzadeh commented 2 weeks ago

Thanks @crazyyanchao. Is there any way that we use the StateGraph instead of MessageGraph and update the state in each task?

crazyyanchao commented 2 weeks ago

@nooralahzadeh I would consider implementing a stategraph of state updates for the LLMCompiler. Also, can you add a specific reason why you'd like to use stategraph?

nooralahzadeh commented 2 weeks ago

@crazyyanchao In specific use cases, you need to pass a JSON or data frame structure from one step to another step and add or complete it during the steps in the graph. Having a state graph will help a lot!