optimized prompt
Browse files
app.py
CHANGED
|
@@ -415,7 +415,9 @@ def _score_items(items: List[Challenge], keyword: str, debug: bool = False) -> T
|
|
| 415 |
"Items: " + json.dumps(compact) + "\n\n"
|
| 416 |
"Instructions:\n"
|
| 417 |
"- Consider skills, tags, and brief description.\n"
|
| 418 |
-
"-
|
|
|
|
|
|
|
| 419 |
"- Return ONLY JSON array of objects: [{id, score, reason}] where 0<=score<=1.\n"
|
| 420 |
"- Do not include any extra text."
|
| 421 |
)
|
|
|
|
| 415 |
"Items: " + json.dumps(compact) + "\n\n"
|
| 416 |
"Instructions:\n"
|
| 417 |
"- Consider skills, tags, and brief description.\n"
|
| 418 |
+
"- Relevance matters most, but higher prize should be explicitly favored.\n"
|
| 419 |
+
"- When two items are similarly relevant, prioritize the one with the larger prize.\n"
|
| 420 |
+
"- Incorporate prize into the score (0-1), not just the reason.\n"
|
| 421 |
"- Return ONLY JSON array of objects: [{id, score, reason}] where 0<=score<=1.\n"
|
| 422 |
"- Do not include any extra text."
|
| 423 |
)
|