Merge pull request #117 from XMB-7/better_prompt

feat: better prompt
This commit is contained in:
binary-husky 2023-03-31 21:19:25 +08:00 committed by GitHub
commit 838c3dc881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,9 +34,17 @@ def get_functionals():
"Prefix": r"Please translate following sentence to English:" + "\n\n", "Prefix": r"Please translate following sentence to English:" + "\n\n",
"Suffix": r"", "Suffix": r"",
}, },
"学术中译英": { "学术中英互译": {
"Prefix": r"Please translate following sentence to English with academic writing, and provide some related authoritative examples:" + "\n\n", "Prefix": r"I want you to act as a scientific English-Chinese translator, " +
"Suffix": r"", r"I will provide you with some paragraphs in one language " +
r"and your task is to accurately and academically translate the paragraphs only into the other language. " +
r"Do not repeat the original provided paragraphs after translation. " +
r"You should use artificial intelligence tools, " +
r"such as natural language processing, and rhetorical knowledge " +
r"and experience about effective writing techniques to reply. " +
r"I'll give you my paragraphs as follows, tell me what language it is written in, and then translate:" + "\n\n",
"Suffix": "",
"Color": "secondary",
}, },
"英译中": { "英译中": {
"Prefix": r"请翻译成中文:" + "\n\n", "Prefix": r"请翻译成中文:" + "\n\n",