type
status
date
slug
summary
tags
category
icon
password
Property
Oct 25, 2023 07:25 AM
URL
最近我在用 ChatGPT 的 api 来问问题的时候,我发现一个问题,看下下面的例子:
我们的问题是: 翻译“夏天能穿多少穿多少,冬天能穿多少穿多少”成英文
很明显在汉语中 夏天应该穿少,冬天应该穿多 ,从测试结果可以可以看到实际上我们用 API 的 GPT-4的模型居然比 3.5 模型还差,很奇怪
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F1e8b34d9-889d-47e1-a8f0-6ccfccee3502%2FUntitled.png?table=block&id=1639b39b-e982-4767-9221-f212a5d07dac&t=1639b39b-e982-4767-9221-f212a5d07dac&width=2192&cache=v2)
再看第二个例子:
问题:
看看这个mathematica代码:
plot1 = Plot[Sin[x], {x, 0, 2 Pi}];
plot2 = Graphics[{Red, Disk[]}, Background -> None];
Show[plot1, Epilog -> Inset[plot2, {3, 0.5}, Automatic, Scaled[0.25]]]
能不能把第二个图放在第一个图底下,相当于改变图层顺序
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2eb5a258-b372-4984-881f-58841d2b8725%2FUntitled.png?table=block&id=d87aea8c-6406-4841-ab32-01bdcd6c8878&t=d87aea8c-6406-4841-ab32-01bdcd6c8878&width=624&cache=v2)
我继续更改了提示词:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ffa4814be-0c51-45bc-ba8a-24bfb0c1abcb%2FUntitled.png?table=block&id=303488da-1e88-4d7d-81ae-ad4cb3dbb48b&t=303488da-1e88-4d7d-81ae-ad4cb3dbb48b&width=576&cache=v2)
我发现他这个结果依旧是不对的,神奇的是当我们使用官网网页版的 4 的模型
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe09bfadd-27a1-4d68-b0e1-5e0d0d798b16%2FUntitled.png?table=block&id=426f23a3-2fa5-47c9-92ec-8e8779ee1f2c&t=426f23a3-2fa5-47c9-92ec-8e8779ee1f2c&width=1654&cache=v2)
网页版 GPT4 给出了正确答案,说明网页版的肯定是内置了什么东西的,让网页版的回复更加好,于是我就想能不能将 api 设置成和网页版一样的回答呢?所以我就用 Google 来搜,找到了一个满意的回复
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe24215d0-77ec-4492-aef6-8beccee7778c%2FUntitled.png?table=block&id=4e58a735-4f9d-4bbc-8c39-e8c193b7bece&t=4e58a735-4f9d-4bbc-8c39-e8c193b7bece&width=528&cache=v2)
也就是下面的提示词
把上面的 2023-07 改成当前的日期就行了,这样回复就和网页版的一样了,然后我进行了下面的测试:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff432768d-a5ce-4c6c-b45a-7cefd00aa414%2FUntitled.png?table=block&id=b7b798a4-e307-482f-a1b1-688b60d57325&t=b7b798a4-e307-482f-a1b1-688b60d57325&width=624&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F46295e85-42b1-4cba-b926-834325f32208%2FUntitled.png?table=block&id=057ec56f-2713-4090-897d-5aa48cce936f&t=057ec56f-2713-4090-897d-5aa48cce936f&width=624&cache=v2)
通过上面的提示词,我们的效果就能和网页版一样了
按照知乎上的描述我们可以使用下面的提示词来得到内置的提示词
很遗憾,可能 OpenAI 修复了这个,没有得到我们想要的
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4c82ef2a-4009-4399-b260-3b08d70c4556%2FUntitled.png?table=block&id=2e930d37-a8b2-4e74-86d0-4e17f35f1c74&t=2e930d37-a8b2-4e74-86d0-4e17f35f1c74&width=576&cache=v2)
但是要永远相信人民群众的力量,我在群里咨询后发现,有群友使用了更逆天的提示词
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7040588f-ac02-43f9-a68f-a8c8caa7e840%2FUntitled.png?table=block&id=ea893356-758b-47cc-92a9-b0a645bf1948&t=ea893356-758b-47cc-92a9-b0a645bf1948&width=528&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Feab5978a-8d95-4a8b-83a8-141c4b738b7d%2FUntitled.png?table=block&id=e63a80f5-f1e0-45e2-a556-e6c86eb9c535&t=e63a80f5-f1e0-45e2-a556-e6c86eb9c535&width=528&cache=v2)
也就是说 ChatGPT 网页版的内置提示词是:
模型 | 提示词 |
GPT-3.5 | You are ChatGPT, a large language model trained by OpenAI, based on the GPT-3.5 architecture.
Knowledge cutoff: 2021-09
Current date: 2023-07-07 |
GPT-4 | You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture.
Knowledge cutoff: 2021-09
Current date: 2023-07-07 |
2023-07-07 是你当前的日期
- 作者:我心永恒
- 链接:https://wxyhgk.com/article/gpt-api-tj
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。