mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
issue: Migrating from <= v0.6.27 to v0.628 with existing internal ChromaDB Vector Databse #6390
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @runyournode on GitHub (Sep 12, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.28
Ollama Version (if applicable)
n/a
Operating System
Ubuntu 22.04
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
ChromaDB was quite silently upgraded from 0.6.3 to 1.0.20 in latest owui release (v0.6.28)
When updating owui with an already existing default vector database (chromaDB), we should have a migration script to allow a seamless transition
Actual Behavior
ChromaDB Vector Database is not compatible with the new version.
Any RAG chat will fail.
You cannot force a re-index of the Chroma DB (has the existing one will throw errors)
Steps to Reproduce
Simply update your OWUI to the last version with an existing KB, and try a RAG model.
You can see the error in the owui logs.
Logs & Screenshots
You will most likely have an error like this :
Additional Information
Here is a draft of a migration script using the owui API.
Feel free to use it (at your own risk), or maybe improve it :-)
Eventually, it would be nice if the update could be done automatically when upgrading owui.
⚠️ You should at least update this script to save the memories and kb states before reseting them
⚠️ You will need to edit your RAG models as the new kb will have new ids (edit / delete the associated kbs / add them again)
ℹ️ It is not an ideal script as we are reprocessing all the embeddings.
Also, fyi I think that each KB will now create a single collection in the chromadb (in previous version, each file would produce a single collection)
@rgaricano commented on GitHub (Sep 13, 2025):
Related: https://github.com/chroma-core/chroma/issues/4217#issuecomment-2913976410
@runyournode: that isn't a migration script, is a reset/reindex db script.
The error suggests that the metadata storage format changed between versions, but (as I know) the metadata when creating chromadb collection allways was {"hnsw:space": "cosine"}.
I think it's a particular issue, by the way, I leave a conversion script to resolve possible schema incompatibilities between the old Python-based storage format and the new Rust-based storage format.
chromadm_conv_script.py
Use: