1

Prompt ជាអ្វី?
What is a Prompt?

យល់ដឹងពីមូលដ្ឋានគ្រឹះនៃ AI Prompt និងសារៈសំខាន់របស់វា។
Understand the fundamentals of AI prompts and their importance.

សេចក្តីផ្តើម (Introduction)

Prompt គឺជាពាក្យបញ្ជា ឬសំណួរដែលអ្នកផ្តល់ឱ្យប្រព័ន្ធ AI ដើម្បីទទួលបានចម្លើយ។ វាប្រៀបដូចជាការចាប់ផ្តើមការសន្ទនា ប៉ុន្តែត្រូវបានរចនាឡើងជាពិសេសដើម្បីណែនាំ AI ឱ្យផ្តល់ព័ត៌មាន ឬដំណោះស្រាយដែលអ្នកត្រូវការ។ គុណភាពនៃ Prompt របស់អ្នក កំណត់គុណភាពនៃចម្លើយរបស់ AI។

A prompt is an input or question that you give to an AI system to get a response. It's designed to guide the AI towards providing the information you need. The quality of your prompt directly impacts the quality of the AI's response.

🎯 ឧទាហរណ៍ជាក់ស្តែង (Real-World Analogy)

ស្រមៃថាអ្នកទៅភោជនីយដ្ឋាន (Imagine going to a restaurant):

  • ការកម្ម៉ង់មិនល្អ (Bad order): "យកម្ហូបមក" ("Give me food") → អ្នករត់តុនឹងច្របូកច្របល់។ ម្ហូបអ្វី? ទំហំប៉ុន្មាន? រសជាតិបែបណា?
  • ការកម្ម៉ង់ល្អ (Good order): "ខ្ញុំចង់បានភីហ្សារសជាតិសាច់គោ ខ្នាតកណ្ដាល ម្សៅស្តើង ថែមឈីស និងមិនយកខ្ទឹមបារាំង" → អ្នករត់តុដឹងច្បាស់ថាត្រូវយកអ្វីមកជូនអ្នក!

ដូចគ្នាដែរ AI ត្រូវការការណែនាំច្បាស់លាស់ ដើម្បីផ្តល់ឱ្យអ្នកនូវអ្វីដែលអ្នកចង់បាន។

លក្ខណៈសម្បត្តិនៃ Prompt ដ៏មានប្រសិទ្ធភាព (Key Characteristics)

សាមញ្ញ vs ស្មុគស្មាញ (Simple vs. Complex Prompts)

មកមើលថាការធ្វើឲ្យ Prompt ប្រសើរឡើង បានផ្លាស់ប្តូរចម្លើយរបស់ AI យ៉ាងដូចម្តេចខ្លះ៖

ឧទាហរណ៍ទី ១៖ ការសរសេរអនុស្សារណៈផ្ទៃក្នុង (Drafting an Internal Memo)
❌ Prompt មិនល្អ (Poor)
Write a memo about attendance

បញ្ហា៖ មិនច្បាស់លាស់។ ផ្ញើទៅអ្នកណា? ព័ត៌មានលម្អិតអ្វីខ្លះ? ទឹកដមបែបណា?

✅ Prompt ល្អ (Good)
Write a formal internal memo to all department heads regarding the new attendance tracking system. Explain that it starts on Monday, requires ID card scanning, and is mandatory for all officers. Tone should be authoritative but professional.

មូលហេតុដែលល្អជាង៖ កំណត់អ្នកទទួល (Department heads), ប្រធានបទ, ព័ត៌មានសំខាន់ៗ (ថ្ងៃច័ន្ទ, ស្កេនកាត, កាតព្វកិច្ច), និងទឹកដម (ផ្លូវការ)។

ឧទាហរណ៍ទី ២៖ ការពន្យល់ពីគោលនយោបាយ (Policy Explanation)
❌ Prompt មិនល្អ (Poor)
Explain leave policy

បញ្ហា៖ គោលនយោបាយមួយណា? សម្រាប់អ្នកណា? ត្រូវការព័ត៌មានលម្អិតអ្វីខ្លះ?

