A research paper published by Mohamed Bin Zayed University of AI is making waves. The research paper outlines 26 principles to help people write effective questions and prompts for large language models like ChatGPT. I know a lot of people are not necessarily going to read the full 17 page research paper. For that reason, this article is meant to focus on the findings from the research and how that might help us craft better prompts and get better responses.
Prompt engineering is the discipline of crafting task-specific instructions for large language models (LLMs) like ChatGPT, in order to produce relevant high-quality outputs. This discipline was born out of the fact that tuning LLMs for specific tasks is highly technical for developers and impractical for the general public. Why tune a LLM when you can tune your prompt?
The problem is crafting the right instructions or prompt is often a mystery to regular users. The way you prompt has a significant impact on what kind of responses you get. The solution, after exploring various prompting strategies is the 26 prompt principles for instructions.
Then the paper categorized all 26 principles into 5 categories, which is helpful in the context of which principles are applicable to the task you’re trying to accomplish.
The paper has found that when using these principles, AI models have produced better responses. They have found that the principles are more effective when utilizing larger language models like ChatGPT 3.5/4. Specifically, they have found an improvement of more than 50% in ‘correctness’ a measure of accuracy when prompting using the principle versus a prompt without.
AI will continue to be more prevalent in the world. You know what they say, master AI before AI masters you. The best prompt engineers will have an edge over the ones that don’t understand how LLMs work. The 26 prompt principles is a great baseline to build your knowledge from and probably won’t be the last as the technology and discipline progresses. Highly encourage everyone to read the full research paper to get a deeper understanding of the research that was conducted and the comparative results from using principle vs no-principle.
As an added bonus, I found the 26 Principles Prompt Rewriter GPT that helps you rewrite your prompt based on these principles.