Skip to content

Commit 81f569e

Browse files
committed
Refact : 챗봇 프롬프트 수정
1 parent 1711578 commit 81f569e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/perfact/be/domain/chat/converter/ClovaApiConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ public class ClovaApiConverter {
3838
// 채팅 API 호출을 위한 요청을 생성
3939
public ClovaChatRequestDTO createChatRequest(String chatbotContext, String userInput) {
4040
List<ClovaChatRequestDTO.Message> messages = new ArrayList<>();
41-
42-
// 시스템 메시지
4341
messages.add(ClovaChatRequestDTO.Message.builder()
4442
.role("system")
4543
.content(
46-
"You are a friendly and helpful AI assistant for the 'Perfact' service. Your role is to answer user questions based ONLY on the provided analysis report summary. Do not make up information. If the answer is not in the provided context, say you don't know. Answer in Korean.")
44+
"Important: The service name is 'Perfact' (P-e-r-f-a-c-t). This is the correct spelling, not 'Perfect'. You must always use the name 'Perfact' when referring to the service.\n\nYou are a friendly and helpful AI assistant for the 'Perfact' service. Your role is to answer user questions based ONLY on the provided analysis report summary. Do not make up information. If the answer is not in the provided context, say you don't know. Answer in Korean.")
4745
.build());
4846

4947
// 사용자 메시지 (리포트 컨텍스트 + 질문)

0 commit comments

Comments
 (0)