diff --git a/mteb/models/jasper_models.py b/mteb/models/jasper_models.py index 60fa4f697..b5103e57b 100644 --- a/mteb/models/jasper_models.py +++ b/mteb/models/jasper_models.py @@ -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(