Prompt Engineering Framework examples

Understanding and using prompt engineering frameworks can greatly improve the quality and effectiveness of interactions with AI models like ChatGPT. These frameworks offer structured methods for crafting prompts, ensuring that the AI's responses are relevant, precise, and useful. Below are several examples of prompt engineering frameworks, each designed to help users clearly articulate their needs and achieve desired outcomes efficiently. A good tactic is to start with one of these and ask the model to pose additional questions to maximize the quality of results.

APE: Action, Purpose, Expectation

Action: Define the job or activity to be done Purpose: Discuss the intention or goal Expectation: State the desired outcome.

RACE: Role, Action, Context, Expectation

Role: Specify the role of ChatGPT Action: Detail what action is needed Context: Provide relevant details of the situation Expectation: Describe the expected outcome

ROSES: Role, Objective, Scenario, Expected Solution, Steps

Role: Specify ChatGPT's role Objective: State the goal or aim Scenario: Describe the situation Solution: Define the desired outcome Steps: Ask for actions needed to reach the solution

COAST: Context, Objective, Actions, Scenario, Task

Context: Set the stage for the conversation Objective: Describe the goal Actions: Explain the actions needed Scenario: Describe the scenario Task: Describe the task

RISE: Role, Input, Steps, Expectation

Role: Specify the role of ChatGPT Input: Describe the information or resources Steps: Ask for detailed steps Expectation: Describe the desired result

TRACE: Task, Request, Action, Context, Example

Task: Define the specific task Request: Describe what you are asking for Action: State the action you need Context: Provide the context or situation Example: Give an example to illustrate your point

ERA: Expectation, Role, Action

Expectation: Describe the desired result Role: Specify the role of ChatGPT Action: Specify what actions need to be taken

CARE: Context, Action, Result, Example

Context: Set the stage or context for the discussion Action: Describe what you want to be done Result: Describe the desired outcome Example: Give an example to illustrate your point