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

ChromaDB required even if you use QdrantRetrieveUserProxyAgent and not Chroma #531

Open
Tracked by #1657
kdcokenny opened this issue Nov 3, 2023 · 0 comments
Open
Tracked by #1657
Assignees
Labels
rag retrieve-augmented generative agents

Comments

@kdcokenny
Copy link

Considering that Chroma is unused by Qdrant, this shouldn't be required to install.

Error:

ModuleNotFoundError                       Traceback (most recent call last)
File [~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:4](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:4)
      [3](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:3) try:
----> [4](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:4)     import chromadb
      [5](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:5) except ImportError:

ModuleNotFoundError: No module named 'chromadb'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb Cell 4 line 1
----> [1](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0) from autogen.agentchat.contrib.qdrant_retrieve_user_proxy_agent import QdrantRetrieveUserProxyAgent
      [3](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2) ragproxyagent = QdrantRetrieveUserProxyAgent(
      [4](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3)     name="ragproxyagent",
      [5](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4)     human_input_mode="NEVER",
   (...)
     [14](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=13)     },
     [15](vscode-notebook-cell://wsl%2Bubuntu/home/kenny/workspace/elapse/packages/research/notebooks/autogen-rag.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=14) )

File [~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py:3](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py:3)
      [1](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py:1) from typing import Callable, Dict, List, Optional
----> [3](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py:3) from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent
      [4](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/qdrant_retrieve_user_proxy_agent.py:4) from autogen.retrieve_utils import get_files_from_dir, split_files_to_chunks
...
----> [6](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:6)     raise ImportError("Please install dependencies first. `pip install pyautogen[retrievechat]`")
      [7](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:7) from autogen.agentchat.agent import Agent
      [8](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/kenny/workspace/elapse/packages/research/notebooks/~/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:8) from autogen.agentchat import UserProxyAgent

ImportError: Please install dependencies first. `pip install pyautogen[retrievechat]
@sonichi sonichi added the rag retrieve-augmented generative agents label Nov 4, 2023
@thinkall thinkall mentioned this issue Nov 20, 2023
3 tasks
@thinkall thinkall mentioned this issue Apr 6, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rag retrieve-augmented generative agents
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants