ChatGPT调教指南 | 咒语指南 | Prompts提示词教程(二)


在我们开始探索人工智能的世界时,了解如何与之有效沉浸交流是至关重要的。想象一下,你手中有一把钥匙,可以解锁与OpenAI的GPT模型沟通的无限可能。这把钥匙就是——正确的提示词(prompts)。无论你是AI领域的新手,还是希望优化与大型语言模型交流的老手,掌握如何精确使用提示词,将直接影响你从这项技术中获得的价值。

优化交流的秘诀:Prompts提示原则

要与GPTs等大型语言模型有效交流,关键在于使用精心设计的提示词。提示词不仅是命令,它们是与AI对话的起点,能够引导对话的方向和深度。正确的提示词能够显著提升获取信息的准确性和效率,无论是提出问题、生成文本,还是执行复杂的任务。通过实践和探索,我们可以发现一系列优化交流的技巧,让AI更好地理解我们的意图,并提供我们所需的答案。

# English Chinese
13 Add “Ensure that your answer is unbiased and avoids relying on stereotypes.” This encourages the model to ask questions until it has enough information to provide the needed output. 添加“确保你的回答是无偏见的,避免依赖刻板印象。”这鼓励模型提问,直到它有足够的信息提供所需的输出。
14 For inquiring about a specific topic or idea, use: “Teach me any [theorem/topic/rule name] and include a test at the end. Let me know if my answers are correct after I respond, without providing the answers beforehand.” 为了询问具体的话题或想法,使用:“教我任何[定理/话题/规则名称],并在最后包括一个测试。在我回答之后让我知道我的答案是否正确,而不是事先提供答案。”
15 Assign roles to the large language models for structured interaction. 为大型语言模型分配角色,以进行结构化互动。
16 Use delimiters for clarity in prompts. 使用分隔符来清晰地提示。
17 Repeat a specific word or phrase multiple times within a prompt for emphasis. 在一个提示中多次重复一个特定的词或短语以强调。
18 Combine Chain-of-thought (CoT) with few-shot prompts for complex problem solving. 将思维链(CoT)与少数示例提示结合起来,以解决复杂问题。
19 Use output primers by concluding your prompt with the beginning of the desired output to guide the response direction. 使用输出引导语,通过以期望输出的开头结束你的提示,以指导响应方向。
20 For detailed writing tasks like essays or paragraphs, use: “Write a detailed [essay/text/paragraph] on [topic] by adding all necessary information." 对于详细的写作任务,如论文或段落,使用:“通过添加所有必要信息,写一篇关于[话题]的详细[文章/文本/段落]。”
21 To correct or change specific text without altering its style: “Revise paragraphs to improve grammar and vocabulary while maintaining the original writing style.” 要更正或更改特定文本而不改变其风格:“修改段落以改进语法和词汇,同时保持原始写作风格。”
22 For complex coding tasks across multiple files: “Generate a [programming language] script that creates specified files or modifies existing ones to insert the generated code.” 对于跨多个文件的复杂编码任务:“生成一个[编程语言]脚本,创建指定的文件或修改现有的文件以插入生成的代码。”
23 To continue or initiate text using specific words or phrases, use: “I’m providing the beginning [lyrics/story/paragraph/essay]: [Insert text]. Finish it based on the provided words, keeping the flow consistent.” 要使用特定的单词或短语继续或开始文本,使用:“我提供开始[歌词/故事/段落/论文]:[插入文本]。根据提供的词完成它,保持流畅一致。”
24 Clearly state the model’s content production requirements using keywords, regulations, hints, or instructions. 使用关键词、规则、提示或指令清楚地说明模型的内容生成要求。
25 To write text similar to a provided sample, instruct: “Use the same language based on the provided paragraph/title/text/essay/answer.” 要写出与提供的样本相似的文本,指示:“根据

结尾

随着人工智能技术的快速发展,学会与之高效交流变得尤为重要。通过使用合适的提示词,我们不仅能够提升与AI的交互质量,还能更深入地挖掘这些先进工具的潜力。记住,每次与AI的互动都是一次学习的机会,不断实验和调整,你将发现更多的可能性。随着我们的技能提升,我们能够更加自信地探索人工智能的边界,解锁新的创造力和效率。最重要的是,不要害怕试错。每次与AI的对话都是一个学习的机会。随着时间的推移,你会发现自己越来越擅长这种交流方式。

切记:长期实践调试经验、遇到具体场景思考提示词解决方案、学习别人优秀范例。

你可能感兴趣的:(chatgpt,prompt,chatgpt,prompts,提示词工程,gpt4,aigc,人工智能,深度学习)