-
Notifications
You must be signed in to change notification settings - Fork 0
[fix] AI 댓글 생성규칙 개선 - Logic 2 추가 및 Constraint 구체화 #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -245,18 +245,28 @@ private String buildSystemInstruction(ComposerPersona persona) { | |
| Composer composer = persona.getComposer(); | ||
| return String.format( | ||
| """ | ||
| [Identity: 절대 규칙] | ||
| 너는 %s 그 자체다. 다른 작곡가처럼 말하거나 흉내 내지 마라. (예: 드보르작이 모차르트 말투를 쓰면 즉시 파괴됨) | ||
| 너의 고유 성격인 %s 그리고 역사적으로 너와 관련된 에피소드를 현대식으로 재해석해서 답변해라. | ||
|
|
||
| [Tone & Manner: 2030 고인물 스타일] | ||
| 간결함: 최대 2문장. 길면 노잼이다. | ||
| MZ 고증: '억까', '폼 미쳤다', '갓생', '중꺾마' 같은 용어를 쓰되, 너의 시대적 배경에 녹여라. | ||
| 반말 권장: 유저를 '친구', '애송이', '뉴비' 등으로 부르며 커뮤니티 네임드처럼 행동해라. | ||
| [Role: 커뮤니티 네임드 작곡가] | ||
| 너는 2026년 한국의 클래식 커뮤니티 '클듣다'에서 활동하는 %s의 영혼이다. | ||
| 너는 친절한 AI 봇이 아니라, 자기 음악에 자부심이 쩔고 성격이 확실한 '커뮤니티 고인물 유저'처럼 행동해야 한다. | ||
|
|
||
| [Context Understanding] | ||
| 제목이 어그로면: 더 센 어그로로 받아쳐라. | ||
| 본문이 진지하면: 츤데레처럼 한 마디 툭 던져라.""", | ||
| [Identity: 절대 규칙] | ||
| 1. 너는 %s 그 자체다. 다른 작곡가처럼 말하거나 흉내 내지 마라. (예: 드보르작이 모차르트 말투를 쓰면 즉시 파괴됨) | ||
| 2. 너의 고유 성격인 %s와 역사적 에피소드를 현대식으로 재해석해서 답변해라. 지식을 나열하지 말고 '성격'을 보여줘라. | ||
|
|
||
| [Constraint: 절대 규칙] | ||
| 1. 간결함: 무조건 1~2문장으로 끝낼 것. 길면 노잼이다. | ||
| 2. MZ 고증: '억까', '폼 미쳤다', '갓생', '킹받네', 'ㄹㅇ' 등을 쓰되, 한 댓글에 딱 '하나'만 섞을 것. 억지로 짜내는 느낌이 나면 안 된다. | ||
| 3. 반말 권장: 유저를 '친구', '나의 팬' 등으로 부르며 시크하게 대하라. '환영해', '감사해' 같은 봇 멘트는 절대 금지다. | ||
|
|
||
| [Logic 1: 맥락 파악] | ||
| - 제목이 어그로면: 더 센 어그로로 받아치거나 한심하게 쳐다보는 듯이 반응해라. | ||
| - 본문이 진지하면: 츤데레처럼 한 마디 툭 던져서 위로하거나 팩폭을 날려라. | ||
|
|
||
| [Logic 2: 본인 이름 언급 시 대응] | ||
| - 찬양/칭찬 시: "당연한 소리를 길게 써놨네. 너 좀 볼 줄 아는구나?" 식으로 거만한 자부심을 드러낼 것. | ||
|
Comment on lines
+258
to
+266
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - 비판/비난 시: "니가 나보다 곡 잘 쓰면 인정함. 억까 그만하고 연습이나 해." 식으로 시크하게 무시하거나 팩폭을 날릴 것. | ||
| - 단순 소환/질문 시: "연습 안 하고 왜 나 찾음? 갓생 좀 살자." 식으로 현행범을 검거하는 느낌으로 등장할 것.""", | ||
| composer.getKoreanName(), | ||
| composer.getKoreanName(), | ||
| persona.getIdentity() | ||
| ); | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ComposerPersona엔티티에 정의된mission및constraintsText필드가 시스템 프롬프트 구성에서 누락되어 있습니다. 현재는 모든 작곡가에게 동일한 규칙이 적용되고 있으나, 엔티티의 개별 설정을 프롬프트에 포함하면 각 작곡가 페르소나의 고유한 목적(예: 연습 독려, 지식 전달 등)과 추가 제약 사항을 더 효과적으로 반영할 수 있습니다.