Find answers from the community

Updated 7 months ago

Hi guys, i am using ReActAgent with

At a glance

A community member is using the ReActAgent with a retriever engine to build a chatbot, but is encountering a "ValueError: Reached max iterations." error. Other community members suggest increasing the max_iterations value, but note that reaching the default of 10 may indicate the agent is stuck. The community member has tried several times but cannot get any responses. They are using the Llama 3 model as the LLM. There is no explicitly marked answer to the issue.

Hi guys, i am using ReActAgent with retriever engine to build a chat bot. However i got the "ValueError: Reached max iterations." error when running the reactAgent. Does anybody happen to know how can i fix it? Thanks!
L
r
3 comments
You can increase the max_iterations value, but the default is 10, and if you are reaching 10, that kind of feels like the agent is stuck no?
yes i think it is stuck. I had tried several times, it cannot return any responses. here is my codes:
Plain Text
agent = ReActAgent.from_tools(
    [query_tool],
    llm=llm,
    system_prompt="You are a polite chat bot.",
    verbose=True
    # context=context
)
Hi, I’m still stuck on this error..... Is there any possible way to fix it? The LLM i am using is Llama 3 model.
Add a reply
Sign up and join the conversation on Discord