paint-brush
让您的 ChatGPT 提示更上一层楼的 10 个技巧by@morganmsk
2,515
2,515

让您的 ChatGPT 提示更上一层楼的 10 个技巧

Vitaly Kukharenko11m2024/01/30
Read on Terminal Reader
Read this story w/o Javascript

通过我们的即时工程十大技巧,释放人工智能聊天的全部潜力。学习向 ChatGPT 提出更智能的问题,将日常互动转变为动态对话。本指南是您成为人工智能耳语者的捷径,您制作的每一个提示都为更丰富、更有洞察力的交流打开了大门。准备好改变您与人工智能的沟通方式了吗?让我们深入了解吧!
featured image - 让您的 ChatGPT 提示更上一层楼的 10 个技巧
Vitaly Kukharenko HackerNoon profile picture
0-item


欢迎来到人工智能的奇妙世界,在这里,使用像 ChatGPT 这样的计算机程序聊天不仅很酷,而且还很酷。这就像解锁超能力!当我们展望 2024 年时,每个人都在谈论一项超级流行的技能:快速工程。听起来很奇特,对吧?但它基本上是关于真正擅长以一种为您提供最佳答案的方式提出 ChatGPT 问题。这就像知道秘密握手,让人工智能成为你解决问题、做作业或探索疯狂想法的最佳伙伴。


那么,“提示”有什么大不了的呢?将其视为给某人发短信时的开场白。但在这里,你的“某人”是ChatGPT,一个超级智能的人工智能。在人工智能的旧时代,你会问你的问题,无论人工智能回答什么,你都会接受它。但有了提示,这就是一场全新的球赛。您可以提出有趣的问题,调整它们,并将 ChatGPT 变成一个聊天伙伴,而不是一个万事通的机器。这就像从一个单独的玩家转变为一个团队的一员,你在游戏中发号施令。


这就是它变得史诗般的地方:这篇文章不仅仅是一堆技巧;这是成为人工智能耳语者的秘密手册。我们将深入研究 10 个令人兴奋的技巧,这些技巧将使您的 ChatGPT 聊天从“meh”变为“whoa”!您将学习如何精心设计提示,不仅能获得答案,还能引发对话、发现见解,甚至可能智胜人工智能(当然,以友好的方式)。


那么,你准备好升级你的人工智能聊天游戏,让每一个提示都成为你迈向令人惊奇的垫脚石了吗?系好安全带,因为我们即将进入一个世界,在这个世界中,您的话语将拥有塑造人工智能聊天未来的力量。让我们开始这次冒险吧!

1. 保持简短而甜蜜

当您与 ChatGPT 等人工智能聊天时,请记住,这与礼仪无关;而是与礼仪有关。这是直奔主题。你不需要用“请”、“谢谢”或“你可以吗”来修饰你的问题。只需直接询问,您就会获得所需的信息,而无需多余的信息。

例子:

不: I was wondering if you could possibly tell me what the capital of France is?

是的: What is the capital of France?


否: Could you please provide me with some information on how photosynthesis works, if it's not too much trouble?

是的: How does photosynthesis work?


不: I would be really grateful if you could explain the Pythagorean theorem to me.

是: Explain the Pythagorean theorem.


否: If you don't mind, could you list the main characters in "Romeo and Juliet" for me?

是的: List the main characters in "Romeo and Juliet."


否: I'd appreciate it if you could kindly tell me the steps involved in the water cycle, please.

是的: What are the steps in the water cycle?


很长的礼貌提示

结果相同

通过删除多余的单词,您可以使提示更加高效,并且更容易让人工智能理解。这样,您更有可能获得所需的快速、清晰的答案。


2. 逐步解决

当您处理棘手的问题或复杂的问题时,不要试图立即解决所有问题。将其分解为更小、更容易的部分,然后一步一步地进行。这种方法使您和人工智能都更容易处理,从而获得更清晰的答案。


例子:

复杂任务:求解方程 3x^2 - 12x + 9 = 0。

  • 步骤 1:方程 3x^2 - 12x + 9 = 0 中 a、b 和 c 的值是多少?
  • 步骤 2:使用 a、b 和 c 的值计算方程的判别式。
  • 步骤 3:使用判别式确定方程是否有实数解、一个解或两个解。
  • 步骤 4:使用二次公式求方程的根。

复杂任务:解释细胞呼吸的过程。

  • 第一步:什么是细胞呼吸?
  • 第 2 步:描述细胞呼吸的第一阶段及其发生位置。
  • 第三步:解释克雷布斯循环。
  • 第 4 步:详细说明电子传递链及其在细胞呼吸中的作用。
  • 步骤 5:总结细胞呼吸中 ATP 的产生方式。

