From e4495f2090b7dd8c65828364325833f24b23b800 Mon Sep 17 00:00:00 2001 From: "z.h.z" Date: Sat, 17 May 2025 13:17:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dchroma=5Fstore.py?= =?UTF-8?q?=E4=B8=ADunsupported-operand-type=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/dbgpt_ext/storage/vector_store/chroma_store.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/dbgpt-ext/src/dbgpt_ext/storage/vector_store/chroma_store.py b/packages/dbgpt-ext/src/dbgpt_ext/storage/vector_store/chroma_store.py index ef91ced42..00d97069c 100644 --- a/packages/dbgpt-ext/src/dbgpt_ext/storage/vector_store/chroma_store.py +++ b/packages/dbgpt-ext/src/dbgpt_ext/storage/vector_store/chroma_store.py @@ -114,9 +114,7 @@ class ChromaStore(VectorStoreBase): except ImportError: raise ImportError("Please install chroma package first.") chroma_vector_config = vector_store_config.to_dict() - chroma_path = chroma_vector_config.get( - "persist_path", os.path.join(PILOT_PATH, "data") - ) + chroma_path = chroma_vector_config.get("persist_path") or os.path.join(PILOT_PATH, "data") self.persist_dir = os.path.join(resolve_root_path(chroma_path) + "/chromadb") self.embeddings = embedding_fn if not self.embeddings: