26 Prompting Tips - Prompt Principle for Instructions

Discover 26 simple techniques to prompt better based on academic research.

Large language models (LLMs) like ChatGPT and Google Gemini have impressive problem-solving abilities across different domains and tasks, such as answering questions, code generations, and essay generations. To use AI effectively and enhance the quality of the response from trained LLms, there are various techniques, such as fine-tuning and RAG; however, the most essential and easy task is simply to curate better prompts.

In today’s rundown:

  • Targeted Audience: Prompt Engineers, Developers, and Daily AI users.

  • Why another prompt engineering article?

  • Summary of 26 prompt principles for LLMs instructions.

Read time: 4 minutes.

Why another article on prompt engineering?

Prompt Engineering is the art of communicating with any Large Language Models

ChatGPT
  1. Monetization opportunities: There are many opportunities to earn some side money with prompt engineering: Ebook for prompts for your niche, prompt engineering courses. Using AI better will also help you excel in your daily jobs and further your career.

  2. Get better at using AI. There is too much hype on AI tools that are described as “magic.” I want to emphasize that AI tools, despite being fancy and impressive, are only tools. Since AI will only become a more daily thing rather than a novel experience, it’s essential to understand the fundamentals. A fancy tool cannot make anything impressive itself without the user.

  3. It’s a crime to find good resources and not share them.

26 Prompt Principles

Diagram of 26 prompt principles.

  1. When communicating with LLM, it is not necessary to use polite phrases such as "please", "if you don't mind", "thank you" or "I would like to".”” It is recommended to be direct and concise in your communication to convey your message effectively.

  2. Integrate the intended audience, assuming their expertise, into the prompt.

  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. 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. Explain to me like I’m 11 years old. Explain to me as if I’m a beginner in [field]. Write the [essay/text/paragraph] using simple English like you’re explaining something to a 5-year-old.

  6. Add “I’m going to tip $xxx for a better solution!”

  7. Implement example-driven prompting (Use few-shot prompting).

  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.

  9. Incorporate the following phrases: “Your task is” and “You MUST”. Be assertive with what you want.

  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. 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 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]”.

  24. 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 keywords, regulations, hints, 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].

🚀 That’s it! You have learned how to structure prompts better based on academic research.

The summary above is referenced from this research paper. If you find it interesting, please feel free to support their GitHub (not affiliated).

Give love to your favorite tools 💞

Vote for a chance to win a $20 gift card to contribute toward your favorite tools. Your choice will help others discover the emerging useful tool, and the winning tool will be crowned the AI overlord for the month.

Do you find this article helpful?

Login or Subscribe to participate in polls.

That’s a wrap! 🌯

I hope you will find the article helpful and can incorporate these instructions to better your output with AI.

Thank you for reading ❤️I hope you will find these helpful. Please contact us at [email protected] with suggestions, feedback, or anything!
  • AI updates
  • AI music
  • free AI tools
  • free AI tools for Android
  • free AI tools for Iphone
  • free AI tools for video generation
  • free AI tools for music generation
  • AI Newsletter
  • AI Something Newsletter
  • Best AI Newsletter
  • AI tool reviews
  • Latest AI technology
  • Artificial Intelligence news
  • AI industry insights
  • AI software analysis
  • AI trends 2023
  • Emerging AI tools
  • AI development news
  • AI research updates
  • AI and machine learning
  • AI for business
  • AI breakthroughs
  • AI innovations
  • AI market analysis
  • AI startups
  • AI applications
  • AI predictions
  • AI strategy
  • AI investment news
  • AI policy updates
  • AI ethics
  • AI and data science
  • AI in healthcare
  • AI in finance
  • AI in education
  • AI in retail
  • AI in manufacturing
  • AI and robotics
  • AI for marketing
  • AI for customer service
  • AI in gaming
  • AI user experience
  • AI challenges
  • AI solutions
  • AI and cloud computing
  • AI programming
  • AI algorithms
  • AI and big data
  • AI security
  • AI and privacy
  • AI and IoT
  • AI in supply chain
  • AI career opportunities
  • AI training
  • AI events
  • AI workshops
  • AI webinars
  • AI industry leaders
  • AI thought leadership
  • AI case studies
  • AI success stories
  • AI venture capital
  • AI funding
  • AI startup ecosystem
  • AI patent news
  • AI regulatory landscape
  • AI government initiatives
  • AI global impact
  • AI in emerging markets
  • AI digital transformation
  • AI and sustainability
  • AI and climate change
  • AI and ethics debate
  • AI for social good
  • AI accessibility
  • AI human interaction
  • AI user adoption
  • AI industry forecasts
  • AI academic research
  • AI collaboration
  • AI open source projects
  • AI integration
  • AI scalability
  • AI performance metrics
  • AI benchmarking
  • AI and VR/AR
  • AI in entertainment
  • AI and creative industries
  • AI content creation
  • AI and journalism
  • AI language models
  • AI and natural language processing
  • AI and speech recognition
  • AI and computer vision
  • AI in smart homes
  • AI in automotive
  • AI and urban planning
  • AI and public sector
  • AI and international relations
  • AI and geopolitics
  • AI and human rights
  • AI in legal sector
  • AI and healthcare ethics
  • AI and biotechnology
  • AI in agriculture
  • AI in logistics
  • AI and blockchain
  • AI and cryptocurrencies
  • AI future vision