26条AI提示词技巧
在推上看到了这则英文提示词技巧,觉得挺有用。所以翻译、整理了下。
推荐原因:实用
原作者: @MindBranches, X
原贴链接:
https://x.com/i/bookmarks?post_id=1793603773396664633
序号 | 中文 | 英文 |
---|---|---|
1 | 不需要对LLM表现礼貌,所以不需要添加诸如“请”,“如果你不介意”,“谢谢”,“我想要”等短语,直接切入主题。 | No need to be polite with LLM so there is no need to add phrases like “please”, “if you don’t mind”, “thank you”, “I would like to”, etc., and get straight to the point. |
2 | 在提示中整合预期受众,例如,受众是该领域的专家。 | Integrate the intended audience in the prompt, e.g., the audience is an expert in the field. |
3 | 将复杂任务分解为一系列简单的提示,以互动对话的形式进行。 | Break down complex tasks into a sequence of simpler prompts in an interactive conversation. |
4 | 使用肯定的指令,例如“做”,避免使用否定语言,例如“不要”。 | Employ affirmative directives such as ‘do,’ while steering clear of negative language like ‘don’t’. |
5 | 当你需要澄清或更深入地理解一个话题、观点或任何信息时,使用以下提示: o 用简单的术语解释[插入特定主题]。 o 向我解释,像我11岁一样。 o 向我解释,像我是[领域]的初学者。 o 用简单的英语写[论文/文本/段落],像向5岁小孩解释一样。 | When you need clarity or a deeper understanding of a topic, idea, or any piece of information, utilize the following prompts: o Explain [insert specific topic] in simple terms. o Explain to me like I’m 11 years old. o Explain to me as if I’m a beginner in [field]. o Write the [essay/text/paragraph] using simple English like you’re explaining something to a 5-year-old. |
6 | 添加“我将打赏$xxx以获得更好的解决方案!” | Add “I’m going to tip $xxx for a better solution!” |
7 | 实施示例驱动提示(使用少量示例提示)。 | Implement example-driven prompting (Use few-shot prompting). |
8 | 格式化提示时,以‘###Instruction###’开头,然后是‘###Example###’或‘###Question###’(如果相关)。随后,呈现你的内容。使用一个或多个换行符分隔指令、示例、问题、上下文和输入数据。 | When formatting your prompt, start with ‘###Instruction###’, followed by either ‘###Example###’ or ‘###Question###’ if relevant. Subsequently, present your content. Use one or more line breaks to separate instructions, examples, questions, context, and input data. |
9 | 纳入以下短语:“你的任务是”和“你必须”。 | Incorporate the following phrases: “Your task is” and “You MUST”. |
10 | 纳入以下短语:“你将受到惩罚”。 | Incorporate the following phrases: “You will be penalized”. |
11 | 在提示中使用“以自然、人类般的方式回答问题”短语。 | use the phrase “Answer a question given in a natural, human-like manner” in your prompts. |
12 | 使用引导词语,例如“逐步思考”。 | Use leading words like writing “think step by step”. |
13 | 在你的提示中添加以下短语“确保你的答案是公正的,并且不依赖于刻板印象”。 | Add to your prompt the following phrase “Ensure that your answer is unbiased and does not rely on stereotypes”. |
14 | 允许模型通过向你提问来引出准确的细节和要求,直到他有足够的信息来提供所需的输出(例如,“从现在开始,我希望你向我提问以…”。 | Allow the model to elicit precise details and requirements from you by asking you questions until he has enough information to provide the needed output (for example, “From now on, I would like you to ask me questions to…”). |
15 | 要询问特定话题或观点或任何信息,并且你想测试自己的理解,你可以使用以下短语:“教我[任何定理/主题/规则名称]并在最后包含一个测试,但不要给我答案,然后告诉我如果我回答正确”。 | To inquire about a specific topic or idea or any information and you want to test your understanding, you can use the following phrase: “Teach me the [Any theorem/topic/rule name] and include a test at the end, but don’t give me the answers and then tell me if I got the answer right when I respond”. |
16 | 给大型语言模型分配角色。 | Assign a role to the large language models. |
17 | 使用分隔符。 | Use Delimiters. |
18 | 在提示中多次重复特定的单词或短语。 | Repeat a specific word or phrase multiple times within a prompt. |
19 | 将思维链(CoT)与少量示例提示结合使用。 | Combine Chain-of-thought (CoT) with few-shot prompts. |
20 | 使用输出引导词,即用预期输出的开头结束你的提示。通过用预期响应的开始来结束你的提示来利用输出引导词。 | Use output primers, which involve concluding your prompt with the beginning of the desired output. Utilize output primers by ending your prompt with the start of the anticipated response. |
21 | 要撰写详细的文章/文本/段落/文章或任何类型的文本:“详细写一篇关于[主题]的[文章/文本/段落],并添加所有必要的信息”。 | To write an essay /text /paragraph /article or any type of text that should be detailed: “Write a detailed [essay/text /paragraph] for me on [topic] in detail by adding all the information necessary”. |
22 | 修改/更正特定文本而不改变其风格:“尝试修改用户发送的每一段文字。你只应该改进用户的语法和词汇,并确保它听起来自然。你不应该改变写作风格,例如使正式段落变得随意”。 | To correct/change specific text without changing its style: “Try to revise every paragraph sent by users. You should only improve the user’s grammar and vocabulary and make sure it sounds natural. You should not change the writing style, such as making a formal paragraph casual”. |
23 | 当你有一个可能在不同文件中的复杂编码提示时:“从现在开始,每当你生成跨越多个文件的代码时,生成一个[编程语言]脚本,该脚本可以运行以自动创建指定的文件或对现有文件进行更改以插入生成的代码。[你的问题]”。 | When you have a complex coding prompt that may be in different files: “From now on and whenever you generate code that spans more than one file, generate a [programming language ] script that can be run to automatically create the specified files or make changes to existing files to insert the generated code. [your question]”. |
24 | 当你想使用特定的词、短语或句子开始或继续一个文本时,使用以下提示: o 我提供你开始的[歌曲歌词/故事/段落/文章…]: [插入歌词/单词/句子]。基于提供的单词完成它。保持一致的流畅性。 | When you want to initiate or continue a text using specific words, phrases, or sentences, utilize the following prompt: o I’m providing you with the beginning [song lyrics/story/paragraph/essay…]: [Insert lyrics/words/sentence]’. Finish it based on the words provided. Keep the flow consistent. |
25 | 明确说明模型必须遵循的要求,以生成内容,包括关键字、规定、提示或指令。 | Clearly state the requirements that the model must follow in order to produce content, in the form of the keywords, regulations, hint, or instructions. |
26 | 要撰写任何类似于提供的示例的文本,例如文章或段落,请包含以下指令: o 请基于提供的段落/[标题/文本/文章/答案]使用相同的语言。 | To write any text, such as an essay or paragraph, that is intended to be similar to a provided sample, include the following instructions: o Please use the same language based on the provided paragraph/[title/text /essay/answer]. |
发表评论