open-webui / backend /open_webui /retrieval /models /base_reranker.py
oki692's picture
Deploy Open WebUI
87a665c verified
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