More of a pure langchain question but llamaindex may also have its own solution here.
trying to wrap my head around how to do something:
I'm submitting a question via RAG which gets turned into a list of tasks:
- do a thing
- do some other thing
for each step I am trying to:
- figure out if the original question has enough information to complete the task
- if it does, perform the task (via the LLM)
- pass the original question, the output of the task, and the next step along
- see if there is enough information to complete the next task
and kind of stay in that loop until everything is complete. then put itall together and send back to the user.