숫자 근거 가드 재프롬프트: 사용자는 초안을 본 적 없으니 정정·초안·제거한 수치를 답에 언급하지 말도록 지시 (맛집 답이 '제 직전 답변에는 수치가…'로 시작하던 문제)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-17 23:47:41 +09:00
1 parent 1cd5a83f9a
commit 6c6245618f
1 file changed
+1 -1
+1 -1
View File
@@ -2119,7 +2119,7 @@ async function handleChat(
messages.push({ role: 'assistant', content: candidateText });
messages.push({
role: 'user',
content: `None of the figures you just gave (${_badFigures.join(', ')}) appear anywhere in the tool results from this turn — you produced them from memory, not from what you found. Rewrite the answer using ONLY numbers the tools actually returned. If the specific figure the user asked for is not in those results, say plainly that you could not find it, name what the results DID contain (which sources, what they were about), and give what IS known qualitatively — WITHOUT substituting an estimate. A stated range like "약 2~5" reads as a measurement to the user; do not offer one you cannot source. Do NOT open with an apology or "죄송합니다" — just give the corrected answer directly.`,
content: `None of the figures you just gave (${_badFigures.join(', ')}) appear anywhere in the tool results from this turn — you produced them from memory, not from what you found. Rewrite the answer using ONLY numbers the tools actually returned. If the specific figure the user asked for is not in those results, say plainly that you could not find it, name what the results DID contain (which sources, what they were about), and give what IS known qualitatively — WITHOUT substituting an estimate. A stated range like "약 2~5" reads as a measurement to the user; do not offer one you cannot source. Do NOT open with an apology or "죄송합니다" — just give the corrected answer directly. The user never saw your previous draft: do not mention this correction, the draft, or the figures you removed — write the answer as if it were your first.`,
});
lastRoundWasGuardReprompt = true;
continue;