From 12862d825c2b4eabcbd6e3707d9f41d09533be8c Mon Sep 17 00:00:00 2001 From: chupei Date: Tue, 9 Jun 2026 14:28:02 +0800 Subject: [PATCH 1/2] fix: update IF task effective_query_text --- dingo/retrieval/mteb_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dingo/retrieval/mteb_adapter.py b/dingo/retrieval/mteb_adapter.py index 3de7e471..acba7ac5 100644 --- a/dingo/retrieval/mteb_adapter.py +++ b/dingo/retrieval/mteb_adapter.py @@ -70,7 +70,7 @@ 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}" + return f"{query_text} {instruction}" def _instruction_trace_fields( From ec3e2fde699e1f4822774938c027d15e99f470b7 Mon Sep 17 00:00:00 2001 From: chupei Date: Tue, 9 Jun 2026 14:44:45 +0800 Subject: [PATCH 2/2] x --- dingo/retrieval/mteb_adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dingo/retrieval/mteb_adapter.py b/dingo/retrieval/mteb_adapter.py index acba7ac5..58ca33b0 100644 --- a/dingo/retrieval/mteb_adapter.py +++ b/dingo/retrieval/mteb_adapter.py @@ -70,6 +70,8 @@ def _build_effective_query_text( ) -> str: if not _task_uses_query_instructions(task_name) or not instruction: return query_text + if query_text and query_text in instruction: + return instruction return f"{query_text} {instruction}"