Closed daniyal214 closed 1 year ago
the regex string for passing generation further: "Action: (.?)\nAction Input: (.)" My best guess is that LLM Which is statistical model for language Sometimes do not generate "\n" And we are expecting "\n" everytime deterministically
link to regex codeline: https://github.com/hwchase17/langchain/blob/master/langchain/agents/conversational/base.py#:~:text=regex%20%3D%20r%22Action%3A%20(.*%3F)%5CnAction%20Input%3A%20(.*)%22
I found that it in my case it actually is most often the regex which is at fault here. Whipping up a PR as we speak.
Hi, @daniyal214! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
Based on my understanding, the issue you reported is about the langchain bot encountering a ValueError with the message "Could not parse LLM output." It seems that this error occurs randomly during the bot's execution. User vvv-tech suggested that the issue might be with the regex string used for passing generation further. User ubuntudroid has found that the regex is often at fault and is currently working on a pull request to fix it.
Before we close this issue, we wanted to check with you if it 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 it will be automatically closed in 7 days.
Thank you for your contribution to the LangChain repository!
I keep getting this error with my langchain bot randomly.