Find answers from the community

Updated 12 months ago

Ok otherone, that one is odd as the same

At a glance
Ok otherone, that one is odd as the same import works in my cstom script but not here File "C:\Users\user\miniconda3\envs\llama_index_new\lib\site-packages\llama_index\core\prompts\base.py", line 500, in get_template
from llama_index.core.llms.langchain import LangChainLLM
ModuleNotFoundError: No module named 'llama_index.core.llms.langchain'
W
o
L
9 comments
Try importing it like this:
from llama_index.llms.langchain import LangChainLLM
oh youre on it already. well this one is not my import its yours πŸ˜›
Ah lol i see πŸ˜†
Yep just read the file name and line
its odd as the import I copy from that file into my script just works and throws no error
failing for me πŸ‘€
Attachment
image.png
hmmm thats a hidden bug lol
will fix (if theres not already a pr for this, I haven't checked yet)
I like hidden bugs once I find them, big changes like this will yield bugs so its all fine and we are lucky we already found this guy here πŸ™‚
Add a reply
Sign up and join the conversation on Discord