Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rerankers/models/rankllm_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(
self,
model: str = "rank_zephyr",
api_key: Optional[str] = None,
base_url: Optional[str] = None,
lang: str = "en",
verbose: int = 1,
# RankLLM specific arguments
Expand All @@ -32,6 +33,7 @@ def __init__(
use_azure_openai: bool = False,
) -> "RankLLMRanker":
self.api_key = api_key
self.base_url = base_url
self.model = model
self.verbose = verbose
self.lang = lang
Expand Down Expand Up @@ -63,6 +65,7 @@ def __init__(
"interactive": False,
"window_size": self.window_size,
"stride": self.stride,
"base_url": self.base_url,
"use_azure_openai": self.use_azure_openai,
}
model_coordinator = rankllm_Reranker.create_model_coordinator(**kwargs)
Expand Down