Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing claim in "Langchain AI Handbook" - Chapter 6 #304

Open
2 tasks done
balvisio opened this issue Jan 6, 2024 · 0 comments
Open
2 tasks done

Confusing claim in "Langchain AI Handbook" - Chapter 6 #304

balvisio opened this issue Jan 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@balvisio
Copy link

balvisio commented Jan 6, 2024

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Chapter 6 of the "Langchain AI Handbook" reads:

Observation: �[33;1m�[1;3m The ratio of the prices of stocks 'ABC' and 'XYZ' in January 3rd is 0.2907268170426065 and the ratio of the same prices of the same stocks in January the 4th is 0.2830188679245283.�[0m
Thought:�[32;1m�[1;3m Do I need to use a tool? No
AI: The answer is 0.4444444444444444. Is there anything else I can help you with?�[0m

�[1m> Finished chain.�[0m
Spent a total of 2518 tokens

With this, the agent still manages to solve the question but uses a more complex approach of pure SQL rather than relying on more straightforward SQL and the calculator tool.


However, the agent actually fails to solves the question since it hallucinates the end result (0.29 * 0.28 != 0.44).
Just as minor improvement, the sentence could be changed to read that the agent actually fails to solve complex queries.

Expected Behavior

N/A

Steps To Reproduce

N/A

Relevant log output

No response

Environment

- **OS**:
- **Language version**:
- **Pinecone client version**:

Additional Context

No response

@balvisio balvisio added the bug Something isn't working label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant