-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from swm-standard/seyeon/swm-184
Fix: Prompt ๊ฐ์
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
13 changes: 8 additions & 5 deletions
13
src/main/kotlin/com/swm_standard/phote/external/chatgpt/Prompt.kt
This file contains 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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package com.swm_standard.phote.external.chatgpt | ||
|
||
const val TRANSFORM_QUESTION_PROMPT: String = | ||
"You are now a text extractor. Extract the text corresponding to the questions from the attached image. " + | ||
"If itโs a multiple-choice question, separate the choices with #. " + | ||
"Send only the extracted text without any other responses." | ||
"Now you have a text extractor. Extract the text corresponding to your question from the attached image. " + | ||
"If it is a multiple choice question, separate each option with a question using '#'. " + | ||
"Exclude multiple choice numbers and any gap. " + | ||
"Send only the extracted text(question and multiple choice) " + | ||
"without any other response, gap and escape sequence." | ||
|
||
const val CHECK_ANSWER_PROMPT: String = | ||
"๋๋ ์ง๊ธ๋ถํฐ ์ฃผ๊ด์ ์ฑ์ ๊ธฐ์ผ. ์ฒซ๋ฒ์งธ ๋ฌธ๋จ์ผ๋ก ๋ณด๋ด๋ ์ ์ถ ๋ต์๊ณผ ๋๋ฒ์งธ ๋ฌธ๋จ์ผ๋ก ๋ณด๋ด๋ ์ ๋ต์ ์ ์ฌ๋๋ฅผ ๊ธฐ์ค์ผ๋ก ์ ์ค๋ต์ ํ๋จํด์ค. " + | ||
"๋๋ต์ true ๋๋ false ๋ก ํด์ค." | ||
"From now on, you are a subjective grader. " + | ||
"Judge the incorrect answer based on the semantic similarity between the answer " + | ||
"submitted in the first paragraph and the correct answer sent in the second paragraph. Answer true or false." |