Advanced Prompt Techniques
1. Role-Based Prompting
Section titled “1. Role-Based Prompting”Assign a specific role to the AI:
You are an experienced database architect specializing in e-commerce systems.Design a PostgreSQL schema for an online marketplace with...
2. Few-Shot Learning
Section titled “2. Few-Shot Learning”Provide examples of desired outputs:
Convert these requirements into user stories:
Example 1:Requirement: Users need to reset passwordsUser Story: As a registered user, I want to reset my password so that I can regain access to my account if I forget my credentials.
Example 2:Requirement: Admin dashboard shows sales metricsUser Story: As an administrator, I want to view key sales metrics on my dashboard so that I can quickly assess business performance.
Now convert this requirement:Requirement: Customers can save items for later purchase
3. Chain of Thought Prompting
Section titled “3. Chain of Thought Prompting”For complex reasoning tasks, encourage step-by-step thinking:
Solve this optimization problem for a delivery route with 5 stops.Think through each step of your approach:1. First, identify the constraints...2. Next, consider the possible routes...3. Then, calculate the efficiency of each...