Find answers from the community

Updated 10 months ago

I just updated too and I cannot even use

I just updated too and I cannot even use the code from the readme. Pip freeze -> llama-index==0.10.4
The code from readme, which doesn't run is this simple import: "from llama_index.core import StorageContext, load_index_from_storage"

Leads to error: ImportError: cannot import name 'StorageContext' from 'llama_index.core' (unknown location)
W
A
5 comments
I would suggest you create a fresh new env.
The imports are working fine!
Reason for suggesting fresh env is that there has been massive change from v0.9.x to v0.10.x
Attachment
image.png
Let me try that, thanks.
@WhiteFang_Jr New env fixed it - what happened to VectorIndexRetriever?
Are you not able to import it?
from llama_index.core.retrievers import VectorIndexRetriever
Add a reply
Sign up and join the conversation on Discord