Skip to content

Commit

Permalink
refactor: update delete method as an abstract method (#8794)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwzhuhao authored Sep 26, 2024
1 parent 128a66f commit 008e0ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/core/rag/datasource/vdb/vector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def search_by_vector(self, query_vector: list[float], **kwargs: Any) -> list[Doc
def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:
raise NotImplementedError

@abstractmethod
def delete(self) -> None:
raise NotImplementedError

Expand Down

0 comments on commit 008e0ef

Please sign in to comment.