Find answers from the community

Updated 10 months ago

I am hitting an ImportError: cannot

I am hitting an ImportError: cannot import name 'LLM' from 'llama_index.core.llms':

Traceback (most recent call last):
File "/Users/mingqxu/Projects/chat-sop/llindex_ingest.py", line 27, in <module>
from llama_index.vector_stores.faiss import FaissVectorStore
...
L
1 comment
try uninstalling and reinstalling llama-index

Plain Text
pip uninstall llama-index
pip install llama-index --upgrade --no-cache-dir --force-reinstall


But tbh you might need a fresh venv

In a fresh terminal, I would do something like
Plain Text
pip uninstall llama-index  # remove any possible global install
python -m venv venv
source venv/bin/activate
pip install llama-index ...
Add a reply
Sign up and join the conversation on Discord