Jump to content

26 Principles of Good Prompts: Difference between revisions

no edit summary
(Created page with "<pre> I can't provide a direct download link or allow downloading of files, but I can certainly assist you by sharing the content of the "26_Principles_of_Good_Prompt.txt" file. Here's the text from that file: --- 26 Principles of Good Prompt: 1. 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...")
 
No edit summary
Line 1: Line 1:
<pre>
{| class="wikitable"
I can't provide a direct download link or allow downloading of files, but I can certainly assist you by sharing the content of the "26_Principles_of_Good_Prompt.txt" file. Here's the text from that file:
! #
 
! Prompt Principle for Instructions
---
|-
 
| 1
26 Principles of Good Prompt:
| 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.
 
|-
1. 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.
2. Integrate the intended audience in the prompt e.g. the audience is an expert in the field.
|-
 
| 3
3. Break down complex tasks into a sequence of simpler prompts in an interactive conversation.
| 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’.
| 4
 
| Employ affirmative directives such as 'do', while steering clear of negative language like 'don’t'.
5. When you need clarity or a deeper understanding of a topic idea or any piece of information utilize the following prompts:
|-
  - Explain [insert specific topic] in simple terms.
| 5
  - Explain to me like I’m 11 years old.
| When you need clarity or a deeper understanding of a topic, idea, or any piece of information, utilize the following prompts:
  - Explain to me as if I’m a beginner in [field].
* Explain [insert specific topic] in simple terms.
  - Write the [essay/text/paragraph] using simple English like you’re explaining something to a 5-year-old.
* Explain to me like I'm 11 years old.
 
* Explain to me as if I’m a beginner in [field].
6. Add “I’m going to tip $xxx for a better solution!
* Write the [essay/text/paragraph] using simple English like you're explaining something to a 5-year-old.
 
|-
7. Implement example-driven prompting (Use few-shot prompting).
| 6
 
| Add "I'm going to tip $[xxx] for a better solution!"
8. 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.
|-
 
| 7
9. Incorporate the following phrases: “Your task is” and “You MUST”.
| Implement example-driven prompting (Use few-shot prompting).
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.
| 8
12. Use leading words like writing “think step by step”.
| When formatting your prompt, start with "#[Instruction/feature]", 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.
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...”).
| 9
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”.
| Incorporate the following phrases: "Your task is" and "You MUST".
16. Assign a role to the large language models.
|-
17. Use Delimiters.
| 10
18. Repeat a specific word or phrase multiple times within a prompt.
| Incorporate the following phrases: “You will be penalized”.
19. 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.
| 11
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”.
| Use the phrase "Answer a question given in a natural, human-like manner" in your prompts.
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 and on 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].
| 12
 
| Use leading words like writing "think step by step".
24. When you want to initiate or continue a text using specific words phrases or sentences utilize the following prompt:
|-
    - 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.
| 13
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
| Add to your prompt the following phrase “Ensure that your answer is unbiased and does not rely on stereotypes".
26. To write any text such as an essay or paragraph that is intended to be similar to a provided sample include the following instructions:
|-
    - Please use the same language based on the provided paragraph[/title/text /essay/answer].
| 14
</pre>
| 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
| Using a role to the large language models.
|-
| 17
| Use Delimiters.
|-
| 18
| Repeat a specific word or phrase multiple times within a prompt.
|-
| 19
| 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
| When you want to initiate or continue a text using specific words, phrases, or sentences, utilize the following prompt: "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 a valid sample, include the in the form of the keywords, regulations, hint, or instructions
|-
| 26
| To write any text, such as an essay or paragraph, that is intended to be similar to a provided sample, include the following instructions: "Please use the same language based on the provided paragraph/title/text /essay/answer].
|-
|}
1,065

edits