There are many frameworks that can help with creating and structuring effective prompts. Some of them are mentioned below. You can "play" with several of them, and see which one works best for you.
The CLEAR framework is a framework to optimize prompts given to generative AI tools. To follow the CLEAR framework, prompts must be:
This information comes from the following article. It is highly encouraged to read through this article if you would like to improve your prompt writing.
Lo, L.S. (2023). The CLEAR path: A framework for enhancing information literacy through prompt engineering. The Journal of Academic Librarianship, 49(4), 102720. https://doi.org/10.1016/j.acalib.2023.102720
Instruction: Including explicit instructions for the desired behavior, such as: ask the model to think step by step, to rephrase an idea, to summarize an idea, to synthesize two or more ideas. If you are able to, include context as well.
Context: Providing context to the generative AI will help it understand it's task. Explaining your role, the AI's role, the expected outcomes, or why you are asking for this completed task will help with a better outcome. For example:
Instruction and context work well when used together. Prompting generative AI to give you the best output takes trial and error, so reword your prompt a few ways to see what generates the best response.
Explain & Check: Explain your topic or query and check the generative AI understands.
Clarifying Questions: Have the generative AI ask questions to clarify what output you want.
Tone and Direction: Guide the generative AI for their output to be in a particular direction, style, tone or format.
Provide Examples: Provide an example that you have already created or have found, such as: demonstrations of the output needed, a set of keywords, or a reference text.
Act as Expert: Have the generative AI teach you about the topic you are interested in.
Other tips:
RTF (Request-Task-Format) Framework:
This framework simplifies AI interactions by breaking down prompts into three components: Request, Task, and Format. It ensures clarity and precision in communication, making it easier for the AI to understand and execute tasks.
For example, “Request: Generate a report, Task: Analyze sales data, Format: PDF.”
PROMPT Framework:
This framework focuses on Clarity, Precision, Efficiency, Personalization, and Structure. It aims to minimize misinterpretation, optimize response generation, and tailor outputs to specific contexts.
For example, “Clarity: Describe the destinations amenities, Precision: Include only key features, Efficiency: Keep it concise.”
SMART Framework:
The SMART framework stands for Specific, Measurable, Achievable, Relevant, and Time-bound. It helps create well-defined and actionable prompts by setting clear goals and criteria.
For example, “Specific: Increase guest satisfaction, Measurable: Achieve a 10% improvement, Achievable: Implement new training programs, Relevant: Focus on customer service, Time-bound: Within six months."
TREE Framework:
The TREE framework stands for Task, Reasoning, Examples, and Explanation. It guides the AI to perform tasks by providing reasoning, examples, and explanations.
For example, “Task: Recommend a restaurant, Reasoning: Based on guest preferences, Examples: Previous recommendations, Explanation: Why this restaurant is suitable.”
PEAR Framework:
The PEAR framework stands for Purpose, Expectations, Actions, and Results. It helps structure prompts by defining the purpose, setting expectations, outlining actions, and specifying desired results.
For example, “Purpose: Improve room service, Expectations: Faster response times, Actions: Implement new procedures, Results: Higher guest satisfaction.”