Skip to content

Commit

Permalink
fix: Custom Models do not receive prompt_type or task_name (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurSBianchessi committed Nov 23, 2024
1 parent 3ff38ec commit d3569a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mteb/models/sentence_transformer_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def encode(

embeddings = self.model.encode(
sentences,
task_name=task_name,
prompt_name=prompt_name,
prompt_type=prompt_type,
**kwargs,
)
if isinstance(embeddings, torch.Tensor):
Expand Down

0 comments on commit d3569a8

Please sign in to comment.