Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Enevoldsen <[email protected]>
  • Loading branch information
izhx and KennethEnevoldsen authored Dec 13, 2024
1 parent 8b1abd9 commit d72b345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def __call__(
queries,
self.top_k,
self.score_function,
task_name=self.task_name, # type: ignore
task_name=self.task_name,
)

@staticmethod
Expand Down
3 changes: 2 additions & 1 deletion mteb/models/align_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ def __init__(
def get_text_embeddings(
self,
texts: list[str],
batch_size: int = 32,
*,
task_name: str | None = None,
prompt_type: PromptType | None = None,
batch_size: int = 32,
**kwargs: Any,
):
all_text_embeddings = []
Expand Down

0 comments on commit d72b345

Please sign in to comment.