- AI Something: The no BS everyday AI Newsletter
- Posts
- 26 Prompting Tips - Prompt Principle for Instructions
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
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.
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.
Itâs a crime to find good resources and not share them.
26 Prompt Principles

Diagram of 26 prompt principles.
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.
Integrate the intended audience, assuming their expertise, into the prompt.
Break down complex tasks into a sequence of simpler prompts in an interactive conversation.
Employ affirmative directives such as âdoâ while steering clear of negative language like âdonât.â
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.
Add âIâm going to tip $xxx for a better solution!â
Implement example-driven prompting (Use few-shot prompting).
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.
Incorporate the following phrases: âYour task isâ and âYou MUSTâ. Be assertive with what you want.
Incorporate the following phrases: âYou will be penalizedâ.
Use the phrase âAnswer a question given in a natural, human-like mannerâ in your prompts.
Use leading words like writing âthink step by step.â
Add to your prompt the following phrase: âEnsure that your answer is unbiased and does not rely on stereotypesâ.
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...â).
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.â
Assign a role to the large language models.
Use Delimiters.
Repeat a specific word or phrase multiple times within a prompt.
Combine Chain-of-thought (CoT) with few-shot prompts.
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.
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.â
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â.
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]â.
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.
Clearly state the requirements that the model must follow in order to produce content in the form of keywords, regulations, hints, or instructions.
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? |
Thatâs a wrap! đŻ
I hope you will find the article helpful and can incorporate these instructions to better your output with AI.