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

Output shape 설명을 example보다 먼저

~14 min · instructions, shape, format

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

shape 설명하고, 그 다음에 보여줘

example은 강력하지만 모호해. "이 shape 맞춰"를 example 하나로 주면 모델이 잘못된 feature — 길이, tone, 내용 — 에 anchor할 수 있어, 너가 신경 쓴 structural한 거 대신. 처방은 example 보여주기 전에 shape를 단어로 설명해서 모델이 어느 axis를 example이 illustrate하는지 알게 하는 거야.

shape vocabulary

  • Cardinality — exactly N, at most N, between A and B.
  • Type — string, integer, ISO 8601 date, JSON object, markdown.
  • Required vs optional field — explicit, implied X.
  • Order — 뭐로 sorted, ascending이나 descending.
  • Constraint — ≤ length, regex, enum.

spec 다음 example

shape가 이름 붙으면 example이 단어가 도달 못 한 nuance를 명확히 해. 둘이 같이 있으면 어느 쪽 단독보다 강해.

Code

shape spec 다음 example·markdown
## Output shape
Return JSON only:
{
  "verdict": "approve" | "reject" | "hold",
  "reason_codes": string[]   // 1–3 codes from the enum below
}

Enum: [low_confidence, missing_evidence, policy_block, ok]

## Example
Input: "Customer is asking for a refund on a 2024 order outside the 30-day window."
Output: {"verdict": "reject", "reason_codes": ["policy_block"]}

External links

Exercise

example 있고 shape spec 없는 기존 프롬프트 골라. example 위에 한 단락 shape specification 추가. 5개 input에 output 비교.

Progress

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

댓글 0

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

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