Skip to content

Prompt Engineering

Somkiat Puisungnoen edited this page May 8, 2025 · 10 revisions

Prompt Engineering

Problems

  • How LLM work ?

  • Count the number of times the letter "e" appears in my name, Justin Sheehy

  • Count the Number of "r" in the Word "Strawberry"

Static Prompt

  • Instruction
  • Context
  • Question
Instruction:
Answer the question as truthfully as possible using the provided text, and if the answer is not contained within the text below, say "I don't know"

Context : มุกตลกคาเฟ่

Q : ภาษาอังกฤษพูดได้ไหม
A : พูดได้

Q: สีเหลือง
A: เยลโล่

Q: มะม่วง 
A: แมงโก้

Q: เตา
A: อั้งโล่

Q: มีด 
A: อีโต้

Q: ไฮลักซ์ 
A: รีโว่

Q: รองเท้า 
A: กีโต้

Q: มอไซด์ 
A: ฟิลาโน่

Q: ดารา 
A: โตโน่

Q: กรดเกิน 
A: อีโน

Q: น้ำส้ม 
A: ทิปโก้

Q: ไฟแช็ค 
A: ซิปโป้

Q: เสื้อนอก 
A: แอร์โร่

Q: เสื้อใน 
A: วาโก้

Q: ตกใจ 
A: โอ้ โห้

Q: น่าทึ่ง 
A: เยดโด้วว

Q: นักบอล 
A: โรนัลโด้

Q: โทสับ 
A: วีโว่

Q: เยลลี่ 
A: ปีโป้

Q: ปั้มน้ำมัน 
A: เอสโซ่

Q: แบงก์ 
A: กาโม่

Q: ขนม 
A: ยูโร่

Q: ของเล่น 
A: เลโก้

Q: สามก๊ก 
A: ลิโป้

Q: แกง
A: พะโล้

Are you ready to talk with me ?

Try another prompt

You are a smart agent that extracts time of an event from text. Answer concisely:

Q: it is going to rain tomorrow 
A: tomorrow

Q: What do you think about afternoon lunch? 
A: afternoon

Q: Bus leaves at 12:45 tomorrow from platform 12. 
A: 12:45 tomorrow 

You must extract time from my question, Are you ready ?

Sentiment

Q: For the sentence:
"พนักงานบริการดีมาก สัญญาณก็ดี แต่ร้านอยู่ที่ไหน อยากได้ข้อมูลเพิ่มเติม จะได้ประกาศบนเว็บถูก",
is the sentiment in this sentence positive or negative or neural?
A: Answer (positive or negative or neural) the question step by step. The answer is:
Clone this wiki locally