ศึกษา – different types of prompts
– how to evaluate effectiveness
– More advanced techniques
– different ethical consideration
Introduction prompt engineering
input ที่ส่งเข้าไป เพื่อ desire output
art and science of designing effective queries or instruction to get desired response
ask better question -> เพื่อให้ได้ better answer
ใช้prompt engineering to get more precise ,creative and domain-specific
Common Challenge
– Model bias – ไม่สามารถ remove bias ได้ 100% แต่ให้ balance result
– กำจัด unpredictability
– lack of real word knowledge
– language and culutre nuance
What You’ll Need to Follow Along
ตอนนี้มีอยู่ใน Market ที่ทำ LLM – Chatgpt , Gemini , Copilot , Amazon’s bedrock ,Open AI playground
open ai playground – try preset -> browser
เสียตังค์
temperature – เป็นการเพิ่ม variable /creative response
maximum lenght – control lenght to response ถ้ามาก ก็น่าจะเสียเงินเยอะ
stop sequence – เลือกใช้ เช่น period, semicolon เพื่อให้หยุด content
Top p – control diversity of word , ถ้า 1 ก็คือ 100% of word pool
-freq and presence of penalty เป็นกรณี new line
3. Creating Effective prompts
The anatomy of a prompt
– personal
– instruction
– input content
– format
– additional information
เช่น As a profession movie critic (p -เหมือนบอก subj) + please write (i – command , verb? ) + a review of the movie “Oppenheimer” (input – เหมือน adj ตัวขยายด้านหน้า) , in a concise , compelling manner , focusing the plot , performances and visual effects (f-รายละเอียด) + avoid revealing major spoilers (a – หรือส่วนขยาย)
Factual Response
