Find answers from the community

Updated 10 months ago

What is the issue with llama index? I am

What is the issue with llama index? I am getting this error for latest version 0.10.11

ImportError Traceback (most recent call last)
Cell In[2], line 2
1 # from llama_index.core.evaluation import generate_question_context_pairs
----> 2 from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
3 from llama_index.core.node_parser import SimpleNodeParser
4 from llama_index.core.evaluation import generate_question_context_pairs

ImportError: cannot import name 'VectorStoreIndex' from 'llama_index.core' (unknown location)
W
P
L
5 comments
Did you had llamaindex previously installed in the same env with version < 0.10?
If so you will have to completely remove llama-index first by doing
pip uninstall llama-index
and then install it again
pip install llama-index

I tried fresh on colab with latest version and it seems to be working fine for me!
Attachment
image.png
Yes I had previous version, so I completely uninstalled it and reinstalled the new version which is 0.10.11
REstart the session on colab once after installing newwer version
Yea, a totally fresh venv is recomened
Add a reply
Sign up and join the conversation on Discord