mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
9 lines
219 B
Python
9 lines
219 B
Python
|
|
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
|