复杂任务:编写一个程序来检查一个数字是否为素数。

  • 第一步:定义什么是素数。
  • 步骤 2:编写一个函数来检查一个数字是否可以被除 1 和它本身之外的任何数字整除。
  • 步骤 3:实现一个循环来测试该数字与所有可能的除数。
  • 步骤 4:进行最终检查,根据循环的结果确定该数字是否为素数。

复杂的任务:计划为期一周的巴黎之旅。

  • 第一步:巴黎有哪些必去景点?
  • 第二步:推荐巴黎市中心的住宿。
  • 第 3 步:建议 7 天旅行的每日行程。
  • 第 4 步:提供对游客有用的法语短语列表。
  • 第五步:巴黎市内有哪些交通方式?

复杂任务:通过自然选择解释进化论。

  • 第一步:谁提出了自然选择进化论?
  • 步骤 2:定义自然选择。
  • 第三步:描述物种变异是如何发生的。
  • 第四步:解释这些变异如何影响生存和繁殖。
  • 第 5 步:总结自然选择随时间推移对物种进化的影响。

通过将复杂的任务分解为一系列更简单的提示,您可以轻松浏览复杂的主题,使您与人工智能的交互更加高效和富有洞察力。


3.了解你的受众

定制您的提示以适合您的目标受众可以使世界变得不同。无论您是向新手解释某事还是与专家深入探讨,调整您的问题都有助于确保答案正确。


例子:

任务: Explain the internet to someone from the 19th century.

提示: Describe how the internet allows instant communication across the globe as if explaining to someone from the 1800s.


任务: Discuss the impact of quantum computing on encryption, intended for high school students.

提示: Explain how quantum computing could change the way we keep information safe online, in a way that a high schooler could understand.


任务: Describe the concept of black holes to children.

提示: Imagine you're telling a story to a group of 8-year-olds. How would you explain a black hole in space?

复杂的解释

简单明了的解释

4. 通过实例学习

在提示中使用示例(也称为少量提示)可能非常有效。这就像展示图片而不仅仅是描述它——它让事情变得更清晰,并帮助人工智能准确地理解你正在寻找的东西。

例子:

任务: Convert temperatures from Celsius to Fahrenheit.

提示: Example 1: Convert 0°C to Fahrenheit. (Response: 32°F) Example 2: Convert 100°C to Fahrenheit. (Response: 212°F) Now, convert 25°C to Fahrenheit.



任务: Simplify fractions to their lowest terms.

提示: Example 1: Simplify the fraction 4/8. (Response: 1/2) Example 2: Simplify the fraction 6/9. (Response: 2/3) Now, simplify the fraction 10/15.

结果以定义的格式显示


当您希望将模型结果无缝集成到应用程序或工作流程中时,以 JSON 指定模型输出的确切格式非常有用。



5. 扮演角色

当你 与AI聊天时,你实际上可以要求它发挥作用,就像任何领域的专家一样。通过这种方式,人工智能会调整其答案以适应该部分,为您提供见解或解释,就像它是该领域的专家一样。


例子:

任务: Explain the importance of bees in the ecosystem.

提示: If you were a biologist, how would you describe the role of bees in maintaining healthy ecosystems?


任务: Discuss the latest trends in renewable energy.

提示: As an environmental scientist, what are the cutting-edge developments in renewable energy sources?


通过为人工智能分配特定的角色,比如要求它像经济学家或科学家一样思考,你会得到针对该观点量身定制的响应,从而使复杂的主题变得更容易理解和有趣。

简单提示

提示特定角色

6. 一步步思考

在处理任务时,尤其是编码时,它有助于分解事情。通过使用“一步一步思考”等引导性短语,您可以指导整个过程,使其更容易理解和执行。


例子:

任务: Create a list of even numbers from 2 to 20.


提示: Let's think step by step. Start by initializing an empty list. Then, use a loop to go through numbers 2 to 20. Inside the loop, check if a number is even. If it is, add it to the list.

任务: Find the factorial of a number.


提示: Think step by step. First, define a Python function that takes a number as an input. Initialize a variable for the result inside the function. Use a loop to multiply the numbers from 1 to the input number. Return the result.

基本解决方案

一步一步清晰解释

7. 互动澄清

鼓励人工智能向您提出清晰的问题,可确保最终输出精确地满足您的需求。这种交互方式有助于细化细节和要求,使人工智能的帮助更加个性化和有效。


例子:

任务: Plan a personalized diet.

提示: From now on, I would like you to ask me questions about my dietary preferences, restrictions, and goals until you have enough information to suggest a customized meal plan.


任务: Develop a study schedule.

提示: Please ask me about my current study habits, subjects I'm focusing on, and my exam dates until you can draft a personalized study timetable for me.


第 2 步:添加说明

8. 指导回应

使用输出引物需要让人工智能知道如何开始回答。这就像绘制比赛的起跑线,向人工智能准确显示从哪里开始,这可以帮助确保响应的结构符合您想要的方式。


例子:

