Find answers from the community

Updated 3 months ago

Llama index import

Hi am i missing something here? I cannot seem to load the llama_index module? I am pretty new to python so im sure im missing something. I did the pip install llama_index and pip install langchain. I am using pycharm as my IDE (normally i can just import the plugin but it doesnt recognize it). I am using python 3.11.
L
B
10 comments
Do you have a file or directory called "llama_index" ? If so, try renaming that first
Not that i am aware of. When you pip install does it create one?
Ok i did find one under site-packages
Lemme try renaming it
is what i have, renamed from llama_index to llama_indexer
Attachment
image.png
So i manually moved the directories to my venv and now it does show llama_index as being recongized. Still cant get GPTSimplevectorindex tho.
Attachment
image.png
Looks like it was renamed i guess
Yea that's a very old name πŸ˜…
GPTVectorStoreIndex or VectorStoreIndex should work
recently removed all the GPT prefixes (but also kept the old names for compat)
Add a reply
Sign up and join the conversation on Discord