Advanced Prompt Engineering Techniques PDF
Document Details

Uploaded by PeacefulTan244
Upper Coastal Plain Council of Governments
Tags
Summary
This document outlines advanced prompt engineering techniques, including multi-turn conversations, real-world scenarios such as procurement, public engagement, and human resources tasks; adaptive prompts for complex governance challenges; and refining prompts to improve precision, relevance, and quality. It also discusses the use of ChatGPT for contracts, HR, and public communication, and the importance of continuous iteration to enhance accuracy, clarity, and relevance.
Full Transcript
ADVANCED PROMPT ENGINEERING TECHNIQUES Week Three MEETING AGENDA 1 Prompt Structures 2 Multi-Step Techniques 3 Use Cases in Local Govt 4 Live Exercise 5 Q & A | Wrap Up WEEK 3 Master advanced prompting techniques for multi-turn c...
ADVANCED PROMPT ENGINEERING TECHNIQUES Week Three MEETING AGENDA 1 Prompt Structures 2 Multi-Step Techniques 3 Use Cases in Local Govt 4 Live Exercise 5 Q & A | Wrap Up WEEK 3 Master advanced prompting techniques for multi-turn conversations and iterative refinements. LEARNING Explore real-world scenarios such as procurement, public engagement, and HR OBJECTIVES tasks. Practice creating adaptive prompts to handle complex governance challenges. Refine prompts to improve precision, relevance, and quality. WHY ADVANCED PROMPTING IS ESSENTIAL MOVE BEYOND BASICS: VERSATILITY Address multi-layered tasks with clarity Use ChatGPT as a dynamic tool for and focus. complex governance needs based on the document type. REAL-WORLD CHALLENGES: MULTI-STEP INSTRUCTIONS Handle nuanced scenarios, including Simple prompts will not work for legal drafting, budget analysis, and situations that require multiple steps public outreach. to get to the end result. QUESTION AND ANSWER TECHNIQUE ADVANCED Use context-rich questions to elicit comprehensive QUESTION- insights. ANSWER TECHNIQUES USE CASE Break down complex queries, such as analyzing reports or summarizing public feedback. EXAMPLE QUESTION What are the top three challenges identified in the community feedback survey, and what solutions were proposed? ADVANCED QUESTION-ANSWER TECHNIQUES Use Case ADVANCED QUESTION-ANSWER TECHNIQUES CONT’D. Follow Up Question MULTI-TURN TECHNIQUE STRATEGY Use iterative prompts to refine complex responses. CONVERSATIONS USE CASE EXAMPLE – INITIAL STEPS Drafting a purchase contract for the town’s new fleet vehicle. STARTER PROMPT Draft a purchase contract template for the town’s acquisition of a new fleet vehicle MULTI-TURN CONVERSATION EXAMPLE MULTI-TURN CONVERSATION EXAMPLE CONT’D. Prompt: Include warranty details covering parts and labor for three years MULTI-TURN CONVERSATION EXAMPLE CONT’D. Prompt: Summarize key terms in plain language PERSONA PROMPT STRUCTURE DEFINITION: Assign ChatGPT a professional role to generate detailed responses. This is called a “Functional Persona.” EXAMPLE ROLES: Human Resources, Legal, Planners, etc. SAMPLE PROMPT: Act as a human resources director with 20 years of experience in preparing job descriptions that are compliance with U.S. Department of Labor regulations. Your task is to assist me in preparing a job description for a Town Clerk for _______city/county North Carolina. PERSONA PROMPT STRUCTURE A simple persona prompt gets you 80% of the way in 10 seconds! It can be more accurate if if had a previous job description to use as an example You can use your old description plus examples from other towns in order to do a quick job description update too! PERSONA PROMPT STRUCTURE Stakeholder Personas These personas represent individuals or groups with a vested interest in a specific outcome, such as executives, board members, or customers. Example Personas: ⚬ Executive: Focuses on high-level strategic insights, KPIs, and ROI. ⚬ Board Member: Concerned with governance, long-term impact, and organizational stability. ⚬ Customer: Interested in product value, ease of use, and service satisfaction. Sample Prompt: Simulate a customer and list five potential concerns they might have about adopting this product. PERSONA PROMPT STRUCTURE Audience Personas These personas are used to tailor outputs for different types of audiences, such as employees, partners, or customers. Example Personas: ⚬ Employee: Needs clear communication, actionable steps, and support. ⚬ Partner: Requires information on collaboration, shared goals, and mutual benefits. ⚬ Customer: Seeks value-driven insights and clear problem- solving. Sample Prompt: Tailor this product overview for partners, emphasizing collaboration opportunities. ADVANCED PROMPT FORMAT CHAIN OF THOUGHT CHAIN OF THOUGHT PROMPT DESCRIPTION A technique where prompts are designed to guide ChatGPT through a structured thought process, leading to detailed and logical responses. APPLICATION Lead off with a task or question for the GPT, break the task down into smaller parts, and conclude by asking it to “explain step by step”. EASTER EGG HUNT PRESS RELEASE CHAIN OF THOUGHT You are the Parks and Recreation Director for the City of Sunnyside. Your task is to write a press release announcing the city's upcoming Easter egg hunt event at the public park. When drafting the press release, be sure to: ⚬ Mention the event date, time, and location ⚬ Encourage parents to bring their kids to enjoy the fun ⚬ Describe some key details and activities planned for the event To make the announcement engaging: ⚬ Open with an attention-grabbing headline ⚬ Use an enthusiastic and family-friendly tone ⚬ Highlight the most exciting aspects of the Easter egg hunt Outline your step-by-step approach for writing this press release. Explain your reasoning for deciding what information to prioritize and how to structure the content to get the community excited about attending. EASTER EGG HUNT PRESS RELEASE CHAIN OF THOUGHT CONT’D. CHAIN OF THOUGHT EXAMPLE 2 PROMPT: Create a public procurement contract for lawn cutting services for the Town of Promptville, North Carolina, covering the period from May 1, 2025, to September 30, 2025. The contract should include the following sections: ⚬ Introduction: State the purpose of the contract, the parties involved (Town of Promptville and Vendor), and the service timef rame. ⚬ Scope of Work: Clearly define the tasks (e.g., weekly mowing, trimming, and debris cleanup), performance expectations (mainta ining neat appearance), and timelines for completion. ⚬ Legal Compliance: Summarize the applicable North Carolina statutes: ■ N.C.G.S. §143-129 for formal bidding requirements, ■ N.C.G.S. §143-131 for informal bidding, and ■ N.C.G.S. §143-128.2 for promoting participation by minority businesses. ⚬ Payment Terms: Include a monthly payment schedule, a reference to N.C.G.S. §143-134.1 for prompt payment, and provisions for deductions if work is incomplete or unsatisfactory. ⚬ Termination and Dispute Resolution: Outline conditions for termination (e.g., poor performance, 30 days' notice), and include a dispute resolution process using mediation or arbitration per N.C.G.S. §143-135.26. ⚬ Vendor Obligations: Specify requirements for liability insurance (N.C.G.S. §143-300.1), responsibility for damages caused, and indemnification to protect the Town from third-party claims. ⚬ General Terms: Include governing law (North Carolina), a force majeure clause, confidentiality requirements, and a severabili ty clause. Ensure the language is clear and accessible to non-lawyers while maintaining compliance with North Carolina laws. Present the contract in a professional format, with numbered sections and spaces for signatures. DOCUMENT ANALYSIS Prompt: "You are an analyst comparing two versions of a policy document. Analyze the following two documents and provide a detailed report that includes: Key Changes: List all sections, paragraphs, or clauses that have been updated, added, or removed. Clearly indicate the type of change (e.g., update, addition, removal). Summary of Changes: Provide a high-level summary outlining the major updates and their potential impact. Recommendations: If applicable, suggest any further revisions or clarifications needed based on the identified changes. Here are the two documents for comparison:" Document 1: [Insert Document 1] Document 2: [Insert Document 2] HANDS-ON EXERCISE – SUMMARIZE AND EXPLORE TRANSCRIPTS PROMPT: I am providing you with the web addresses for the NCDPS meeting minutes for two of its recent meetings. You will go step by step to perform the tasks I assign so I can get a comprehensive understanding of what this agency was discussing and evaluating during those times. Here are the steps I need you to perform: 1. Identify the members present, and the members who were present at both meetings. 2. List the topics discussed at each meeting, and then topics that were brought up at both meetings. 3. Identify key metrics or performance measures discussed in the meeting minutes. Once you have performed these tasks you will prepare an executive summary of the combined meeting discussions so I can present it to my board. If you run out of space to reply, ask me for permission to continue until your task is complete. Here are the web addresses for the minutes: https://www.ncdps.gov/division/administrative/ppsb-minutes-and-reports-august-2024/open https://www.ncdps.gov/division/administrative/ppsb-minutes-and-reports-june-2024/open DEBRIEF ON HANDS-ON EXERCISES DISCUSSION POINTS: 1. How did multi-turn prompts improve results? 2. What challenges arose during refinement? 3. What benefits do advanced prompts provide in small-town governance? KEY TAKEAWAYS Master Advanced Techniques: Multi-turn prompts, persona, and chain of thought prompting. Address Real-World Needs: Use ChatGPT for contracts, HR, public communication, and meeting transcripts. Practice and Refine: Continuous iteration improves accuracy, clarity, and relevance.