Error when building Multi-Document Agents via create-llama
jbbae opened this issue · 0 comments
jbbae commented
Hi, so I'm running into issues with getting the backend to work for Multi-Document Agents. Developing this from a Windows (11 Home).
All I did was:
- Initialize the project using "yarn run llama"
- Selected multi-document-agents
- Followed the instructions on the backend README (poetry install, poetry shell, and added OPEN_AI_API key in a ".env" file).
- Ran "python main.py
And I get this error:
(base) (app-py3.11) PS C:\Users\USER\OneDrive\Documents\GitHub\PROJECT\backend> python main.py
Traceback (most recent call last):
File "C:\Users\USER\OneDrive\Documents\GitHub\PROJECT\backend\main.py", line 4, in <module>
from app.api.routers.chat import chat_router
File "C:\Users\USER\OneDrive\Documents\GitHub\PROJECT\backend\app\api\routers\chat.py", line 9, in <module>
from llama_index.llms.base import MessageRole, ChatMessage
ImportError: cannot import name 'MessageRole' from 'llama_index.llms.base' (C:\Users\USER\AppData\Local\pypoetry\Cache\virtualenvs\app-xadExt60-py3.11\Lib\site-packages\llama_index\llms\base.py)
Any idea what could be wrong here...?