ผมเพิ่งเรียนจบคอร์ส ChatGPT Prompt Engineering for Developers จาก DeepLearning.AI
คอร์สนี้ช่วยปูพื้นฐาน LLM mindset ได้ดีมาก โดยเฉพาะเทคนิคสำคัญที่ใช้ในการสร้าง AI application
บทความนี้เป็นการสรุปสิ่งที่ได้เรียนเพื่อเก็บไว้ทบทวนเอง

LLM สามารถใช้เทคนิคหลัก ๆ ได้ 5 รูปแบบ
เทคนิคเหล่านี้สามารถนำไปใช้สร้าง AI tools, automation หรือ chatbot ได้จริง
แนวคิดคือการ ปรับปรุง prompt แบบ iterative
Prompt → Result → Improve Prompt → Better Result
LLM ไม่ได้ต้องการ prompt ที่ perfect ตั้งแต่แรก
แต่ควร ปรับ prompt ไปเรื่อย ๆ จนได้ผลลัพธ์ที่ต้องการ
Step 1: Summarize the requirement Step 2: Identify missing information Step 3: Propose system architecture
LLM จะทำงานเหมือน thinking loop
LLM มีความสามารถสูงมากในการ สรุปข้อมูลจำนวนมาก
เหมาะสำหรับ
Summarize the following meeting into:
Key decisions
Action items
Risks
Use case นี้มี impact มากในองค์กร เช่น
Inferring คือการให้ LLM ตีความข้อมูล
ตัวอย่างงาน
Classify this email into one of the following categories:
Complaint
Request
Information
Use cases
LLM สามารถ แปลงข้อมูลจาก format หนึ่งไปอีก format
ตัวอย่าง
text → JSON text → table text → SQL text → code
หรือ
formal → casual technical explanation → business explanation
Use cases
LLM สามารถ ขยาย idea ให้เป็น output ที่ละเอียด
idea → detailed output
ตัวอย่างงาน
Expand the following outline into a product proposal.
Chatbot ที่ใช้ LLM มักจะ combine เทคนิคเหล่านี้เข้าด้วยกัน
User Question ↓ Inferring (understand intent) ↓ Retrieve Knowledge ↓ Summarizing (prepare context) ↓ Transforming (format response) ↓ Expanding (generate final answer)
นี่คือพื้นฐานของ LLM-powered chatbot หรือ RAG system
หลังจากเรียนคอร์สนี้ สิ่งสำคัญที่สุดคือ
LLM ไม่ใช่แค่ tool สำหรับถามคำถาม
แต่สามารถใช้เป็น building block สำหรับ AI applications
เทคนิคทั้ง 5 อย่างนี้สามารถนำไปใช้สร้าง
ซึ่งเป็นพื้นฐานสำคัญของ AI-native software development