chroma
chroma copied to clipboard
Docker server/client: data is lost on container restart
Using the default docker deployment which is supposed to be disk persistent, after a restart I can't see any of the collections created before stopping the instance.
Reproducer:
- deploy chromadb with docker-compose (follow chroma's doc)
- connect to chromadb and create a collection
- check if the collection is there
- run
docker-compose down
anddocker-compose up -d
on chromadb's folder - reconnect to chromadb and list collections: none will be there
I don't seem to be able to find this doc, where did you read about it?
https://docs.trychroma.com/usage-guide#running-chroma-in-clientserver-mode
Same problem here. Not clear how to make it persistent while using JS client.
@kamilmac the docker backend by defaults saves. You dont need to call .persist
I believe this was addressed by this commit / PR https://github.com/chroma-core/chroma/commit/f02e41ade3f4c81816dfb7bdd590e2aaa65a34d5