fix(ChatKnowledge):full text storage truncate method error. (#1989)

This commit is contained in:
Aries-ckt 2024-09-10 10:44:32 +08:00 committed by GitHub
parent 746e4fda37
commit 44491da810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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