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

Configuration for running demo #1

Closed
austinhumes-valtech opened this issue Oct 26, 2023 · 2 comments
Closed

Configuration for running demo #1

austinhumes-valtech opened this issue Oct 26, 2023 · 2 comments

Comments

@austinhumes-valtech
Copy link

Hi, came across the repo and am excited to test it out. I'm unable to get in running and am hoping to have some clarity on what configuration is needed.

Here are the steps I've done:

  1. Create a conda environment with Python 3.10: conda create -n autogen-demo python=3.10
  2. Activate the conda environment: conda activate autogen-demo
  3. Install AutoGen with Retrievechat option: pip install "pyautogen[retrievechat]"
  4. Run: python app.py

Here are the results I get, it seems to be issues with the imports:

File "/.../autogen-demo/app.py", line 9, in <module>
    from autogen.retrieve_utils import TEXT_FORMATS, get_file_from_url, is_url
  File "/Users/.../miniconda3/envs/autogen-poc/lib/python3.10/site-packages/autogen/retrieve_utils.py", line 8, in <module>
    from chromadb.api import API
ImportError: cannot import name 'API' from 'chromadb.api' (/Users/.../miniconda3/envs/autogen-poc/lib/python3.10/site-packages/chromadb/api/__init__.py)

Any suggestions?

Thanks!

@thinkall
Copy link
Owner

thinkall commented Oct 26, 2023

Hi @austinhumes-valtech , thanks for reaching out. chromadb just have a new release with classname changed, this is the root cause of the failure. I had a PR microsoft/autogen#435 to fix it. Before the new autogen is released, please install "chromadb<0.4.15".

You can also update your step 3 with run pip install -r requirements.txt in the root folder of this repo.

@austinhumes-valtech
Copy link
Author

Hi @thinkall, thanks for the suggestions, I now have it running! Thanks for the great work, looking forward to seeing what's next with AutoGen!

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

2 participants