การออกแบบ แอปพลิเคชันที่ขับเคลื่อนด้วย AI เกี่ยวข้องกับการเลือกแนวทาง AI ที่เหมาะสม การจัดการกับคุณลักษณะเฉพาะของ AI (non-determinism, ต้นทุน, latency, ข้อผิดพลาด) และการออกแบบเพื่อความน่าเชื่อถือรอบ ๆ AI ที่ไม่สมบูรณ์แบบโดยธรรมชาติ มันผสานวิศวกรรมซอฟต์แวร์เข้ากับข้อพิจารณาเฉพาะของ AI
การเลือกแนวทาง AI
→ PROMPTING (LLM APIs) → for most LLM tasks (simplest); good prompts go far
→ RAG → to ground answers in your own/current DATA (reduce hallucination)
→ FINE-TUNING → for specific behavior/style prompting can't achieve
→ TRADITIONAL ML → for structured prediction/classification with data
→ PRE-BUILT services → vision, speech, etc. (don't reinvent)
→ match the approach to the problem (often: prompting + RAG for LLM apps)
