Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
is there a way to get rid of max
is there a way to get rid of max
Inactive
0
Follow
L
Lucas
8 months ago
ยท
is there a way to get rid of max iterations I tried setting it to large number and setting it to false still nothing also had a system prompt?
L
L
12 comments
Share
Open in Discord
L
Logan M
8 months ago
There is already a system prompt -- it has all the react instructions
L
Logan M
8 months ago
You can edit this giant prompt. Or you can provide extra context in it
ReActAgent.from_tools(..., context="extra context/instruction")
L
Lucas
8 months ago
can you link me to where all the params where ReActAgent.from_tools.() are?
L
Logan M
8 months ago
https://github.com/run-llama/llama_index/blob/bb91f5219b0fba04e91544a0eb547e6d0cb4441d/llama-index-core/llama_index/core/agent/react/base.py#L91
L
Lucas
8 months ago
anyway I can turn off max iteractions?
L
Logan M
8 months ago
no
L
Logan M
8 months ago
can only increase it
L
Logan M
8 months ago
If you are going over 10 though, tbh something might be wrong
L
Lucas
8 months ago
what is the meaning of max iterations?
L
Logan M
8 months ago
Max number of react iterations (i.e. tool calls essentially)
L
Logan M
8 months ago
If it takes more than 10 tool calls to solve something, the LLM is probably stuck or you have a unique use-case and should increase it
L
Lucas
8 months ago
gotcha, yeah in my case its possible if my go over 10 sometimes
Add a reply
Sign up and join the conversation on Discord
Join on Discord