langchain
langchain copied to clipboard
Issue: How do I fix the prompt length error in any agent that uses LLMCHAIN ?
Issue you'd like to raise.
I am using the babyagi with the zeroshotagent the prompt length error is persistent , how can we fix it possibly summarise the agent_scratchpad and if someone could explain how does it work by default ? does It keep appending the bot and human response in it or just the previous ones?
Suggestion:
No response
show your codes and logs , please.
Hi, @tejeshbhalla! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you opened this issue regarding a prompt length error in an agent that uses LLMCHAIN. Specifically, you are using the babyagi with the zeroshotagent and are seeking guidance on how to fix the error and understand the agent_scratchpad. There has been one comment from lingfengchencn asking for you to provide your codes and logs.
Before we proceed, we would like to confirm if this issue is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on this issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.
Thank you for your understanding and cooperation. We look forward to hearing from you soon.
Best regards, Dosu