chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
15.26k stars 1.28k forks source link

[Bug]: "Collection is not created" message after upgrading to 0.5.0 #2837

Open JINO-ROHIT opened 1 month ago

JINO-ROHIT commented 1 month ago

What happened?

My current chroma vector db was indexed in version 0.4 and using that it gave me an error "sqlite3.OperationalError: no such column: collections.topic"

So I upgraded version to 0.5 and now I get this error message and my vector db is not being queried and always returns empty .

Versions

Chroma 0.5

Relevant log output

No response

tazarov commented 1 month ago

@JINO-ROHIT, this is generally an issue with version mismatch. When you upgrade to newer chroma e.g. 0.4.24->0.5.7 there are some system DB upgrades that are carried out (not always but sometimes). These upgrades generally are not backward compatible, and you generally won't be able to access your DB with a client version inferior to the one you used for the upgrade.

Regarding the specific error, that is a sqlite3 error when the client tries to access a column that has been removed/deprecated (I think this change was done somewhere in the late 0.4.2x). It happens if you try to access your upgraded DB with earlier version. Can you double check that you are accessing your DB with 0.5.x client?