Add CoT format comment to the example snippet
#16
by laelhalawani - opened
README.md
CHANGED
|
@@ -109,6 +109,8 @@ messages = [
|
|
| 109 |
# without CoT
|
| 110 |
"Translate the following English sentence into Chinese:\nMay the force be with you <zh>",
|
| 111 |
# with CoT
|
|
|
|
|
|
|
| 112 |
"Translate the following English sentence into Chinese and explain it in detail:\nMay the force be with you <zh>"
|
| 113 |
]
|
| 114 |
|
|
|
|
| 109 |
# without CoT
|
| 110 |
"Translate the following English sentence into Chinese:\nMay the force be with you <zh>",
|
| 111 |
# with CoT
|
| 112 |
+
# The output of CoT prompt is `This is the translation text. \n\n[COT] This is the explanation.`
|
| 113 |
+
# Thus, you can use [COT] to extract the translation. If the model considers the input sentence to be relatively simple and does not require CoT, it will directly output the translated result without [COT].
|
| 114 |
"Translate the following English sentence into Chinese and explain it in detail:\nMay the force be with you <zh>"
|
| 115 |
]
|
| 116 |
|