microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
34.33k stars 4.96k forks source link

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

Closed kdcokenny closed 1 month ago

kdcokenny commented 1 year ago

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]
rysweet commented 1 month ago

closing as stale. Please reopen if you disagree.