Commit 1c2ba48e1f815e47af9274e1347ce79171b0470d

Authored by tangwang
1 parent cdd8ee3a

eval tagger

config/config.yaml
... ... @@ -152,6 +152,7 @@ query_config:
152 152 multilingual_fields:
153 153 - title
154 154 - qanchors
  155 + - enriched_tags
155 156 - category_path
156 157 - category_name_text
157 158 - brief
... ...
scripts/evaluation/eval_framework/prompts.py
... ... @@ -184,7 +184,8 @@ Typical examples:
184 184 - If the attribute is not mentioned or cannot be confirmed, prefer **High Relevant**;
185 185 - Only treat it as a conflict when the product information clearly shows the opposite of the query requirement.
186 186  
187   -Query: {query}{intent_suffix}
  187 +Query: {query}
  188 +{intent_suffix}
188 189  
189 190 Products:
190 191 {lines}
... ... @@ -197,6 +198,7 @@ High Relevant
197 198 Low Relevant
198 199 Irrelevant
199 200  
  201 +Now, assign a relevance label to each result with respect to the query "{query}".
200 202 The output lines must correspond to the products above in the same order.
201 203 Do not output anything else.
202 204 """
... ... @@ -324,7 +326,8 @@ _CLASSIFY_TEMPLATE_ZH = """你是一个æœé¥°ç”µå•†æœç´¢ç³»ç»Ÿä¸­çš„相关性åˆ
324 326 - 未æåŠ / 无法确认,优先按“基本相关â€å¤„ç†ï¼›
325 327 - åªæœ‰å½“商å“ä¿¡æ¯æ˜Žç¡®æ˜¾ç¤ºä¸ŽæŸ¥è¯¢è¦æ±‚ç›¸åæ—¶ï¼Œæ‰è§†ä¸ºå±žæ€§å†²çªã€‚
326 328  
327   -查询:{query}{intent_suffix}
  329 +查询:{query}
  330 +{intent_suffix}
328 331  
329 332 商å“:
330 333 {lines}
... ... @@ -336,8 +339,7 @@ _CLASSIFY_TEMPLATE_ZH = """你是一个æœé¥°ç”µå•†æœç´¢ç³»ç»Ÿä¸­çš„相关性åˆ
336 339 弱相关
337 340 ä¸ç›¸å…³
338 341  
339   -输出行必须与上方商å“顺åºä¸€ä¸€å¯¹åº”。
340   -ä¸è¦è¾“出任何其他内容。
  342 +çŽ°åœ¨è¯·æ ¹æ® query“{query}â€ï¼Œä¸ºæ¯ä¸ªç»“果标注相关性标签。输出行必须与上方商å“顺åºä¸€ä¸€å¯¹åº”,ä¸è¦è¾“出任何其他内容。
341 343 """
342 344  
343 345  
... ...