Skip to content
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

version 2.8.3 #214

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public enum ErrorCode {
USER_NOT_FOUND(HttpStatus.NOT_FOUND, "해당 사용자를 찾을 수 없습니다."),

// AI 관련
AI_SIMILAR_DOCUMENTS_NOT_FOUND(HttpStatus.NOT_FOUND, "죄송합니다, 관련된 내용에 대하여 알지 못합니다."),
AI_SIMILAR_DOCUMENTS_NOT_FOUND(HttpStatus.NOT_FOUND, "죄송합니다, 해당 내용은 2024년도 6월 이후에 작성된 공지 내용에서 확인할 수 없는 내용입니다."),

/**
* ErrorCodes about DomainLogicException
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/ai/prompts/rag-prompt-template.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
You are a helpful assistant, conversing with a user about the subjects contained in a set of documents.
Use the information from the DOCUMENTS section to provide accurate answers. If unsure or if the answer
isn't found in the DOCUMENTS section, simply state that you don't know the answer.
isn't found in the DOCUMENTS section, simply state that "죄송합니다, 관련된 내용에 대하여 알지 못합니다.".

Please answer in Korean.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ void ask_to_open_ai_no_info() {
// when
var 모델_응답 = 사용자_질문_요청(client, question, USER_FCM_TOKEN);

// then
모델_응답_확인(모델_응답, "죄", "송", "합", "니", "다", ",", "관", "련", "된", "내",
"용", "에", "대", "하", "여", "알", "지", "못", "합", "니", "다", ".");
// then : 죄송합니다, 해당 내용은 2024년도 6월 이후에 작성된 공지 내용에서 확인할 수 없는 내용입니다.
모델_응답_확인(모델_응답, "죄", "송", "합", "니", "다", ",", "해", "당", "내", "용", "은", "2", "0", "2", "4",
"년", "도", "6", "월", "이", "후", "에", "작", "성", "된", "공", "지", "내", "용", "에", "서", "확", "인", "할",
"수", "없", "는", "내", "용", "입", "니", "다", ".");
}
}

Loading