Find answers from the community

Updated 4 months ago

I’m using llama index at the moment, and

At a glance

The community member is using the llama index and encountering a max iterations error when using the reAct feature while chatting with the API. They are asking if there is an easy way to increase the iterations without forking the code, or if there is another way around this issue. A comment from another community member suggests that there is a parameter in the constructor to set the max iterations, with the default being 10, and that hitting this limit might mean the agent is stuck.

I’m using llama index at the moment, and when using reAct while chatting with the api, sometimes I get a max iterations error. Is there any easy way to increase the iterations without forking? Or is there any other way around this?
L
1 comment
theres a param in the constructor (the default is 10, usually if it hits this that might mean the agent is stuck)

Plain Text
ReActAgent.from_tools(..., max_iterations=10)
Add a reply
Sign up and join the conversation on Discord