What do you mean by iterative process?
It means that I would like to answer a complex question which needs to be broken down to several sub-tasks
for example, if I asked you who is the tallest American president of all times, you would first need to find a list of the American presidents, for each one find his height, and then among those get the tallest one
Would be interesting to know how to solve it for shorter documents than 8K and for longer ones (I guess for the longer ones I could use GPTListIndex but open for suggestions)
Llama index has query decomposition, but it seems like its only supported for graphs π€
Interesting, I didn't know this functionality. So this seems like an agent, only it cannot use any external tools such as searching the web, etc.
That would be good to start with, however I do prefer using an agent since it gives me the ability to add more tools such as calculator, searching the web, etc
Thanks a lot for the reference! Would love to hear if there's a way to implement this using an agent just to have more flexibility in the future
@Logan M When reading the debug info in the link, it seems like it uses "few shot training" in each prompt, but if I understand correct it only queries the LLM once, right? I was looking more for something that will query the LLM several times until it reaches its goal, like an agent
It will query the LLM multiple times. Notice that it generates many questions and answers them all, then returns a final answer.
You can use this inside langchain, just by using llama index as a custom tool
You're right, missed that π
By "custom tool" you mean I can use GPTListIndex as a tool?
Very cool, this seems the thing I was looking for!!!
@Logan M Hey Logan, I actually have a followup question regarding this.
Is there an AutoGPT capability where you can provide it with several goals I.e letting it read a text file with instructions, then apply those instructions on the given index (I.e ListIndex) to find insights, etc.
Very cool @Logan M ! So what's left to develop to support the example I've described ? Is it just about supporting reading/ writing to files?
Yea either reading/writing to files (which will hopefully be migrated from auto_llama soon, another folder in that repo), or adding an existing index as tool π
But I think the abstractions so far in the package make those really easy to add yourself too π
Amazing! Keep up the good work!