✅ Prompt ល្អ (Good)
Explain the current maternity leave policy to a newly recruited female officer. Clarify the duration (90 days), required documentation (medical certificate from a recognized hospital), and the procedure to apply 1 month in advance. Use clear, supportive language.

មូលហេតុដែលល្អជាង៖ កំណត់គោលនយោបាយជាក់លាក់ (មាតុភាព), អ្នកទទួល, និងព័ត៌មានលម្អិត។

ឧទាហរណ៍ទី ៣៖ ការស្នើសុំទិន្នន័យ (Requesting Data)
❌ Prompt មិនល្អ (Poor)
Ask for staff list

បញ្ហា៖ គ្មានបរិបទ, កាលបរិច្ឆេទកំណត់ ឬទម្រង់ឯកសារ។

✅ Prompt ល្អ (Good)
Write a formal directive to all Provincial Police Commissariats requesting their updated staff lists for Q1 2026. Specify that the list must use the attached Excel template, include rank and ID number, and be submitted by Friday. Tone should be official and urgent.

មូលហេតុដែលល្អជាង៖ មានគោលបំណងច្បាស់លាស់, អ្នកទទួល, តម្រូវការជាក់លាក់ (Excel, Rank, ID), ថ្ងៃកំណត់ និងទឹកដមជាបន្ទាន់។

ឧទាហរណ៍ទី ៤៖ ការសរសេរសុន្ទរកថា (Speech Writing)
❌ Prompt មិនល្អ (Poor)
Write a speech for the Minister

បញ្ហា៖ គ្មានព័ត៌មានព្រឹត្តិការណ៍, រយៈពេល ឬប្រធានបទត្រូវបានផ្តល់ឲ្យ។

✅ Prompt ល្អ (Good)
Write a 3-minute opening speech for the Minister of Interior for the launching ceremony of the new 'Digital HR Database'. Emphasize modernization, transparency, efficiency in promotion processes, and the government's commitment to digital transformation. The audience includes senior police officials and international partners.

មូលហេតុដែលល្អជាង៖ កំណត់រយៈពេល, អ្នកថ្លែង, ព្រឹត្តិការណ៍, ប្រធានបទសំខាន់ៗ និងអ្នកស្តាប់។

ការបំបែកធាតុផ្សំលម្អិត (Breaking Down the Formula)

ដើម្បីបង្កើត Prompt ដ៏ល្អឥតខ្ចោះ យើងត្រូវយល់ច្បាស់ពីធាតុផ្សំនីមួយៗ។ នេះគឺជាការពន្យល់លម្អិត៖
To create the perfect prompt, we need to deeply understand each component. Here is a detailed breakdown:

១. Role (តួនាទី)

វាជាអ្វី? (What is it?): ការកំណត់អត្តសញ្ញាណឱ្យ AI។ តើអ្នកចង់ឱ្យ AI គិតដូចអ្នកណា?
ហេតុអ្វីសំខាន់? (Why it matters): វាជួយកំណត់ "របៀបគិត" និង "ចំណេះដឹង" ដែល AI ត្រូវប្រើ។

ធម្មតា: "Explain Quantum Physics." (ពន្យល់ពីអាកប្បកិរិយារូបធាតុ)
ល្អ: "Act as a primary school teacher (ដើរតួជាគ្រូបឋម). Explain Quantum Physics..." (AI នឹងប្រើភាសាសាមញ្ញ សាកសមនឹងក្មេង)
ល្អ: "Act as a PhD physicist (ដើរតួជាបណ្ឌិតរូបវិទ្យា). Explain Quantum Physics..." (AI នឹងប្រើភាសាបច្ចេកទេស និងស៊ីជម្រៅ)
២. Task (ភារកិច្ច)

វាជាអ្វី? (What is it?): សកម្មភាពដែលអ្នកចង់ឱ្យ AI ធ្វើ។
ហេតុអ្វីសំខាន់? (Why it matters): បើគ្មានភារកិច្ចច្បាស់លាស់ AI នឹងទាយ។ ប្រើកិរិយាស័ព្ទឱ្យចំៗ។

