Find answers from the community

Updated 5 months ago

Hi guys, i am using ReActAgent with

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