Преглед на файлове

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]:
         raise NotImplementedError
 
+    @abstractmethod
     def delete(self) -> None:
         raise NotImplementedError