ស្រពេចស្រពិល: "Dog info." (ព័ត៌មានពីឆ្កែ)
ច្បាស់លាស់: "Write a blog post about dogs." (សរសេរប្លុក)
ច្បាស់លាស់: "Create a training plan for a dog." (បង្កើតផែនការបង្វឹក)
៣. Details (ព័ត៌មានលម្អិត)

វាជាអ្វី? (What is it?): បរិបទ និងទិន្នន័យចាំបាច់ដើម្បីបំពេញភារកិច្ច។ AI មិនអាចអានចិត្តអ្នកបានទេ!
ហេតុអ្វីសំខាន់? (Why it matters): កាត់បន្ថយចម្លើយដែល "ទូទៅពេក"។

ខ្វះព័ត៌មាន: "Write an email to my boss asking for leave." (សរសេរអ៊ីមែលសុំច្បាប់)
ពេញលេញ: "Write an email to my boss asking for leave from Dec 25-30 for my sister's wedding. Mention that I have finished all my pending reports." (បញ្ជាក់កាលបរិច្ឆេទ មូលហេតុ និងការបញ្ចប់ការងារ)
៤. Format (ទម្រង់)

វាជាអ្វី? (What is it?): រូបរាងនៃចម្លើយដែលអ្នកចង់ឃើញ។
ហេតុអ្វីសំខាន់? (Why it matters): ធ្វើឱ្យចម្លើយងាយស្រួលយកទៅប្រើប្រាស់ភ្លាមៗ ដោយមិនបាច់កែសម្រួល។

📝 Paragraph (កថាខណ្ឌ) 📊 Table (តារាង) 💻 Code (កូដ) 📑 Bullet Points (ចំណុចៗ)
៥. Constraints (លក្ខខណ្ឌ)

វាជាអ្វី? (What is it?): បម្រាម ឬដែនកំណត់។
ហេតុអ្វីសំខាន់? (Why it matters): ការពារ AI មិនឱ្យនិយាយច្រើនពេក ឬខុសប្រធានបទ។

ឧទាហរណ៍: "Under 100 words" (ក្រោម ១០០ពាក្យ), "No hashtags" (កុំដាក់ hashtag), "Do not include financial advice" (កុំដាក់ដំបូន្មានហិរញ្ញវត្ថុ).

📋 ឧទាហរណ៍នៃ Prompt ពេញលេញ (Complete Prompt Example)
បរិបទ (Context): អ្នកគឺជាអ្នកជំនាញទីផ្សារតាមអ៊ីមែលអាជីព (You are a professional email marketing specialist)
ភារកិច្ច (Task): សរសេរចំណងជើងអ៊ីមែលសម្រាប់ផ្សព្វផ្សាយការសម្ពោធផលិតផលថ្មី (Write a subject line for an email promoting a new product launch)
ទម្រង់ (Format): ផ្តល់ជម្រើសចំណងជើងចំនួន ៥ (Provide 5 subject line options)
ទឹកដម (Tone): មានវិជ្ជាជីវៈប៉ុន្តែទាក់ទាញ (Professional yet compelling)
លក្ខខណ្ឌ (Constraints): អតិបរមា ៦០ តួអក្សរក្នុងមួយចំណងជើង, ជៀសវាងពាក្យដែលងាយជាប់ Spam ដូចជា "FREE" ឬសញ្ញាឧទានច្រើនពេក (Maximum 60 characters per subject line, avoid spam triggers like "FREE" or excessive exclamation marks)
គន្លឹះពិសេស (Pro Tip): អ្នកកាន់តែផ្តល់ព័ត៌មានលម្អិត AI កាន់តែយល់ច្បាស់ពីតម្រូវការរបស់អ្នក និងផ្តល់ចម្លើយដែលអ្នកចង់បាន។

ហេតុអ្វី Prompt មានសារៈសំខាន់? (Why Prompts Matter)

កំហុសទូទៅដែលគួរជៀសវាង (Common Prompt Mistakes)

💡 ចំណុចសំខាន់ (Key Takeaway)

