From langchain.chains import LLMChain causes error

Hi
I am a beginner and following the tutorial:

The following line causes error:
from langchain.chains import LLMChain

Please advise on how to fix this. Thanks

hi @LLMExplorer

seems like the docs is not up to date.

Install langchain-classic and then import from langchain_classic.chains.llm import LLMChain

If this helps, mark the post as Solved, please.

Thanks for flagging. Like @pawel-twardziak mentioned, you can use:

from langchain_classic.chains import LLMChain

I’ll update the docs!