gpythomas / llamaindex_rag

This is a RAG chatbot built with llamaindex, with an OpenAI compative API written in Flask.
3 stars 0 forks source link

ModuleNotFoundError: No module named 'llama_index.vector_stores' #2

Open gavmor opened 3 weeks ago

gavmor commented 3 weeks ago

Apparently vector_stores have to be explicitly installed.

Traceback (most recent call last):
  File "/home/user/workspace/other/llamaindex_rag/create_db.py", line 12, in <module>
    from llama_index.vector_stores.chroma import ChromaVectorStore # pip install llama-index-vector-stores-chroma
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'llama_index.vector_stores'
gpythomas commented 2 weeks ago

I generated a cleaner requirements.txt file with PDM, it should take care of dependencies issues, let me know if you still have issues.