Day 7: Research and share prompt engineering techniques
Woo hoo! We’ve made it to Day 7 of our 30 Days of AI in Testing challenge! :then: This week, we’ve covered a lot of ground in understanding AI concepts, tools, and the real-world impact.
Now, let’s focus on a crucial skill for leveraging AI: prompt engineering. Prompt engineering is the practice of designing prompts to get better outputs from AI. Your challenge today is to uncover and share effective prompt engineering techniques.
Task Steps
Research Prompt Engineering: Conduct some research on effective prompt engineering techniques.
Share Your Findings: Share 2-3 prompt engineering techniques you found that seem relevant, useful or new to you in reply to this topic. Feel free to link to any helpful resources you found as well.
Here’s an example to guide your response:
- Prompt technique 1: [name]
- How it works: [brief description]
- Potential impact: [how it can improve AI output]
- Useful resource: https://www.promptingguide.ai/
Why Take Part
Enhance AI Interaction: Learning and applying prompt engineering techniques can improve the way you use AI tools, leading to more accurate and relevant outputs.
Share and Learn: By sharing your findings and discussing prompt engineering strategies, you contribute to the whole community’s knowledge base, helping others refine their AI interactions.
Task Link
https://club.ministryoftesting.com/t/day-7-research-and-share-prompt-engineering-techniques/74862
My Day 7 Task
Getting Started Prompt: I initially started by mimicking and practicing writing my own prompts through this GitHub project awesome-chatgpt-prompts.
Prompt Skill Learning: I utilized a free e-book called “The Art of ChatGPT Prompting: A Guide to Crafting Clear and Effective Prompts” to enhance my prompt crafting skills.
Interesting Prompt Philosophy: If you don’t have an idea for an answer, don’t search for a question. Following this principle when composing prompts has been highly effective for me.
Prompt Requirements: The art of asking questions involves attempting to clearly describe the problem, articulating both the problem and the desired solution in one go.
My Frequently Used Prompt Techniques: The prompts I commonly use now typically include these three components: Background + Constraints + Goal + Expected Answer.
- Clearly Describe the Background:
In commonly used prompts, the background usually includes the following information: - Character (WHO) — including the roles involved in this prompt and relevant characters. - Location (WHERE) — specifying geographical details may lead to more targeted solutions. - Event (WHAT) — detailing the specific incident that occurred. - Time (WHEN) — indicating when the event took place.
Clearly Define the Goal: What result do you want from the AI’s response?
Introduce Constraints: Human/time/material constraints regarding the described scenario.
Lastly, Specify the Expected Answer: For example, request the result in a specific format (markdown, English, Chinese, etc.), or ask for multiple solutions for me to choose the best one.
The community replied resources in the results
- Prompt Engineering Guide https://www.promptingguide.ai/
- Chain-of-Thought Prompting https://www.promptingguide.ai/techniques/cot
- What is Zero Shot Learning in Computer Vision? https://blog.roboflow.com/zero-shot-learning-computer-vision/#:~:text=Zero%2DShot%20Learning%20(ZSL),new%20objects%20on%20their%20own
- Unlocking the Power of React Prompting https://blog.nimblebox.ai/react-prompting-revolutionizing-language-models
- Few-Shot Prompting https://www.promptingguide.ai/techniques/fewshot
- Prompt Engineering Tutorial: A Comprehensive Guide With Examples And Best Practices https://www.lambdatest.com/learning-hub/prompt-engineering
- Elements of a Prompt https://www.promptingguide.ai/introduction/elements
- Master Prompting Techniques: Self-Consistency Prompting https://www.promptingguide.ai/introduction/elements
- Prompt Engineering is a Job of the Past https://www.wearedevelopers.com/magazine/prompt-engineering-is-a-job-of-the-past
About Event
The “30 Days of AI in Testing Challenge” is an initiative by the Ministry of Testing community. The last time I came across this community was during their “30 Days of Agile Testing” event.
Community Website: https://www.ministryoftesting.com
Event Link: https://www.ministryoftesting.com/events/30-days-of-ai-in-testing
Challenges:
- Day 1: Introduce yourself and your interest in AI
- Day 2: Read an introductory article on AI in testing and share it
- Day 3: List ways in which AI is used in testing
- Day 4: Watch the AMA on Artificial Intelligence in Testing and share your key takeaway
- Day 5:Identify a case study on AI in testing and share your findings
- Day 6:Explore and share insights on AI testing tools
Recommended Readings
- API Automation Testing Tutorial
- Bruno API Automation Testing Tutorial
- Gatling Performance Testing Tutorial
- K6 Performance Testing Tutorial
- Postman API Automation Testing Tutorial
- Pytest API Automation Testing Tutorial
- REST Assured API Automation Testing Tutorial
- SuperTest API Automation Testing Tutorial
- 30 Days of AI in Testing Challenge