chore: add abstract decorator and output log when query embedding fails (#9264)
This commit is contained in:
parent
ea6734f550
commit
d97d3ff5fc
3 changed files with 9 additions and 2 deletions
|
|
@ -27,9 +27,11 @@ class BaseKeyword(ABC):
|
|||
def delete_by_ids(self, ids: list[str]) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def delete(self) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def search(self, query: str, **kwargs: Any) -> list[Document]:
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue