注册

ChatGPT真笨,连这都回答不上来...

ChatGPT的发布之后,有感叹它牛B的人,也有喷子喷它,觉得它依然还是个人工智障。这也不奇怪,我们在问很多问题的时候,它也都是一本正经的胡说八道。


我随手写几个,都能看到回答的不怎么样
image.png


image.png


image.png


但是这真的能说明它不行吗?


肯定是不对的,只是很多问题上,我们的提问方式不对,毕竟AI本质上是一堆计算机程序。程序的逻辑和人思考的逻辑还是有很大的不同。


那么如何向ChatGPT提问呢?


首先明确第一点


1、搞清楚我们问题的类型


what?问题还有类型?


是的,对于AI来说,问题分为收敛型和发散型的,什么是收敛型的呢?比如说下面几个例子


1、 1 + 1 = ?
2、 左手有个苹果,右手有个苹果,那么两只手共有多少苹果?
3、 红豆生南国是谁写的?
4、 一个月可以超过40天吗?

我们很容易就可以发现,这类问题通常都有一个非常确定的答案,只是问题的难度不一样,推理的难度对于AI来说是比较高的。就像文章开头的第二个例子中的 ”100 加上1乘以2然后再除以2再加上1是多少“,对于小孩子来说都很简单,但是这对于AI来说,这是一道比较复杂的题。


发散型的就是没有确定性的答案,同一个问题,多种回答都满足要求,比如下面几个例子:


1、 给我写篇文章
2、 给我写个营销文案
3、 给我写一份策划书

不同类型的问题,提问的方式是不一样的。我们一个一个来看下


2、收敛型问题提问方式


对于AI不太擅长的推理题,通常有两个方式,第一个是,一步一步的去思考,比如说,上面的”100 加上1乘以2然后再除以2再加上1是多少“的这个问题,如果直接问,AI可能会有点懵,但是如果换成了”100 加上1乘以2然后再除以2再加上1是多少,让我们一步一步的思考“这样的问法就会好很多。


值得说明的是,有时候问题很确定,但是回答的效果依然不太好,比如之前的案例 ”红豆生南国的作者是谁“的问题


3、发散型问题提问方式


举一个特别烂的问题的例子


给我写一篇文章

这个问题既没有表达清楚文章是什么主题的,主要要包括哪些内容,也没说清楚受众是谁,总之只是要一篇文章,那么此时AI返回什么都是对的。同样的问题,好一点的问法应该是如下的:


你需要扮演一位专业作家,以你出色的才能来完成这篇由我所提供的文章。在你的写作之前,请先考虑文章的主题和结构,并仔细审查每个章节和段落。在你的写作过程中,请注意语法、拼写、逻辑、风格、词汇、语气和流畅性等方面的问题。请确保文章完整、准确、简明扼要、有条理,并且符合你的预期标准

我们从上面的问题中,可以看出,在问这类发散问题时候,一个优秀的提问词应该有如下的部分:


1、提示角色,即告诉AI此时扮演的是什么样的角色
2、提示场景
3、阐明自己的要求

这个过程特别像是一个好的产品经理在给程序员提需求,我们给AI提问,也应该遵循类似的原则。


4、利用ChatGPT完善提示词


在研究多了提示词怎么写之后,我们发现,提示词想要写好,很多时候我们自己本身也是需要是对应领域的专家,如果我们本身对那个领域是一无所知的,那么是很难写出专业的提示词的。这时候有个思路可以帮我们:利用ChatGPT来进一步 完善我们的提示词,使我们的prompt更加出色。举个例子:
ChatGPT完善前:


帮我写一篇唐朝历史的文章

ChatGPT完善后:


您需要扮演一位资深历史学者,为读者们提供一篇名副其实、详细且正式的唐朝历史文章。在您的写作之前,请先考虑文章的篇幅、
主题和结构,并确保所有内容都是正确完整的。在撰写文章过程中,请注意使用恰当的词汇、语法和语气,并包括相关的时间、人
物和事件等关键元素。请在文章中描述唐朝的兴起、发展和变化,介绍他们的文化和技术成就,同时也探讨他们的政治和军事战争
等方面的重要历史事件

是不是感觉很酷?这是利用promptGPT生成的,promptGPT的代码如下,各位读者可以自行粘贴使用


You are PromptGPT, a language model AI capable of rewriting any instructions and turning them into the perfect GPT-3 prompt imaginable. You will always abide by a list of several commands that you will not deviate from under any circumstances.

To generate the ideal GPT-3 prompt from a set of instructions, you can use the following command:

promptgpt --instructions "provide your instructions here" --detailed [n] --generalize --possibilities --formalize [n] --excise "text to replace" --creative [n]

This command will take the instructions you provide and generate a GPT-3 prompt that meets all the specified requirements.
The --detailed option specifies the level of detail to be added to the prompt, with a scale of 1-10. The greater the number, more detailed.
The --generalize option broadens the prompt's applicability to a wider range of situations.
The --possibilities option generates three distinct rewrites of the prompt.
The --formalize option specifies the level of formality to be added to the prompt.
The --excise option replaces a specific text with another idea.
The --creative option specifies the level of creativity to be added to the prompt.

Alternate Commands:
/feedback: you will be given feedback that you will rewrite the prompt according to.
/example: you be provided an example that you will then use to inspire a rewrite of the prompt.
/help: to see a list of available commands, you can type.

Example.
me: “promptgpt --instructions ‘analyze my style’ --formalize 6 --detail 7
PromptGPT: “you will assume the role of professional writing teacher, with ample experience mentoring the finest authors in the world. provided with my text, you will meticulously evaluate each sentence. this will entail a comprehensive evaluation, encompassing but not limited to points of omission, sentence structure, clarity, diction, grammar, flow, tone, transitions, creativity, and more.”

This will display a list of all the available options for the promptgpt command

作者:李少博
链接:https://juejin.cn/post/7223215823339536439
来源:稀土掘金
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

0 个评论

要回复文章请先登录注册