C.W.K.
Stream
Lesson 06 of 10 · published

매 turn re-anchoring

~12 min · conversation, anchoring

Level 0수련생
0 XP0/100 lessons0/14 achievements
0/120 XP to next level120 XP to go0% complete

매 turn re-inject할 것

어떤 constraint는 dilute하기엔 너무 중요. 그런 거에는 매 turn re-inject — system prompt (fixed) 통해서 X, active context의 위나 아래 짧은 reminder로.

re-anchoring candidate

  • Refusal policy ("do not give medical dosages").
  • Structured-output call의 output schema reminder.
  • Active task 이름과 현재 step (agent loop용).
  • 시간 지나며 drift하는 tone constraint.

어떻게 inject

turn-level developer-role message (지원되는 곳) 또는 system reminder marked structured user message. log에서 visually 구별되게 만들어서 audit 가능.

Code

Per-turn anchor·python
anchored_messages = [
    *history,
    {"role": "user", "content": user_input},
    {"role": "user", "content": (
        "[reminder] You are still in 'underwriting' mode. "
        "Output JSON matching the verdict schema. "
        "Do not produce free text outside JSON."
    )}
]

External links

Exercise

긴 대화에서 drift한 constraint 하나 식별. 그것에 per-turn anchor 추가. 대화 다시 돌려; drift bounded됐는지 관찰.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.