mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
@@ -4,6 +4,7 @@ import os
|
||||
from typing import Any, Dict, Iterable, List, Mapping, Optional, Union
|
||||
|
||||
from chromadb import PersistentClient
|
||||
from chromadb.api.client import SharedSystemClient
|
||||
from chromadb.config import Settings
|
||||
|
||||
from dbgpt._private.pydantic import ConfigDict, Field
|
||||
@@ -201,6 +202,7 @@ class ChromaStore(VectorStoreBase):
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user