Commit 8b29542
fix(JinaV5OmniWrapper): use Query/Document prefix for all text tasks
The text-matching, classification and clustering adapters were trained
WITH the "Query: "/"Document: " prefix, not without it. Running them
without any prefix causes dramatic score drops (e.g. STS12: 0.85→0.38,
Banking77: 0.90→0.30, SprintDuplicateQuestions: 0.96→0.18).
New logic: audio/video non-retrieval tasks skip the prefix (unchanged);
text and image tasks always use the prefix regardless of adapter type.
Update unit tests to reflect the corrected expected behavior.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0c5a402 commit 8b29542
2 files changed
Lines changed: 17 additions & 13 deletions
File tree
- mteb/models/model_implementations
- tests/test_models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
846 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
847 | 850 | | |
848 | 851 | | |
849 | 852 | | |
850 | 853 | | |
851 | 854 | | |
852 | | - | |
853 | | - | |
854 | 855 | | |
855 | 856 | | |
856 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | | - | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | | - | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
0 commit comments