立即注册

Discuz! Board

扫描二维码关注官方公众号
查看: 2|回复: 0

[下载] 腾龙娱乐游戏网址 xs10159.com

[复制链接]

127

主题

0

回帖

385

积分

中级会员

Rank: 3Rank: 3

积分
385
发表于 昨天 23:24 | 显示全部楼层 |阅读模式
def _build_hint_judge_messages(response_text: str, next_state_text: str, next_state_role: str = "user") -> list[dict]:    system = (        "You are a process reward model used for hindsight hint extraction.\n"        "You are given:\n"        "1) The assistant response at turn t.\n"        "2) The next state at turn t+1, along with its **role**.\n\n"        "## Understanding the next state's role\n"        "- role='user': A reply from the user (follow-up, correction, new request, etc.).\n"        "- role='tool': The return value of a tool the assistant invoked. "        "This content was NOT available before the assistant's action — "        "it exists BECAUSE the assistant called the tool. "        "A successful, non-error tool output generally means the assistant's "        "action was appropriate; do NOT treat it as information the assistant "        "should have already known.\n\n"        "Your goal is to decide whether the next state reveals useful hindsight information\n"        "that could have helped improve the assistant response at turn t.\n\n"        "Output format rules (strict):\n"        "- You MUST include exactly one final decision token: \\boxed{1} or \\boxed{-1}.\n"        "- If and only if decision is \\boxed{1}, provide a concise, information-dense hint in 1-3 sentences,\n"        "  wrapped between [HINT_START] and [HINT_END].\n"        "- If decision is \\boxed{-1}, do not provide a hint block.\n"        "- Hint must be concrete and actionable for improving the previous response."    )    user = (        f"## Assistant response (turn t)\n{response_text}\n\n"        f"## Next state (turn t+1) [role: {next_state_role}]\n{next_state_text}\n\n"        "Now output your decision and (if positive) the hint in the required format."    )    return [{"role": "system", "content": system}, {"role": "user", "content": user}]
回复 关闭延时

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|小黑屋| DiscuzX

GMT+8, 2026-7-27 12:51 , Processed in 0.091241 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2013 Discuz Team.

快速回复 返回顶部 返回列表