mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 07:11:56 +00:00
fix(ChatKnowledge):full text storage truncate method error. (#1989)
This commit is contained in:
parent
746e4fda37
commit
44491da810
@ -67,3 +67,7 @@ class FullTextStoreBase(IndexStoreBase):
|
|||||||
|
|
||||||
def delete_vector_name(self, index_name: str):
|
def delete_vector_name(self, index_name: str):
|
||||||
"""Delete name."""
|
"""Delete name."""
|
||||||
|
|
||||||
|
def truncate(self) -> List[str]:
|
||||||
|
"""Truncate the collection."""
|
||||||
|
raise NotImplementedError
|
||||||
|
@ -187,3 +187,7 @@ class VectorStoreBase(IndexStoreBase, ABC):
|
|||||||
List[str]: chunk ids.
|
List[str]: chunk ids.
|
||||||
"""
|
"""
|
||||||
return await blocking_func_to_async(self._executor, self.load_document, chunks)
|
return await blocking_func_to_async(self._executor, self.load_document, chunks)
|
||||||
|
|
||||||
|
def truncate(self) -> List[str]:
|
||||||
|
"""Truncate the collection."""
|
||||||
|
raise NotImplementedError
|
||||||
|
Loading…
Reference in New Issue
Block a user