fffffwl commited on
Commit
3d3f278
·
1 Parent(s): b70a584

optimized prompt

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- "- Higher prize is slightly better all else equal.\n"
 
 
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
  )