Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building Multi-Document Agents via create-llama #19

Open
jbbae opened this issue Jan 29, 2024 · 0 comments
Open

Error when building Multi-Document Agents via create-llama #19

jbbae opened this issue Jan 29, 2024 · 0 comments

Comments

@jbbae
Copy link

jbbae commented Jan 29, 2024

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:

  1. Initialize the project using "yarn run llama"
  2. Selected multi-document-agents
  3. Followed the instructions on the backend README (poetry install, poetry shell, and added OPEN_AI_API key in a ".env" file).
  4. 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...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant