瀏覽代碼

refactor: update delete method as an abstract method (#8794)

zhuhao 6 月之前
父節點
當前提交
008e0efeb0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/core/rag/datasource/vdb/vector_base.py

+ 1 - 0
api/core/rag/datasource/vdb/vector_base.py

@@ -45,6 +45,7 @@ class BaseVector(ABC):
     def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:
     def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:
         raise NotImplementedError
         raise NotImplementedError
 
 
+    @abstractmethod
     def delete(self) -> None:
     def delete(self) -> None:
         raise NotImplementedError
         raise NotImplementedError