refac: reranker

Co-Authored-By: Tornike Gurgenidze <togurg14@freeuni.edu.ge>
This commit is contained in:
Timothy Jaeryang Baek
2025-05-23 01:29:48 +04:00
co-authored by Tornike Gurgenidze
parent f2d2cae8fb
commit aac25eac9e
3 changed files with 14 additions and 2 deletions
@@ -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