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

Closed
Tracked by #1657
kdcokenny opened this issue Nov 3, 2023 · 1 comment
Closed
Tracked by #1657
Assignees
Labels
0.2 Issues which are related to the pre 0.4 codebase 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
jackgerrits pushed a commit that referenced this issue Oct 2, 2024
* interim stash

* interim stash

* interim checkpoint

* broken stash

* whoops

* merge sln files

* fix a bunch of refactoring errors

* moving more to core vs samples

* interim

* fixup the devteam sample

* fix ci

* fixup soln file

* trying to fix ci

* trying to fix ci

* adding back

* still trying

* recreate

* next step

* adding it back

* trying to fix

* Rename Autogen -> AutoGen (#567)

* Add transparency faqs (#566)

* remove Autogen

* add AutoGen back

---------

Co-authored-by: Eric Zhu <[email protected]>

---------

Co-authored-by: Xiaoyun Zhang <[email protected]>
Co-authored-by: Eric Zhu <[email protected]>
@rysweet rysweet added 0.2 Issues which are related to the pre 0.4 codebase needs-triage labels Oct 2, 2024
@rysweet
Copy link
Collaborator

rysweet commented Oct 18, 2024

closing as stale. Please reopen if you disagree.

@rysweet rysweet closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.2 Issues which are related to the pre 0.4 codebase rag retrieve-augmented generative agents
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants