refac: reranker

Co-Authored-By: Tornike Gurgenidze <togurg14@freeuni.edu.ge>
This commit is contained in:
Timothy Jaeryang BaekandTornike Gurgenidze committed 2025-05-23 01:29:48 +04:00
1 parent f2d2cae8fb
commit aac25eac9e
3 files changed
+14 -2

No files matched your search

@@ -0,0 +1,8 @@
from abc import ABC, abstractmethod
from typing import Optional, List, Tuple
class BaseReranker(ABC):
@abstractmethod
def predict(self, sentences: List[Tuple[str, str]]) -> Optional[List[float]]:
pass