AI อะไรเนี่ย
คอร์สเรียน และ บทความ AI

AI Foundations

How AI Models Work

5 min read

AI models are trained on huge amounts of text and code. When you send a prompt, the model predicts the most likely next tokens (words or sub-words) given that context.

What that means in practice:

  • They're good at pattern matching. If your prompt and examples are clear, the output is usually better.
  • They don't "remember" past chats unless you give them context. Long conversations can drift.
  • They can hallucinate. For facts or code, always verify important results.

Understanding this helps you write better prompts and use tools in a way that plays to their strengths.