diff --git a/mteb/models/instruct_wrapper.py b/mteb/models/instruct_wrapper.py index 22f1a8593..ce5152896 100644 --- a/mteb/models/instruct_wrapper.py +++ b/mteb/models/instruct_wrapper.py @@ -121,6 +121,8 @@ def encode( ) -> np.ndarray: task = mteb.get_task(task_name=task_name) instruction = self.get_instruction(task_name, prompt_type) + if self.instruction_template: + instruction = self.format_instruction(instruction, prompt_type) # to passage prompts won't be applied to passages if (