microsoft / autogen

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

Error when running RAG example from the documentation #4444

Open renxinxing123 opened 2 days ago

renxinxing123 commented 2 days ago

What happened?

I encountered an error while trying to run the RAG example from the official (https://microsoft.github.io/autogen/0.2/docs/topics/retrieval_augmentation). I followed the steps as outlined, but the script fails with the following error message:

---------------------------------------------------------------------------
InvalidCollectionException                Traceback (most recent call last)
Cell In[18], line 54
     32 ragproxyagent = RetrieveUserProxyAgent(
     33     name="ragproxyagent",
     34     human_input_mode="NEVER",
   (...)
     50     code_execution_config=False,  # set to False if you don't want to execute the code
     51 )
     53 code_problem = "How can I use FLAML to perform a classification task and use spark to do parallel training. Train 30 seconds and force cancel jobs if time limit is reached."
---> 54 ragproxyagent.initiate_chat(
     55     assistant, message=ragproxyagent.message_generator, problem=code_problem, search_string="spark"
     56 )  # search_string is used as an extra filter for the embeddings search, in this case, we only want to search documents that contain "spark".

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py:1111, in ConversableAgent.initiate_chat(self, recipient, clear_history, silent, cache, max_turns, summary_method, summary_args, message, **kwargs)
   1109 self._prepare_chat(recipient, clear_history)
   1110 if isinstance(message, Callable):
-> 1111     msg2send = message(_chat_info["sender"], _chat_info["recipient"], kwargs)
   1112 else:
   1113     msg2send = self.generate_init_message(message, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:670, in RetrieveUserProxyAgent.message_generator(sender, recipient, context)
    667 n_results = context.get("n_results", 20)
    668 search_string = context.get("search_string", "")
--> 670 sender.retrieve_docs(problem, n_results, search_string)
    671 sender.problem = problem
    672 sender.n_results = n_results

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:594, in RetrieveUserProxyAgent.retrieve_docs(self, problem, n_results, search_string)
    592 if not self._collection or not self._get_or_create:
    593     print("Trying to create collection.")
--> 594     self._init_db()
    595     self._collection = True
    596     self._get_or_create = True

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:338, in RetrieveUserProxyAgent._init_db(self)
    336 elif self._get_or_create and not self._overwrite:
    337     try:
--> 338         self._vector_db.get_collection(self._collection_name)
    339         logger.info(f"Use the existing collection `{self._collection_name}`.", color="green")
    340     except ValueError:

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/vectordb/chromadb.py:134, in ChromaVectorDB.get_collection(self, collection_name)
    132 else:
    133     if not (self.active_collection and self.active_collection.name == collection_name):
--> 134         self.active_collection = self.client.get_collection(
    135             collection_name, embedding_function=self.embedding_function
    136         )
    137 return self.active_collection

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/client.py:171, in Client.get_collection(self, name, embedding_function, data_loader)
    162 @override
    163 def get_collection(
    164     self,
   (...)
    169     data_loader: Optional[DataLoader[Loadable]] = None,
    170 ) -> Collection:
--> 171     model = self._server.get_collection(
    172         name=name,
    173         tenant=self.tenant,
    174         database=self.database,
    175     )
    176     return Collection(
    177         client=self._server,
    178         model=model,
    179         embedding_function=embedding_function,
    180         data_loader=data_loader,
    181     )

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/telemetry/opentelemetry/__init__.py:150, in trace_method.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
    148 global tracer, granularity
    149 if trace_granularity < granularity:
--> 150     return f(*args, **kwargs)
    151 if not tracer:
    152     return f(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/segment.py:103, in rate_limit.<locals>.wrapper(*args, **kwargs)
    100 @wraps(func)
    101 def wrapper(*args: Any, **kwargs: Any) -> Any:
    102     self = args[0]
--> 103     return self._rate_limit_enforcer.rate_limit(func)(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/rate_limit/simple_rate_limit/__init__.py:23, in SimpleRateLimitEnforcer.rate_limit.<locals>.wrapper(*args, **kwargs)
     21 @wraps(func)
     22 def wrapper(*args: Any, **kwargs: Any) -> Any:
---> 23     return func(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/segment.py:300, in SegmentAPI.get_collection(self, name, tenant, database)
    298     return existing[0]
    299 else:
--> 300     raise InvalidCollectionException(f"Collection {name} does not exist.")

InvalidCollectionException: Collection autogen-docs does not exist.

What did you expect to happen?

NAN

How can we reproduce it (as minimally and precisely as possible)?

import os

import chromadb

import autogen
from autogen import AssistantAgent
from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent

# Accepted file formats for that can be stored in
# a vector database instance
from autogen.retrieve_utils import TEXT_FORMATS

# Create the LLM configuration
llm_config = {
    "config_list": [
        {
            "model": os.environ['AZURE_OPENAI_DEPLOYMENT_NAME'],
            "api_key": os.environ['AZURE_OPENAI_API_KEY'],
            "api_type": "azure",
            "base_url": os.environ['AZURE_OPENAI_ENDPOINT'],
            "api_version": "2024-08-01-preview"  # Use the appropriate API version
        }
    ]
}

assistant = AssistantAgent(
    name="assistant",
    system_message="You are a helpful assistant.",
    llm_config=llm_config,
)
ragproxyagent = RetrieveUserProxyAgent(
    name="ragproxyagent",
    human_input_mode="NEVER",
    max_consecutive_auto_reply=3,
    retrieve_config={
        "task": "code",
        "docs_path": [
            "https://raw.githubusercontent.com/microsoft/FLAML/main/website/docs/Examples/Integrate%20-%20Spark.md",
            "https://raw.githubusercontent.com/microsoft/FLAML/main/website/docs/Research.md",
            os.path.join(os.path.abspath(""), "..", "website", "docs"),
        ],
        "custom_text_types": ["mdx"],
        "chunk_token_size": 2000,
        "model": 'gpt-4o',
        "client": chromadb.PersistentClient(path="/tmp/chromadb"),
        "embedding_model": "all-mpnet-base-v2",
        "get_or_create": True,  # set to False if you don't want to reuse an existing collection, but you'll need to remove the collection manually
    },
    code_execution_config=False,  # set to False if you don't want to execute the code
)

code_problem = "How can I use FLAML to perform a classification task and use spark to do parallel training. Train 30 seconds and force cancel jobs if time limit is reached."
ragproxyagent.initiate_chat(
    assistant, message=ragproxyagent.message_generator, problem=code_problem, search_string="spark"
)  # search_string is used as an extra filter for the embeddings search, in this case, we only want to search documents that contain "spark".

AutoGen version

0.2.36

Which package was this bug in

Core

Model used

gpt-4o

Python version

No response

Operating system

No response

Any additional info you think would be helpful for fixing this bug

No response

thinkall commented 1 day ago

Hi @renxinxing123 , this issue has been fixed in 0.2.37 with #3557 , could you please upgrade autogen and try again. Thanks.

renxinxing123 commented 1 day ago

Hi @renxinxing123 , this issue has been fixed in 0.2.37 with #3557 , could you please upgrade autogen and try again. Thanks.

Many thanks for your support @thinkall , I upgrade autogen-agentchat to 0.2.37, but it seems that the error is still there


---------------------------------------------------------------------------
InvalidCollectionException                Traceback (most recent call last)
Cell In[5], line 54
     32 ragproxyagent = RetrieveUserProxyAgent(
     33     name="ragproxyagent",
     34     human_input_mode="NEVER",
   (...)
     50     code_execution_config=False,  # set to False if you don't want to execute the code
     51 )
     53 code_problem = "How can I use FLAML to perform a classification task and use spark to do parallel training. Train 30 seconds and force cancel jobs if time limit is reached."
---> 54 ragproxyagent.initiate_chat(
     55     assistant, message=ragproxyagent.message_generator, problem=code_problem, search_string="spark"
     56 )  # search_string is used as an extra filter for the embeddings search, in this case, we only want to search documents that contain "spark".

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py:1111, in ConversableAgent.initiate_chat(self, recipient, clear_history, silent, cache, max_turns, summary_method, summary_args, message, **kwargs)
   1109 self._prepare_chat(recipient, clear_history)
   1110 if isinstance(message, Callable):
-> 1111     msg2send = message(_chat_info["sender"], _chat_info["recipient"], kwargs)
   1112 else:
   1113     msg2send = self.generate_init_message(message, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:670, in RetrieveUserProxyAgent.message_generator(sender, recipient, context)
    667 n_results = context.get("n_results", 20)
    668 search_string = context.get("search_string", "")
--> 670 sender.retrieve_docs(problem, n_results, search_string)
    671 sender.problem = problem
    672 sender.n_results = n_results

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:594, in RetrieveUserProxyAgent.retrieve_docs(self, problem, n_results, search_string)
    592 if not self._collection or not self._get_or_create:
    593     print("Trying to create collection.")
--> 594     self._init_db()
    595     self._collection = True
    596     self._get_or_create = True

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py:338, in RetrieveUserProxyAgent._init_db(self)
    336 elif self._get_or_create and not self._overwrite:
    337     try:
--> 338         self._vector_db.get_collection(self._collection_name)
    339         logger.info(f"Use the existing collection `{self._collection_name}`.", color="green")
    340     except ValueError:

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/autogen/agentchat/contrib/vectordb/chromadb.py:134, in ChromaVectorDB.get_collection(self, collection_name)
    132 else:
    133     if not (self.active_collection and self.active_collection.name == collection_name):
--> 134         self.active_collection = self.client.get_collection(
    135             collection_name, embedding_function=self.embedding_function
    136         )
    137 return self.active_collection

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/client.py:171, in Client.get_collection(self, name, embedding_function, data_loader)
    162 @override
    163 def get_collection(
    164     self,
   (...)
    169     data_loader: Optional[DataLoader[Loadable]] = None,
    170 ) -> Collection:
--> 171     model = self._server.get_collection(
    172         name=name,
    173         tenant=self.tenant,
    174         database=self.database,
    175     )
    176     return Collection(
    177         client=self._server,
    178         model=model,
    179         embedding_function=embedding_function,
    180         data_loader=data_loader,
    181     )

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/telemetry/opentelemetry/__init__.py:150, in trace_method.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
    148 global tracer, granularity
    149 if trace_granularity < granularity:
--> 150     return f(*args, **kwargs)
    151 if not tracer:
    152     return f(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/segment.py:103, in rate_limit.<locals>.wrapper(*args, **kwargs)
    100 @wraps(func)
    101 def wrapper(*args: Any, **kwargs: Any) -> Any:
    102     self = args[0]
--> 103     return self._rate_limit_enforcer.rate_limit(func)(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/rate_limit/simple_rate_limit/__init__.py:23, in SimpleRateLimitEnforcer.rate_limit.<locals>.wrapper(*args, **kwargs)
     21 @wraps(func)
     22 def wrapper(*args: Any, **kwargs: Any) -> Any:
---> 23     return func(*args, **kwargs)

File ~/anaconda3/envs/autogen/lib/python3.10/site-packages/chromadb/api/segment.py:300, in SegmentAPI.get_collection(self, name, tenant, database)
    298     return existing[0]
    299 else:
--> 300     raise InvalidCollectionException(f"Collection {name} does not exist.")

InvalidCollectionException: Collection autogen-docs does not exist.

by the way, I'd like to show the version of related package

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
_openmp_mutex             5.1                       1_gnu    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
annotated-types           0.7.0                    pypi_0    pypi
anyio                     4.6.2.post1              pypi_0    pypi
argon2-cffi               23.1.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.3.0                    pypi_0    pypi
asgiref                   3.8.1                    pypi_0    pypi
asttokens                 3.0.0                    pypi_0    pypi
async-lru                 2.0.4                    pypi_0    pypi
attrs                     24.2.0                   pypi_0    pypi
autogen-agentchat         0.2.37                   pypi_0    pypi
babel                     2.16.0                   pypi_0    pypi
backoff                   2.2.1                    pypi_0    pypi
bcrypt                    4.2.1                    pypi_0    pypi
beautifulsoup4            4.12.3                   pypi_0    pypi
bleach                    6.2.0                    pypi_0    pypi
build                     1.2.2.post1              pypi_0    pypi
bzip2                     1.0.8                h5eee18b_6    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ca-certificates           2024.11.26           h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cachetools                5.5.0                    pypi_0    pypi
certifi                   2024.8.30                pypi_0    pypi
cffi                      1.17.1                   pypi_0    pypi
charset-normalizer        3.4.0                    pypi_0    pypi
chroma-hnswlib            0.7.6                    pypi_0    pypi
chromadb                  0.5.21                   pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
coloredlogs               15.0.1                   pypi_0    pypi
comm                      0.2.2                    pypi_0    pypi
debugpy                   1.8.9                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
deprecated                1.2.15                   pypi_0    pypi
diskcache                 5.6.3                    pypi_0    pypi
distro                    1.9.0                    pypi_0    pypi
docker                    7.1.0                    pypi_0    pypi
durationpy                0.9                      pypi_0    pypi
exceptiongroup            1.2.2                    pypi_0    pypi
executing                 2.1.0                    pypi_0    pypi
fastapi                   0.115.5                  pypi_0    pypi
fastjsonschema            2.21.1                   pypi_0    pypi
filelock                  3.16.1                   pypi_0    pypi
flaml                     2.3.2                    pypi_0    pypi
flatbuffers               24.3.25                  pypi_0    pypi
fqdn                      1.5.1                    pypi_0    pypi
fsspec                    2024.10.0                pypi_0    pypi
google-auth               2.36.0                   pypi_0    pypi
googleapis-common-protos  1.66.0                   pypi_0    pypi
grpcio                    1.68.1                   pypi_0    pypi
h11                       0.14.0                   pypi_0    pypi
httpcore                  1.0.7                    pypi_0    pypi
httptools                 0.6.4                    pypi_0    pypi
httpx                     0.28.0                   pypi_0    pypi
huggingface-hub           0.26.3                   pypi_0    pypi
humanfriendly             10.0                     pypi_0    pypi
idna                      3.10                     pypi_0    pypi
importlib-metadata        8.5.0                    pypi_0    pypi
importlib-resources       6.4.5                    pypi_0    pypi
ipykernel                 6.29.5                   pypi_0    pypi
ipython                   8.30.0                   pypi_0    pypi
ipywidgets                8.1.5                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
jedi                      0.19.2                   pypi_0    pypi
jinja2                    3.1.4                    pypi_0    pypi
jiter                     0.8.0                    pypi_0    pypi
joblib                    1.4.2                    pypi_0    pypi
json5                     0.10.0                   pypi_0    pypi
jsonpointer               3.0.0                    pypi_0    pypi
jsonschema                4.23.0                   pypi_0    pypi
jsonschema-specifications 2024.10.1                pypi_0    pypi
jupyter                   1.1.1                    pypi_0    pypi
jupyter-client            8.6.3                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              5.7.2                    pypi_0    pypi
jupyter-events            0.10.0                   pypi_0    pypi
jupyter-lsp               2.2.5                    pypi_0    pypi
jupyter-server            2.14.2                   pypi_0    pypi
jupyter-server-terminals  0.5.3                    pypi_0    pypi
jupyterlab                4.2.6                    pypi_0    pypi
jupyterlab-pygments       0.3.0                    pypi_0    pypi
jupyterlab-server         2.27.3                   pypi_0    pypi
jupyterlab-widgets        3.0.13                   pypi_0    pypi
kubernetes                31.0.0                   pypi_0    pypi
ld_impl_linux-64          2.40                 h12ee557_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libffi                    3.4.4                h6a678d5_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgcc-ng                 11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libgomp                   11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libstdcxx-ng              11.2.0               h1234567_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libuuid                   1.41.5               h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
markdown-it-py            3.0.0                    pypi_0    pypi
markdownify               0.14.1                   pypi_0    pypi
markupsafe                3.0.2                    pypi_0    pypi
matplotlib-inline         0.1.7                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
mistune                   3.0.2                    pypi_0    pypi
mmh3                      5.0.1                    pypi_0    pypi
monotonic                 1.6                      pypi_0    pypi
mpmath                    1.3.0                    pypi_0    pypi
nbclient                  0.10.1                   pypi_0    pypi
nbconvert                 7.16.4                   pypi_0    pypi
nbformat                  5.10.4                   pypi_0    pypi
ncurses                   6.4                  h6a678d5_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
nest-asyncio              1.6.0                    pypi_0    pypi
networkx                  3.4.2                    pypi_0    pypi
notebook                  7.2.2                    pypi_0    pypi
notebook-shim             0.2.4                    pypi_0    pypi
numpy                     1.26.4                   pypi_0    pypi
nvidia-cublas-cu12        12.4.5.8                 pypi_0    pypi
nvidia-cuda-cupti-cu12    12.4.127                 pypi_0    pypi
nvidia-cuda-nvrtc-cu12    12.4.127                 pypi_0    pypi
nvidia-cuda-runtime-cu12  12.4.127                 pypi_0    pypi
nvidia-cudnn-cu12         9.1.0.70                 pypi_0    pypi
nvidia-cufft-cu12         11.2.1.3                 pypi_0    pypi
nvidia-curand-cu12        10.3.5.147               pypi_0    pypi
nvidia-cusolver-cu12      11.6.1.9                 pypi_0    pypi
nvidia-cusparse-cu12      12.3.1.170               pypi_0    pypi
nvidia-nccl-cu12          2.21.5                   pypi_0    pypi
nvidia-nvjitlink-cu12     12.4.127                 pypi_0    pypi
nvidia-nvtx-cu12          12.4.127                 pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
onnxruntime               1.20.1                   pypi_0    pypi
openai                    1.56.0                   pypi_0    pypi
openssl                   3.0.15               h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
opentelemetry-api         1.28.2                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-common 1.28.2                   pypi_0    pypi
opentelemetry-exporter-otlp-proto-grpc 1.28.2                   pypi_0    pypi
opentelemetry-instrumentation 0.49b2                   pypi_0    pypi
opentelemetry-instrumentation-asgi 0.49b2                   pypi_0    pypi
opentelemetry-instrumentation-fastapi 0.49b2                   pypi_0    pypi
opentelemetry-proto       1.28.2                   pypi_0    pypi
opentelemetry-sdk         1.28.2                   pypi_0    pypi
opentelemetry-semantic-conventions 0.49b2                   pypi_0    pypi
opentelemetry-util-http   0.49b2                   pypi_0    pypi
orjson                    3.10.12                  pypi_0    pypi
overrides                 7.7.0                    pypi_0    pypi
packaging                 24.2                     pypi_0    pypi
pandocfilters             1.5.1                    pypi_0    pypi
parso                     0.8.4                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pillow                    11.0.0                   pypi_0    pypi
pip                       24.2            py310h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
platformdirs              4.3.6                    pypi_0    pypi
posthog                   3.7.4                    pypi_0    pypi
prometheus-client         0.21.0                   pypi_0    pypi
prompt-toolkit            3.0.48                   pypi_0    pypi
protobuf                  5.29.0                   pypi_0    pypi
psutil                    6.1.0                    pypi_0    pypi
ptyprocess                0.7.0                    pypi_0    pypi
pure-eval                 0.2.3                    pypi_0    pypi
pyasn1                    0.6.1                    pypi_0    pypi
pyasn1-modules            0.4.1                    pypi_0    pypi
pycparser                 2.22                     pypi_0    pypi
pydantic                  2.10.2                   pypi_0    pypi
pydantic-core             2.27.1                   pypi_0    pypi
pygments                  2.18.0                   pypi_0    pypi
pypdf                     5.1.0                    pypi_0    pypi
pypika                    0.48.9                   pypi_0    pypi
pyproject-hooks           1.2.0                    pypi_0    pypi
python                    3.10.15              he870216_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil           2.9.0.post0              pypi_0    pypi
python-dotenv             1.0.1                    pypi_0    pypi
python-json-logger        2.0.7                    pypi_0    pypi
pyyaml                    6.0.2                    pypi_0    pypi
pyzmq                     26.2.0                   pypi_0    pypi
readline                  8.2                  h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
referencing               0.35.1                   pypi_0    pypi
regex                     2024.11.6                pypi_0    pypi
requests                  2.32.3                   pypi_0    pypi
requests-oauthlib         2.0.0                    pypi_0    pypi
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
rich                      13.9.4                   pypi_0    pypi
rpds-py                   0.22.0                   pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
safetensors               0.4.5                    pypi_0    pypi
scikit-learn              1.5.2                    pypi_0    pypi
scipy                     1.14.1                   pypi_0    pypi
send2trash                1.8.3                    pypi_0    pypi
sentence-transformers     3.3.1                    pypi_0    pypi
setuptools                75.1.0          py310h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
shellingham               1.5.4                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
sniffio                   1.3.1                    pypi_0    pypi
soupsieve                 2.6                      pypi_0    pypi
sqlite                    3.45.3               h5eee18b_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
stack-data                0.6.3                    pypi_0    pypi
starlette                 0.41.3                   pypi_0    pypi
sympy                     1.13.1                   pypi_0    pypi
tenacity                  9.0.0                    pypi_0    pypi
termcolor                 2.5.0                    pypi_0    pypi
terminado                 0.18.1                   pypi_0    pypi
threadpoolctl             3.5.0                    pypi_0    pypi
tiktoken                  0.8.0                    pypi_0    pypi
tinycss2                  1.4.0                    pypi_0    pypi
tk                        8.6.14               h39e8969_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tokenizers                0.20.3                   pypi_0    pypi
tomli                     2.2.1                    pypi_0    pypi
torch                     2.5.1                    pypi_0    pypi
tornado                   6.4.2                    pypi_0    pypi
tqdm                      4.67.1                   pypi_0    pypi
traitlets                 5.14.3                   pypi_0    pypi
transformers              4.46.3                   pypi_0    pypi
triton                    3.1.0                    pypi_0    pypi
typer                     0.14.0                   pypi_0    pypi
types-python-dateutil     2.9.0.20241003           pypi_0    pypi
typing-extensions         4.12.2                   pypi_0    pypi
tzdata                    2024b                h04d1e81_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
uri-template              1.3.0                    pypi_0    pypi
urllib3                   2.2.3                    pypi_0    pypi
uvicorn                   0.32.1                   pypi_0    pypi
uvloop                    0.21.0                   pypi_0    pypi
watchfiles                1.0.0                    pypi_0    pypi
wcwidth                   0.2.13                   pypi_0    pypi
webcolors                 24.11.1                  pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.8.0                    pypi_0    pypi
websockets                14.1                     pypi_0    pypi
wheel                     0.44.0          py310h06a4308_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
widgetsnbextension        4.0.13                   pypi_0    pypi
wrapt                     1.17.0                   pypi_0    pypi
xz                        5.4.6                h5eee18b_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zipp                      3.21.0                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_1    https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
renxinxing123 commented 1 day ago

Hi @renxinxing123 , this issue has been fixed in 0.2.37 with #3557 , could you please upgrade autogen and try again. Thanks.

Also I've tried downgrade the version of chromadb to 0.4.24, but the error is still there

thinkall commented 13 hours ago

Hi @renxinxing123 , this issue has been fixed in 0.2.37 with #3557 , could you please upgrade autogen and try again. Thanks.

Also I've tried downgrade the version of chromadb to 0.4.24, but the error is still there

Thank you for your feedback, @renxinxing123 . Could you try with chromadb==0.5.0 (it worked for me)? Thanks.