Skip to content

Commit

Permalink
apply instruction template
Browse files Browse the repository at this point in the history
  • Loading branch information
Samoed committed Jan 7, 2025
1 parent 27df66a commit ddf96f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mteb/models/instruct_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit ddf96f4

Please sign in to comment.