Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

encountered error when using load_chain #30

Open
xin007-kong opened this issue Mar 29, 2023 · 1 comment
Open

encountered error when using load_chain #30

xin007-kong opened this issue Mar 29, 2023 · 1 comment

Comments

@xin007-kong
Copy link

When I exectuted the code below

from langchain.chains import load_chain

chain = load_chain("lc://chains/llm-math/chain.json")

I met the following error
ValueError: Could not find file at https://raw.githubusercontent.com/hwchase17/langchain-hub/master/chains\llm-math\chain.json

@SDcodehub
Copy link

based of path you have pasted looks like the path is wrong, post \llm-math\chain.json

I think chain = load_chain(r"lc://chains/llm-math/chain.json") will work

anyhow it is deprecated

C:\Users\sagar.desai\Anaconda3\envs\GenAI\lib\site-packages\langchain\chains\llm_math\base.py:50: UserWarning: Directly instantiating an LLMMathChain with an llm is deprecated. Please instantiate with llm_chain argument or using the from_llm class method.
  warnings.warn(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants