Closed tazarov closed 1 week ago
Interestingly, the cross-version tests did not catch this (to be investigated separately).
Hi @tazarov,
I just realized I'm experiencing the same issue when I am calling the list_collections()
and was wondering what the cause of this error might be. What do you suggest? Should we wait for the next release that fixes this bug with the pull request you mentioned? When can we expect it to be released?
collections = self.http_chroma_client.list_collections()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 177, in list_collections
return self._server.list_collections(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 143, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 212, in list_collections
collections.append(Collection(self, **json_collection))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Collection.__init__() got an unexpected keyword argument 'dimension'
@terilias, i think is impactful enough issue that we'll release a new version shortly.
ok, thank you!
Chroma does not try to maintain client/server version mistmatch compatibility while still pre 1.0 release. Please ensure your client/server are the same version. we will soon patch this specific instance however
What happened?
A breaking change was introduced in 0.5.1 which makes new clients not able to communicate with older Chroma servers.
Source ref: https://discord.com/channels/1073293645303795742/1252910305038565527
Reproduction
Run an older server version:
Versions
Chroma 0.5.1+, OS: Any, Python: Any
Relevant log output