diff --git a/dbgpt/storage/full_text/base.py b/dbgpt/storage/full_text/base.py index 6643f2373..5dfd90064 100644 --- a/dbgpt/storage/full_text/base.py +++ b/dbgpt/storage/full_text/base.py @@ -67,3 +67,7 @@ class FullTextStoreBase(IndexStoreBase): def delete_vector_name(self, index_name: str): """Delete name.""" + + def truncate(self) -> List[str]: + """Truncate the collection.""" + raise NotImplementedError diff --git a/dbgpt/storage/vector_store/base.py b/dbgpt/storage/vector_store/base.py index aaaafc5ab..bfa55aa4c 100644 --- a/dbgpt/storage/vector_store/base.py +++ b/dbgpt/storage/vector_store/base.py @@ -187,3 +187,7 @@ class VectorStoreBase(IndexStoreBase, ABC): List[str]: chunk ids. """ return await blocking_func_to_async(self._executor, self.load_document, chunks) + + def truncate(self) -> List[str]: + """Truncate the collection.""" + raise NotImplementedError