work报错日志:
2026-04-30 02:56:11.763 ERROR [Dummy-41] [indexing_runner.py:57] 38dd5db2532d5699ae9e030fa6f15b23 - consume document failed
Traceback (most recent call last):
File “/app/api/core/indexing_runner.py”, line 111, in run
self._load(
File “/app/api/core/indexing_runner.py”, line 628, in _load
tokens += future.result()
^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/concurrent/futures/_base.py”, line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/concurrent/futures/_base.py”, line 401, in __get_result
raise self._exception
File “/usr/local/lib/python3.12/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/api/core/indexing_runner.py”, line 698, in _process_chunk
index_processor.load(
File “/app/api/core/rag/index_processor/processor/paragraph_index_processor.py”, line 122, in load
vector.create(documents)
File “/app/api/core/rag/datasource/vdb/vector_factory.py”, line 215, in create
self._vector_processor.create(texts=batch, embeddings=batch_embeddings, **kwargs)
File “/app/api/core/rag/datasource/vdb/chroma/chroma_vector.py”, line 55, in create
self.create_collection(self._collection_name)
File “/app/api/core/rag/datasource/vdb/chroma/chroma_vector.py”, line 65, in create_collection
self._client.get_or_create_collection(collection_name)
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/api/client.py”, line 194, in get_or_create_collection
model = self._server.get_or_create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/init.py”, line 150, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/api/fastapi.py”, line 240, in get_or_create_collection
return self.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/telemetry/opentelemetry/init.py”, line 150, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/api/fastapi.py”, line 208, in create_collection
model = CollectionModel.from_json(resp_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/site-packages/chromadb/types.py”, line 156, in from_json
configuration = CollectionConfigurationInternal.from_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/api/.venv/lib/python3.12/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’
我在网上查了资料说是chroma的客户端和服务端版本不匹配导致的,我把api,work和work_beat三个服务里的chroma都升级到1.5.8后 重新上传任然报错。不知道哪里出了问题,有人知道如何解决吗?感谢!!!

