Commit 1c2ba48e1f815e47af9274e1347ce79171b0470d
1 parent
cdd8ee3a
eval tagger
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
config/config.yaml
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 | ... | ... |