Find answers from the community

Updated last year

Hey guys

At a glance

A community member is experiencing an error while importing VectorStoreIndex from llama index. They are asking for the appropriate versions of llama index, OpenAI, and Langchain to resolve the issue, or any other solution. Other community members suggest upgrading to the latest version of llama-index, but this leads to a different error. Eventually, one community member notes that restarting the kernel resolved the issue.

Hey guys
I'm getting one error while importing VectorStoreIndex from llama index

ImportError: cannot import name 'BaseLanguage Model' from 'langchain.schema (C:\Users\2637547\AppData\Roaming\Python\Python311\site-packages\langchain\sc hema_init__.py

Can anyone pls tell me which version of llama index, OpenAi and Langchain I should use to resolve it. Or any solution to resolve it.
W
P
8 comments
What version are you using currently?
langchain==0.0.344
llama_index== 0.4.33
openai==0.28.1

I have tried upgrading and downgrading the versions still not working
Bro llamaindex 0.4.33πŸ˜…
Try upgrading to the latest version
pip install --upgrade llama-index
Now getting another error on using llama index 0.9.25.post1 and openai 1.6.1
ImportError: cannot Import name "DEAULT CONTENT WINDOW from "Ilana Ledercomitants (Cher2637547site-packages\llama_index\constants.py
Working fine for me with the latest version
Attachment
image.png
I restarted the kernel then it starts working. Thanks a lot bro
Add a reply
Sign up and join the conversation on Discord