Find answers from the community

Updated 2 years ago

Hey I ve been getting this error when

Hey I've been getting this error when trying to run GPT index imports

from llama_index import PromptHelper, SimpleWebPageReader, GPTSimpleVectorIndex
File "/usr/local/lib/python3.8/site-packages/llama_index/init.py", line 47, in <module>
from llama_index.langchain_helpers.memory_wrapper import GPTIndexMemory
File "/usr/local/lib/python3.8/site-packages/llama_index/langchain_helpers/memory_wrapper.py", line 5, in <module>
from langchain.chains.base import Memory
ImportError: cannot import name 'Memory' from 'langchain.chains.base' (/usr/local/lib/python3.8/site-packages/langchain/chains/base.py)

I'm on llama_index 0.4.22
j
1 comment
yeah i patched fixed this with llama-index==0.4.22.post1
Add a reply
Sign up and join the conversation on Discord