# Prompt Techniques

Prompt Engineering เป็นกลยุทธ์ในการใช้ข้อความหรือคำสั่งเพื่อกระตุ้นให้ระบบ AI สร้างผลลัพธ์ตามที่ต้องการ เทคนิคนี้ช่วยให้ได้ผลลัพธ์ที่มีประสิทธิภาพและตรงกับเป้าหมายที่ตั้งไว้มากขึ้น โดยการใช้รูปแบบ (Pattern) ที่เหมาะสม

#### ตัวอย่าง Prompt Techniques

1. <mark style="color:red;">**Personal Pattern**</mark> [the-persona-pattern](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/the-persona-pattern "mention")\
   การออกแบบคำสั่งโดยมุ่งเน้นไปที่ความต้องการ ข้อมูลพื้นฐาน หรือบริบทส่วนบุคคล เพื่อให้ผลลัพธ์ที่ได้มีความเฉพาะด้านและตรงกับผู้ใช้มากที่สุด
2. <mark style="color:red;">**Audience Pattern**</mark> [the-audience-persona-pattern](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/the-audience-persona-pattern "mention")\
   การออกแบบคำสั่งที่คำนึงถึงผู้รับสารหรือกลุ่มเป้าหมายที่ต้องการสื่อสาร โดยกำหนดการใช้ภาษาหรือบริบทให้เหมาะสมกับกลุ่มเป้าหมาย
3. [<mark style="color:red;">**Chain of Thought (CoT) Pattern**</mark>](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/chain-of-thought-pattern) [chain-of-thought-pattern](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/chain-of-thought-pattern "mention")\
   การกระตุ้นให้ AI คิดเป็นลำดับขั้นตอนเพื่อให้ได้คำตอบที่ซับซ้อนและมีเหตุผลมากขึ้น โดยสามารถใช้คำสั่งเช่น "อธิบายเป็นขั้นตอน" หรือ "ช่วยวิเคราะห์ปัญหานี้ทีละขั้นตอน"
4. [<mark style="color:red;">**Zero-shot และ Few-shot Prompting**</mark>](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/zero-shot-and-few-shot-prompting)  [zero-shot-and-few-shot-prompting](https://docs.tlic.cmu.ac.th/cmu-matthew-ai/prompt/techniques/zero-shot-and-few-shot-prompting "mention")
   * **Zero-shot Prompting:** การให้ AI ทำงานโดยไม่มีตัวอย่างมาก่อน เช่น "อธิบายแนวคิดของเศรษฐศาสตร์พฤติกรรม"
   * **Few-shot Prompting:** การให้ตัวอย่างบางส่วนเพื่อให้ AI เข้าใจแนวทางก่อน เช่น "ตัวอย่างของข้อความเชิญงานคือ... กรุณาสร้างข้อความเชิญงานในลักษณะเดียวกัน"
