Commit 1c2ba48e1f815e47af9274e1347ce79171b0470d
1 parent
cdd8ee3a
eval tagger
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
config/config.yaml
| @@ -152,6 +152,7 @@ query_config: | @@ -152,6 +152,7 @@ query_config: | ||
| 152 | multilingual_fields: | 152 | multilingual_fields: |
| 153 | - title | 153 | - title |
| 154 | - qanchors | 154 | - qanchors |
| 155 | + - enriched_tags | ||
| 155 | - category_path | 156 | - category_path |
| 156 | - category_name_text | 157 | - category_name_text |
| 157 | - brief | 158 | - brief |
scripts/evaluation/eval_framework/prompts.py
| @@ -184,7 +184,8 @@ Typical examples: | @@ -184,7 +184,8 @@ Typical examples: | ||
| 184 | - If the attribute is not mentioned or cannot be confirmed, prefer **High Relevant**; | 184 | - If the attribute is not mentioned or cannot be confirmed, prefer **High Relevant**; |
| 185 | - Only treat it as a conflict when the product information clearly shows the opposite of the query requirement. | 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 | Products: | 190 | Products: |
| 190 | {lines} | 191 | {lines} |
| @@ -197,6 +198,7 @@ High Relevant | @@ -197,6 +198,7 @@ High Relevant | ||
| 197 | Low Relevant | 198 | Low Relevant |
| 198 | Irrelevant | 199 | Irrelevant |
| 199 | 200 | ||
| 201 | +Now, assign a relevance label to each result with respect to the query "{query}". | ||
| 200 | The output lines must correspond to the products above in the same order. | 202 | The output lines must correspond to the products above in the same order. |
| 201 | Do not output anything else. | 203 | Do not output anything else. |
| 202 | """ | 204 | """ |
| @@ -324,7 +326,8 @@ _CLASSIFY_TEMPLATE_ZH = """ä½ æ˜¯ä¸€ä¸ªæœé¥°ç”µå•†æœç´¢ç³»ç»Ÿä¸çš„ç›¸å…³æ€§åˆ | @@ -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 | {lines} | 333 | {lines} |
| @@ -336,8 +339,7 @@ _CLASSIFY_TEMPLATE_ZH = """ä½ æ˜¯ä¸€ä¸ªæœé¥°ç”µå•†æœç´¢ç³»ç»Ÿä¸çš„ç›¸å…³æ€§åˆ | @@ -336,8 +339,7 @@ _CLASSIFY_TEMPLATE_ZH = """ä½ æ˜¯ä¸€ä¸ªæœé¥°ç”µå•†æœç´¢ç³»ç»Ÿä¸çš„ç›¸å…³æ€§åˆ | ||
| 336 | 弱相关 | 339 | 弱相关 |
| 337 | ä¸ç›¸å…³ | 340 | ä¸ç›¸å…³ |
| 338 | 341 | ||
| 339 | -输出行必须与上方商å“顺åºä¸€ä¸€å¯¹åº”。 | ||
| 340 | -ä¸è¦è¾“出任何其他内容。 | 342 | +çŽ°åœ¨è¯·æ ¹æ® query“{query}â€ï¼Œä¸ºæ¯ä¸ªç»“æžœæ ‡æ³¨ç›¸å…³æ€§æ ‡ç¾ã€‚输出行必须与上方商å“顺åºä¸€ä¸€å¯¹åº”,ä¸è¦è¾“出任何其他内容。 |
| 341 | """ | 343 | """ |
| 342 | 344 | ||
| 343 | 345 |