Replies: 1 comment 3 replies
-
Based on the error traceback you've provided, it seems like the The issue seems to be with the following line of code: palchain.invoke("Jan has three times the number of pets as Marcia. Marcia has two more pets than Cindy. If Cindy has four pets, how many total pets do the three have?") Here, you're invoking the To resolve this issue, you might want to consider using a different method or class that's designed to generate human-readable solutions to math problems, rather than Python code. If such a method or class doesn't exist in the LangChain library, you might need to implement it yourself. Also, please note that you're using an older version of LangChain (v0.1.3). The latest version is v0.1.11. It's possible that this issue has been addressed in a more recent version of the library. I recommend checking the release notes and considering an upgrade to the latest version. I hope this helps! If you have any other questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use math-chain or pal-chain as a custom tool for my react agent, however when I try to run the chain. I am getting the following output with erros
It is able to solve the question but its giving ValueError rather than printing the answer.
Can anyone help me?
System Info
using langchain == 0.1.3
Beta Was this translation helpful? Give feedback.
All reactions