[Bug]: `KeyError: _type` in `api/configuration.py:209`
What happened?
When trying to upload a document to OpenWebUI (which is connected to a chromaDB), I get the error shown below. It appears to be an issue with ChromaDB, so I decided to file the issue here.
The full response fo the HTTP request is as follows:
dockeruser@hostname:~/.config/systemd/user$ curl -f http://localhost:8000/api/v2/tenants/default_tenant/databases/default_database/collections
[{"id":"73425857-9b70-4a96-a631-ba80b09272f5","name":"file-f5486ba8-fcdc-4ef1-8bd5-b15f15605697","configuration_json":{"hnsw":{"space":"cosine","ef_construction":100,"ef_search":100,"max_neighbors":16,"resize_factor":1.2,"sync_threshold":1000},"spann":null,"embedding_function":null},"metadata":{"hnsw:space":"cosine"},"dimension":null,"tenant":"default_tenant","database":"default_database","log_position":0,"version":0}]
Let me know if I can provide any further data about this.
Versions
Chroma v1.0.0 (latest docker image) OpenWebUI v0.6.5
Relevant log output
Apr 25 13:23:51 hostname docker[2282055]: open-webui | 2025-04-25 11:23:51.347 | ERROR | open_webui.routers.retrieval:save_docs_to_vector_db:945 - '_type' - {}
Apr 25 13:23:51 hostname docker[2282055]: open-webui | Traceback (most recent call last):
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
Apr 25 13:23:51 hostname docker[2282055]: open-webui | self._bootstrap_inner()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function Thread._bootstrap_inner at 0x7f517c520860>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <WorkerThread(AnyIO worker thread, started 139985107805888)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
Apr 25 13:23:51 hostname docker[2282055]: open-webui | self.run()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function WorkerThread.run at 0x7f50dd8bff60>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <WorkerThread(AnyIO worker thread, started 139985107805888)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
Apr 25 13:23:51 hostname docker[2282055]: open-webui | result = context.run(func, *args)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ │ └ ()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ functools.partial(<function add_file_to_knowledge_by_id at 0x7f5127ffda80>, user=UserModel(id='035539ed-55e0-46ac-afea-846a34...
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <method 'run' of '_contextvars.Context' objects>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <_contextvars.Context object at 0x7f50dd93ff80>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/knowledge.py", line 359, in add_file_to_knowledge_by_id
Apr 25 13:23:51 hostname docker[2282055]: open-webui | process_file(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function process_file at 0x7f5127f447c0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/retrieval.py", line 1083, in process_file
Apr 25 13:23:51 hostname docker[2282055]: open-webui | result = save_docs_to_vector_db(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function save_docs_to_vector_db at 0x7f5127f07ce0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | > File "/app/backend/open_webui/routers/retrieval.py", line 892, in save_docs_to_vector_db
Apr 25 13:23:51 hostname docker[2282055]: open-webui | if VECTOR_DB_CLIENT.has_collection(collection_name=collection_name):
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ '20346f8d-7813-49e5-9b31-6f93075e6e68'
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function ChromaClient.has_collection at 0x7f512f938220>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7f512f8ce5d0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/retrieval/vector/dbs/chroma.py", line 59, in has_collection
Apr 25 13:23:51 hostname docker[2282055]: open-webui | collection_names = self.client.list_collections()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ <function Client.list_collections at 0x7f5132510e00>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <chromadb.api.client.Client object at 0x7f512f8cee50>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7f512f8ce5d0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 124, in list_collections
Apr 25 13:23:51 hostname docker[2282055]: open-webui | for model in self._server.list_collections(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ <function FastAPI.list_collections at 0x7f512f7ebb00>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <chromadb.api.fastapi.FastAPI object at 0x7f512f90ec10>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <chromadb.api.client.Client object at 0x7f512f8cee50>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 150, in wrapper
Apr 25 13:23:51 hostname docker[2282055]: open-webui | return f(*args, **kwargs)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ {'tenant': 'default_tenant', 'database': 'default_database'}
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ (<chromadb.api.fastapi.FastAPI object at 0x7f512f90ec10>, None, None)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function FastAPI.list_collections at 0x7f512f7eba60>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 204, in list_collections
Apr 25 13:23:51 hostname docker[2282055]: open-webui | collection_models = [
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 205, in <listcomp>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | CollectionModel.from_json(json_collection)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ {'id': '73425857-9b70-4a96-a631-ba80b09272f5', 'name': 'file-f5486ba8-fcdc-4ef1-8bd5-b15f15605697', 'configuration_json': {'h...
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <classmethod(<function Collection.from_json at 0x7f513267ba60>)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <class 'chromadb.types.Collection'>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/types.py", line 156, in from_json
Apr 25 13:23:51 hostname docker[2282055]: open-webui | configuration = CollectionConfigurationInternal.from_json(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <classmethod(<function ConfigurationInternal.from_json at 0x7f51329398a0>)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <class 'chromadb.api.configuration.CollectionConfigurationInternal'>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 209, in from_json
Apr 25 13:23:51 hostname docker[2282055]: open-webui | f"Trying to instantiate configuration of type {cls.__name__} from JSON with type {json_map['_type']}"
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | KeyError: '_type'
Apr 25 13:23:51 hostname docker[2282055]: open-webui | 2025-04-25 11:23:51.348 | ERROR | open_webui.routers.retrieval:process_file:1121 - '_type' - {}
Apr 25 13:23:51 hostname docker[2282055]: open-webui | Traceback (most recent call last):
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
Apr 25 13:23:51 hostname docker[2282055]: open-webui | self._bootstrap_inner()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function Thread._bootstrap_inner at 0x7f517c520860>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <WorkerThread(AnyIO worker thread, started 139985107805888)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
Apr 25 13:23:51 hostname docker[2282055]: open-webui | self.run()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function WorkerThread.run at 0x7f50dd8bff60>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <WorkerThread(AnyIO worker thread, started 139985107805888)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
Apr 25 13:23:51 hostname docker[2282055]: open-webui | result = context.run(func, *args)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ │ └ ()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ functools.partial(<function add_file_to_knowledge_by_id at 0x7f5127ffda80>, user=UserModel(id='035539ed-55e0-46ac-afea-846a34...
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <method 'run' of '_contextvars.Context' objects>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <_contextvars.Context object at 0x7f50dd93ff80>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/knowledge.py", line 359, in add_file_to_knowledge_by_id
Apr 25 13:23:51 hostname docker[2282055]: open-webui | process_file(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function process_file at 0x7f5127f447c0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | > File "/app/backend/open_webui/routers/retrieval.py", line 1111, in process_file
Apr 25 13:23:51 hostname docker[2282055]: open-webui | raise e
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ KeyError('_type')
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/retrieval.py", line 1083, in process_file
Apr 25 13:23:51 hostname docker[2282055]: open-webui | result = save_docs_to_vector_db(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function save_docs_to_vector_db at 0x7f5127f07ce0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/retrieval.py", line 946, in save_docs_to_vector_db
Apr 25 13:23:51 hostname docker[2282055]: open-webui | raise e
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/routers/retrieval.py", line 892, in save_docs_to_vector_db
Apr 25 13:23:51 hostname docker[2282055]: open-webui | if VECTOR_DB_CLIENT.has_collection(collection_name=collection_name):
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ '20346f8d-7813-49e5-9b31-6f93075e6e68'
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <function ChromaClient.has_collection at 0x7f512f938220>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7f512f8ce5d0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/app/backend/open_webui/retrieval/vector/dbs/chroma.py", line 59, in has_collection
Apr 25 13:23:51 hostname docker[2282055]: open-webui | collection_names = self.client.list_collections()
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ <function Client.list_collections at 0x7f5132510e00>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <chromadb.api.client.Client object at 0x7f512f8cee50>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <open_webui.retrieval.vector.dbs.chroma.ChromaClient object at 0x7f512f8ce5d0>
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 124, in list_collections
Apr 25 13:23:51 hostname docker[2282055]: open-webui | for model in self._server.list_collections(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ <function FastAPI.list_collections at 0x7f512f7ebb00>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <chromadb.api.fastapi.FastAPI object at 0x7f512f90ec10>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <chromadb.api.client.Client object at 0x7f512f8cee50>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 150, in wrapper
Apr 25 13:23:51 hostname docker[2282055]: open-webui | return f(*args, **kwargs)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ {'tenant': 'default_tenant', 'database': 'default_database'}
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ (<chromadb.api.fastapi.FastAPI object at 0x7f512f90ec10>, None, None)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <function FastAPI.list_collections at 0x7f512f7eba60>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 204, in list_collections
Apr 25 13:23:51 hostname docker[2282055]: open-webui | collection_models = [
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 205, in <listcomp>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | CollectionModel.from_json(json_collection)
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ │ └ {'id': '73425857-9b70-4a96-a631-ba80b09272f5', 'name': 'file-f5486ba8-fcdc-4ef1-8bd5-b15f15605697', 'configuration_json': {'h...
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <classmethod(<function Collection.from_json at 0x7f513267ba60>)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <class 'chromadb.types.Collection'>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/types.py", line 156, in from_json
Apr 25 13:23:51 hostname docker[2282055]: open-webui | configuration = CollectionConfigurationInternal.from_json(
Apr 25 13:23:51 hostname docker[2282055]: open-webui | │ └ <classmethod(<function ConfigurationInternal.from_json at 0x7f51329398a0>)>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | └ <class 'chromadb.api.configuration.CollectionConfigurationInternal'>
Apr 25 13:23:51 hostname docker[2282055]: open-webui | File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 209, in from_json
Apr 25 13:23:51 hostname docker[2282055]: open-webui | f"Trying to instantiate configuration of type {cls.__name__} from JSON with type {json_map['_type']}"
Apr 25 13:23:51 hostname docker[2282055]: open-webui |
Apr 25 13:23:51 hostname docker[2282055]: open-webui | KeyError: '_type'
Apr 25 13:23:51 hostname docker[2282055]: open-webui | 2025-04-25 11:23:51.349 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.17.16.91:0 - "POST /api/v1/knowledge/20346f8d-7813-49e5-9b31-6f93075e6e68/file/add HTTP/1.1" 400 - {}
i'm having the same issue
After updating chroma update all the dependecies it has.
Hi, as part of 1.0.7, the dockerfile has been updated to run against the upgraded Rust implementation of chromadb, which requires an upgrade to the python client. What version of the python client are you running? could you try upgrading to latest, 1.0.7?
Hi, as part of 1.0.7, the dockerfile has been updated to run against the upgraded Rust implementation of chromadb, which requires an upgrade to the python client. What version of the python client are you running? could you try upgrading to latest, 1.0.7?
I am running the latest container:
dockeruser@gelbschnabeltrogon:/opt/chromadb$ docker image inspect chromadb/chroma
[
{
"Id": "sha256:0298abf0e872a652e1bd54e2d60cefd0b5f1e0f505c2fd2e48c6992c9fe7121a",
"RepoTags": [
"chromadb/chroma:latest"
],
"RepoDigests": [
"chromadb/chroma@sha256:b4f3b1ea75373b73a944b6d2fe3698cf9eb01fc2a24340fadbc207aa4335f276"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-04-24T23:09:14.590780629Z",
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"run",
"/config.yaml"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"dumb-init",
"--",
"chroma"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 504439380,
"GraphDriver": {
"Data": {
"LowerDir": "/home/dockeruser/.local/share/docker/overlay2/63f7a00d6cc65aa876c334468b8b47fabf02dec080802bfd0b0a39d5c1eed89c/diff:/home/dockeruser/.local/share/docker/overlay2/5ef203424d0a4a40a96625eaf3c673aea408f80979bbb1b08f4503f9e5368ea7/diff:/home/dockeruser/.local/share/docker/overlay2/c25461b3502e70f032438e0a14163feff40c7c8fd53a1c6304c54c5936246e53/diff:/home/dockeruser/.local/share/docker/overlay2/2958eb69e00872cfedd01129ccef27bdd0f310b8f632fd6ccda7b2659ffc4331/diff",
"MergedDir": "/home/dockeruser/.local/share/docker/overlay2/9cd78f0662c65f292c2a853a58a7fad4034a4c9d695a957b9dd6773cd2ef74aa/merged",
"UpperDir": "/home/dockeruser/.local/share/docker/overlay2/9cd78f0662c65f292c2a853a58a7fad4034a4c9d695a957b9dd6773cd2ef74aa/diff",
"WorkDir": "/home/dockeruser/.local/share/docker/overlay2/9cd78f0662c65f292c2a853a58a7fad4034a4c9d695a957b9dd6773cd2ef74aa/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:95a2005e07300a41ffbbb0aa02d8974f8f0c0331285db444288cc15da96d8613",
"sha256:fc3d202c4305a231e2ac7d3c2333dce32ee57ade5255c8075d8f0ad2042d3036",
"sha256:69d66281d31ee628925d4390a63d374d9913bedc72962db7362c6832f3c50cd0",
"sha256:2e8b7a0531dec57231447b52ec7048bff8b83a847b2185cf3b4f115d4fdffda5",
"sha256:22a46548b795edc1b5b07634a285eb75b91d320f87e4c9823a88e051d423b41a"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
According to DockerHub, that is the hash of chromadb/chroma:1.0.7
But running chroma --version inside the container prints version 1.0.0
I am also having the same issue ! It was all working 3 weeks back. I moved to a new machine and pulled the docker image and unable to use chroma anymore with the chorma http client.
File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 194, in get_or_create_collection
model = self._server.get_or_create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/init.py", line 150, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 278, in get_or_create_collection
return self.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/init.py", line 150, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 246, in create_collection
model = CollectionModel.from_json(resp_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/types.py", line 156, in from_json
configuration = CollectionConfigurationInternal.from_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 209, in from_json
f"Trying to instantiate configuration of type {cls.__name__} from JSON with type {json_map['_type']}"
~~~~~~~~^^^^^^^^^
KeyError: '_type'
Update the chroma package in your program (not the docker image) with all of its dependencies.
I'm not quite sure I understand you correctly, the dependency of my program is that docker image which I cannot update... Or do you mean something else?
If so then its an OpenWebUI issue they need to update their chroma-client communicating with the chromadb.
assuming no part of your application directly makes requests to chroma database.
@osamaoam is right, the docker image itself does not need to be updated, what needs to be updated (as per this image https://github.com/chroma-core/chroma/issues/4380#issuecomment-2831023858) is the chromadb client instance. you are invoking the chromadb client from /app/app/db/chromadb.py, which is running on a stale version. if that version gets upgraded (not the docker image) this will be fixed.
closing this issue now as its also been discussed here https://github.com/chroma-core/chroma/issues/4386