From 3e1af3f039723046f5d39b13785c6edc6bc2fc6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=90=E5=B1=B1=E5=AE=A2?= <157097695@qq.com> Date: Mon, 23 Dec 2024 09:28:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E7=BC=93=E5=AD=98=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=94=BE=E5=85=A5=20chroma=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbgpt/storage/vector_store/chroma_store.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbgpt/storage/vector_store/chroma_store.py b/dbgpt/storage/vector_store/chroma_store.py index 93191c715..25f8140b7 100644 --- a/dbgpt/storage/vector_store/chroma_store.py +++ b/dbgpt/storage/vector_store/chroma_store.py @@ -5,6 +5,7 @@ from chromadb import PersistentClient from chromadb.config import Settings +from chromadb.api.client import SharedSystemClient from dbgpt._private.pydantic import ConfigDict, Field from dbgpt.configs.model_config import PILOT_PATH @@ -201,6 +202,7 @@ def delete_vector_name(self, vector_name: str): logger.info(f"chroma vector_name:{vector_name} begin delete...") # self.vector_store_client.delete_collection() self._chroma_client.delete_collection(self._collection.name) + SharedSystemClient.clear_system_cache() self._clean_persist_folder() return True