在使用GPT时,有时它的回复可能不符合你的要求。这并不是因为GPT变笨了,而是可能我们没有表达清楚我们的意图。合理使用分隔符可以让GPT更清晰地理解我们的请求。
示例:
错误示范:
```
把下面这段话翻译成中文:"Нет, это Москва. Я покажу тебе, как мерзлота настоящая, тогда ты будешь мне благодарен."
Vlad pushed Ort hard, he let go of him and started to make his way back the way they were before. He didn't bother to see if Ort followed, rather he just kept on making his way through the snow. He may have come across as heartless and cruel, but he was a survivalist, an animal that lived in the woods. He didn't expect much, he didn't expect for Ort to be able to keep up with him. The pace he walked was fast, the heavy steps echoing throughout the empty forest.
```
得到的结果是:
```
“不,这里是莫斯科。我会给你展示什么是真正的冻土,那时你会感谢我的。“
Vlad pushed Ort hard, he let go of him and started to make his way back the way they were before. He didn't bother to see if Ort followed, rather he just kept on making his way through the snow. He may have come across as heartless and cruel, but he was a survivalist, an animal that lived in the woods. He didn't expect much, he didn't expect for Ort to be able to keep up with him. The pace he walked was fast, the heavy steps echoing throughout the empty forest.
```
这是因为GPT只理解了翻译第一句话,后面的英文没有翻译。我们可以尝试用分隔符将要翻译的内容放在一个区间中,例如使用以下常用分隔符:```
```
<article>
</article>
正确的prompt示范:
把下面这段话翻译成中文:
```
"Нет, это Москва. Я покажу тебе, как мерзлота настоящая, тогда ты будешь мне благодарен."
Vlad pushed Ort hard, he let go of him and started to make his way back the way they were before. He didn't bother to see if Ort followed, rather he just kept on making his way through the snow. He may have come across as heartless and cruel, but he was a survivalist, an animal that lived in the woods. He didn't expect much, he didn't expect for Ort to be able to keep up with him. The pace he walked was fast, the heavy steps echoing throughout the empty forest.
```
得到的结果:
“不是,这里是莫斯科。我会让你看到什么是真正的冻土,那时你会感谢我的。”
弗拉德用力推了奥特,他松开了奥特,开始沿着他们之前的路返回。他没有在意奥特是否跟上,而是继续在雪中前行。他可能显得冷酷无情,但他是一个生存主义者,一个生活在森林中的动物。他对奥特并没有太高的期望,也不指望奥特能跟上他的步伐。他走得很快,沉重的脚步声在空旷的森林中回荡。
原文链接:https://blog.csdn.net/lucky_loy/article/details/142929010