Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dingo/retrieval/mteb_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def _build_effective_query_text(
) -> str:
if not _task_uses_query_instructions(task_name) or not instruction:
return query_text
return f"Instruction: {instruction}\nQuery: {query_text}"
if query_text and query_text in instruction:
return instruction
return f"{query_text} {instruction}"


def _instruction_trace_fields(
Expand Down
Loading