Skip to content

Commit

Permalink
fix jasper
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoed committed Jan 7, 2025
1 parent ddf96f4 commit b70232e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mteb/models/jasper_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def encode(
instruction = self.get_task_instruction(task_name, prompt_type)

# to passage prompts won't be applied to passages
if prompt_type == PromptType.passage and task.metadata.type == "s2p":
if prompt_type == PromptType.passage and task.metadata.category == "s2p":
instruction = None

embeddings = self.model.encode(
Expand Down

0 comments on commit b70232e

Please sign in to comment.