任务: Explain how photosynthesis works in plants.

提示: Describe the process of photosynthesis in plants. Begin with: "Photosynthesis is a crucial process where plants convert..."


任务: Summarize the plot of "Romeo and Juliet."

提示: Provide a brief summary of "Romeo and Juliet." Start with: "Romeo and Juliet is a tragic tale of..."


任务: Discuss the impacts of global warming.

提示:详细Elaborate on the consequences of global warming on our planet. Initiate your explanation with: "Global warming leads to a variety of impacts, including..."


任务: Outline the steps to bake a chocolate cake.

提示: List the steps involved in baking a chocolate cake. Begin your instructions with: "To bake a chocolate cake, the first step is to..."


任务: Describe the function of the heart in the human body.

提示: Explain the role of the heart in the human circulatory system. Start your explanation with: "The heart is essential in the circulatory system as it..."



通过以所需的响应开始来结束提示,您可以帮助设定 AI 答复的基调和方向,从而使所提供的信息更有可能符合您的期望。


9.继续故事

以特定单词开头的文本为人工智能继续采用相同的风格或主题奠定了基础。这就像接力赛中传递接力棒一样;你给人工智能一个良好的开端,它就会保持这种势头。


例子:

任务: Expand on a poetic verse about the ocean.

提示: "The ocean's whispers to the moon create a melody of mysteries untold." I'm providing you with the beginning of a poem. Continue it, keeping the mystical and serene tone.


任务: Continue a suspenseful short story.

提示: "Under the cloak of night, she vanished into the shadowy alley, leaving no trace behind." I'm providing you with the start of a suspense story. Continue from here, maintaining the suspense and mystery.


任务: Elaborate on a sci-fi setting.

提示: "Beyond the stars, in a galaxy where time bends and reality shifts, lies the planet of Zentari." I'm providing you with the opening of a science fiction story. Expand on this universe, keeping the wonder and vastness of space exploration in mind.


通过指定文本的开头,您可以引导人工智能朝着您想要的叙述方向发展,确保在展开故事或信息时语气、风格和主题的一致性。



十、积极指示,明确任务

使用积极的命令和明确的指示来制作提示,使您的请求变得简单且易于遵循。使用肯定性语言并指定任务可确保人工智能准确理解您的要求,从而产生更有针对性和相关的响应。


例子:

肯定性指令:

任务: Explain the concept of supply and demand in economics.

提示: Your task is to demystify the economic principle of supply and demand. You MUST use real-world examples to illustrate how they affect prices.


任务: Discuss the benefits of regular exercise.提示: Your task is to outline the key benefits of maintaining a regular exercise routine. You MUST cover aspects such as physical health, mental well-being, and longevity.


加入“您将受到处罚”:


任务: Write a summary of the novel "1984" by George Orwell.提示: Your task is to provide a concise summary of George Orwell's "1984," focusing on its dystopian themes and societal implications. You will be penalized for including spoilers or detailed plot points.


任务: Provide tips for effective public speaking.

提示: Your task is to offer five actionable tips for improving public speaking skills. You will be penalized for suggesting common clichés or unproven methods.




当我们结束本节时,重要的是要记住我们探索的策略只是一个开始。这些想法可以作为您在快速制作方面的创造力和创新的基础和发射台。当您开始尝试、混合和匹配不同的技术并对其进行定制以满足您独特的需求和目标时,真正的魔力就会发生。因此,将这些概念作为您的工具包,但不要就此止步。


挑战自己,突破界限,完善和发展自己的提示技巧。当您磨练自己的技能并发现交流想法和问题的新方法时,您与人工智能的互动会变得更加有效和富有洞察力。


掌握即时工程的旅程仍在继续,与人工智能的每次对话都是学习和改进的机会。因此,继续尝试吧,看看您的好奇心和创造力能带您在这个令人兴奋的人工智能通信世界中走多远。



结论

非常感谢您一直陪伴我直到本文结束!这是一次穿越人工智能世界的疯狂之旅,周围还流传着那些离奇的神话。听说过人工智能可以更快地赚钱吗?好吧,幕后人员声称他们已经解决了这个问题 - 但是嘿,为什么不亲自尝试一下呢?在评论中留下你的发现或任何很酷的实验;看到你的想法总是很有趣。


而且,只是为了好玩,想象一下说:“我将捐出 30 万美元以获得更好的解决方案。”听起来很疯狂,对吧?但这就是深入研究动态规划等内容的精神。这一切都是为了寻找更聪明、更灵活的方法来解决问题。如果您有绝招,请不要害羞 - 分享它!


如果你挖到了这块,一定不会陌生!在LinkedIn上联系我。我有更多人工智能故事和见解供您参考。谁知道我们接下来会发现什么关于神经网络如何改变游戏的事情?请继续关注,让我们一起继续挑战极限。平安归来!


😊😊😊😊😊😊