pinecone-io / examples

Jupyter Notebooks to help you get hands-on with Pinecone vector databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confusing claim in "Langchain AI Handbook" - Chapter 6

balvisio opened this issue · comments

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