Prompt គឺជាឧបករណ៍ចម្បងរបស់អ្នកសម្រាប់ការទំនាក់ទំនងជាមួយ AI។ ការចំណាយពេលបង្កើត Prompt ច្បាស់លាស់ និងជាក់លាក់ នឹងធ្វើអោយគុណភាពចម្លើយដែលអ្នកទទួលបានប្រសើរឡើងយ៉ាងខ្លាំង។ ចងចាំថា៖ Prompt កាន់តែល្អ = លទ្ធផលកាន់តែប្រសើរ (Better Prompt = Better Output)

A prompt is your primary tool for communicating with AI. Investing time in crafting clear, specific prompts will dramatically improve the quality of responses you receive.

លំហាត់អនុវត្ត (Practice Exercise)

សាកល្បងកែប្រែ Prompt ដែលមិនល្អនេះ៖ "Write a report about training"

គិតអំពីចំណុចទាំងនេះ (Think about):

💡 គំរូ Prompt ដែលបានកែតម្រូវ (Sample Improved Version)
"Draft a summary report on the 'Leadership Training for Young Officers' held last week. Include the number of participants (50), 3 key topics covered (conflict resolution, team management, ethics), and participant feedback (mostly positive). Format as a bulleted list for the Director of HR to review."

សំណួរ និងចម្លើយទូទៅ (Q&A)

❓ Q1: តើ Prompt គួរមានប្រវែងប៉ុន្មាន? (How long should my prompt be?)

ចម្លើយ៖ គ្មានច្បាប់កំណត់ទេ ប៉ុន្តែជាទូទៅ៖

Answer: There is no strict rule, but generally:

  • កិច្ចការសាមញ្ញ៖ ១-២ ប្រយោគ (ឧ. "បកប្រែនេះជាភាសាអង់គ្លេស...")
    Simple tasks: 1-2 sentences.
  • កិច្ចការមធ្យម៖ ៣-៥ ប្រយោគ ជាមួយនឹងព័ត៌មានលម្អិត
    Medium tasks: 3-5 sentences with details.
  • កិច្ចការស្មុគស្មាញ៖ កថាខណ្ឌខ្លីមួយ ដែលមានបរិបទ និងលក្ខខណ្ឌ
    Complex tasks: A short paragraph with context and constraints.
❓ Q2: តើខ្ញុំអាចប្រើភាសាខ្មែរបានទេ? (Can I use Khmer?)

ចម្លើយ៖ បាន! AI ភាគច្រើនគាំទ្រភាសាជាច្រើន។ ទោះជាយ៉ាងណា ភាសាអង់គ្លេសអាចនឹងទទួលបានលទ្ធផលល្អជាងបន្តិច ដោយសារទិន្នន័យបណ្តុះបណ្តាលភាគច្រើនជាភាសាអង់គ្លេស។ ប៉ុន្តែអ្នកអាចប្រើភាសាដែលអ្នកចេះស្ទាត់បាន។

Answer: Yes! Most AIs support multiple languages. However, English might yield slightly better results since most training data is in English. But you can use the language you are most comfortable with.

📚 ឯកសារយោងរហ័ស៖ រូបមន្ត Prompt (Quick Reference: The Prompt Formula)

[Role] + [Task] + [Details] + [Format] + [Constraints]

1. Role (តួនាទី)

កំណត់អត្តសញ្ញាណឲ្យ AI។
"Act as a teacher..." (ដើរតួជាគ្រូបង្រៀន)

2. Task (ភារកិច្ច)

អ្វីដែលត្រូវធ្វើ។
"Write a lesson plan..." (សរសេរផែនការមេរៀន)

3. Details (លម្អិត)

ព័ត៌មានជាក់លាក់។
"For beginners..." (សម្រាប់អ្នកចាប់ផ្តើម)

4. Format (ទម្រង់)

របៀបបង្ហាញចម្លើយ។
"As a table" (ជាតារាង), "List" (ជាបញ្ជី)

5. Constraints (លក្ខខណ្ឌ)

ដែនកំណត់។
"Short paragraphs" (កថាខណ្ឌខ្លី)

ការអនុវត្តរូបមន្ត (Formula in Action):

[You are a nutritionist] [create a meal plan] [high protein, vegetarian] [as a 7-day table] [under 1500 kcal]