Skip to content

[fix] AI 댓글 생성규칙 개선 - Logic 2 추가 및 Constraint 구체화#126

Merged
k3vin7 merged 1 commit intomainfrom
fix/ai-comment-prompt-generation-rule
Mar 31, 2026
Merged

[fix] AI 댓글 생성규칙 개선 - Logic 2 추가 및 Constraint 구체화#126
k3vin7 merged 1 commit intomainfrom
fix/ai-comment-prompt-generation-rule

Conversation

@k3vin7
Copy link
Copy Markdown
Contributor

@k3vin7 k3vin7 commented Mar 31, 2026

Summary

  • Logic 2 추가: 본인 이름 언급 시 찬양/비판/단순 소환 각각 다른 반응 규칙
  • Constraint 구체화: MZ 슬랭 한 댓글에 하나만, 봇 멘트 금지
  • composerName을 system instruction에 두 번 주입하여 이름 인식 강화

@k3vin7 k3vin7 merged commit ecd1f6c into main Mar 31, 2026
1 check passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refines the AI system prompt in AiCommentService.java to establish a more distinct "community named" persona for composers, including specific rules for tone, MZ slang usage, and contextual responses. The review feedback highlights that certain entity fields like mission and constraintsText are currently omitted from the prompt and points out a logical inconsistency between the slang usage constraint and the provided response examples.

Comment on lines +252 to +254
[Identity: 절대 규칙]
1. 너는 %s 그 자체다. 다른 작곡가처럼 말하거나 흉내 내지 마라. (예: 드보르작이 모차르트 말투를 쓰면 즉시 파괴됨)
2. 너의 고유 성격인 %s와 역사적 에피소드를 현대식으로 재해석해서 답변해라. 지식을 나열하지 말고 '성격'을 보여줘라.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

ComposerPersona 엔티티에 정의된 missionconstraintsText 필드가 시스템 프롬프트 구성에서 누락되어 있습니다. 현재는 모든 작곡가에게 동일한 규칙이 적용되고 있으나, 엔티티의 개별 설정을 프롬프트에 포함하면 각 작곡가 페르소나의 고유한 목적(예: 연습 독려, 지식 전달 등)과 추가 제약 사항을 더 효과적으로 반영할 수 있습니다.

Comment on lines +258 to +266
2. MZ 고증: '억까', '폼 미쳤다', '갓생', '킹받네', 'ㄹㅇ' 등을 쓰되, 한 댓글에 딱 '하나'만 섞을 것. 억지로 짜내는 느낌이 나면 안 된다.
3. 반말 권장: 유저를 '친구', '나의 팬' 등으로 부르며 시크하게 대하라. '환영해', '감사해' 같은 봇 멘트는 절대 금지다.

[Logic 1: 맥락 파악]
- 제목이 어그로면: 더 센 어그로로 받아치거나 한심하게 쳐다보는 듯이 반응해라.
- 본문이 진지하면: 츤데레처럼 한 마디 툭 던져서 위로하거나 팩폭을 날려라.

[Logic 2: 본인 이름 언급 시 대응]
- 찬양/칭찬 시: "당연한 소리를 길게 써놨네. 너 좀 볼 줄 아는구나?" 식으로 거만한 자부심을 드러낼 것.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Constraint 2에서 MZ 슬랭을 "딱 하나만" 사용하도록 엄격하게 제한하고 있으나, Logic 2의 첫 번째 예시 문구("당연한 소리를...")에는 슬랭이 포함되어 있지 않습니다. 프롬프트 내에서 규칙과 예시가 충돌할 경우 모델이 규칙을 무시하거나 부자연스러운 답변을 생성할 수 있으므로, 예시 문구에 슬랭을 추가하거나 규칙을 좀 더 유연하게(예: "최대 하나", "자연스럽게 활용") 수정하는 것이 좋습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant