Course එකට ආපසු

Prompt කලාව

25 මිනිත්තු📖Lecture

🎯 පාඩමේ අරමුණු

මේ පාඩම ඉවර වෙද්දී ඔයාට:

  • Prompt එකක් මොකක්ද, ඒක important ඇයි කියලා තේරුම් ගන්න පුළුවන් වෙයි
  • එකම AI එකට prompt quality එක අනුව wildly different results එන හැටි දකින්න පුළුවන් වෙයි
  • Great prompt එකක් හදන elements මොනවාද දැනගන්න පුළුවන් වෙයි
  • ඔයාගේම prompts ලියන්න confident feel වෙයි

📖 Prompt එකක් කියන්නේ මොකක්ද?

Basic question එකෙන් පටන් ගමු:

Prompt Definition

Prompt එකක් කියන්නේ AI වෙත ඔයාගේ message එක — ප්‍රශ්නය, task එක, හෝ request එක.

ඒක හිතන්න AI එක්ක ඔයාගේ conversation starter එක විදියට. මිනිස්සු එක්ක කතා කරනවා වගේම, ඔයා අහන්නේ WHAT ද කියන එක තරමටම HOW ද කියන එකත් important.

┌─────────────────────────────────────────────────────────┐ │ THE PROMPT FLOW │ ├─────────────────────────────────────────────────────────┤ │ │ │ ┌───────────┐ ┌───────────┐ │ │ │ ඔයා │ ───▶ │ AI │ │ │ │ (Prompt) │ │(Response) │ │ │ └───────────┘ └───────────┘ │ │ │ │ "Create a "Here's a basic │ │ button" gray button..." │ │ │ └─────────────────────────────────────────────────────────┘

🎭 එකම AI, වෙනස් Results

ඔයා AI ගැන හිතන විදිය වෙනස් කරන key insight එක මෙන්න:

එකම AI tool එකට ඔයා prompt එක ලියන විදිය අනුව wildly different results එන්න පුළුවන්.

Action එකේදී බලමු:

❌ Vague Prompt
✅ Specific Prompt
Make an app
Create a todo list web app using HTML, CSS, and JavaScript with add, complete, and delete features
Help me with code
Debug this JavaScript function that should calculate tax but returns NaN
Write something
Write a professional email declining a meeting invitation politely
Make a button
Create a blue button with white text, rounded corners, and a hover effect

📊 Prompt Quality Spectrum එක

හැම prompts එකම equal නැහැ. ඒවා spectrum එකක exist කරනවා terrible ඉඳන් excellent දක්වා:

Level 1: ❌ Bad (Vague)

Make an app

Result: ඔයාට ඕන මොකක්ද AI ට idea නැහැ. Generic, useless output ලැබෙයි.


Level 2: 😐 Okay (Basic)

Make a todo list app

Result: Better, but AI wrong technology, styling, හෝ features choose කරන්න පුළුවන්.


Level 3: ✅ Good (Specific)

Create a todo list using HTML, CSS, and JavaScript. Include: - Add new tasks - Mark tasks complete - Delete tasks

Result: AI task එක clearly තේරුම් ගන්නවා. Output functional වෙයි.


Level 4: 🌟 Great (Professional)

You are a senior frontend developer. Create a minimal, elegant todo list using HTML, CSS, and vanilla JavaScript. Features: - Add new tasks by typing and pressing Enter - Mark tasks complete with a checkbox - Delete tasks with an X button - Show remaining task count at bottom Style: Clean, modern, mobile-friendly with a blue accent color.

Result: AI professional-quality code deliver කරයි requirements හැමටම meet වෙලා.


🎨 Great Prompt එකක් හදන්නේ කොහොමද?

Great prompts typically මේ elements include කරනවා:

Great Prompts වල Elements 5

ElementPurposeExample
RoleAI කවුද වෙන්න ඕනේ?"You are a senior developer"
Taskමොකද කරන්න ඕනේ?"Create a navigation bar"
Technologyමොන tools?"Using HTML and CSS"
Featuresමොන details?"Include links to Home, About, Contact"
Styleපෙනෙන්න/දැනෙන්න ඕනේ කොහොමද?"Clean, modern, mobile-friendly"

Formula එක:

[Role] + [Task] + [Technology] + [Features] + [Style] = Great Prompt

🔬 Live Demo: Rounds තුනක්

Prompt එකක evolution බලමු:

Round 1: Vague

Vague Prompt
Create a button
ChatGPTClaude

💡 Tips:

  • මොන වගේ button එකක්ද?
  • මොන color එකද?
  • මොකක්ද කරන්නේ?

Likely Result: Basic gray button එකක් style හෝ functionality නැතුව.


Round 2: Better

Better Prompt
Create a blue button that says 'Submit'
ChatGPTClaude

💡 Tips:

  • Color specify කළා
  • Text specify කළා
  • තාම missing: size, style, behavior

Likely Result: Blue button එකක්, but probably basic styling.


Round 3: Professional

Professional Prompt
You are a UI designer. Create a submit button with: - Background: #4A90D9 (blue) - Text: White, 16px, bold - Padding: 12px 24px - Border radius: 8px - Hover: Darken by 10% - Cursor: Pointer
ChatGPTClaude

💡 Tips:

  • Role specify කළා
  • හැම detail එකක්ම define කළා
  • Hover state include කළා
  • Professional result guaranteed

Result: ඔයා specify කළ exactly ඒක, every time.


🧠 Key Insight

Prompting Truth එක

Better prompts = Better results = Less time wasted

Good prompt එකක් craft කරන්න ඔයා spend කරන time ALWAYS bad result එකක් fix කරන්න spend කරන time ට වඩා අඩුයි.

මෙහෙම හිතන්න:

  • Bad prompt: ලියන්න seconds 10 → problems fix කරන්න minutes 30
  • Good prompt: ලියන්න minutes 2 → First time ම correctly work කරනවා

🤖 Prompt Evaluator එක Try කරන්න

Prompts ලියන්න practice කරලා instant AI feedback ගන්න:

🎯

🤖 AI Prompt Evaluator

Powered by Gemini

✨ Quick Exercise

මේක දැන්ම ඔයාගේ phone එකේ try කරන්න:

Prompt Improvement Exercise

0/4

✅ පාඩමේ සාරාංශය

Key Takeaways

  1. Prompt එකක් යනු AI වෙත ඔයාගේ message — ඔයා අහන්නේ කොහොමද කියන එක, මොකක්ද කියන එක තරමටම important
  2. එකම AI, වෙනස් results — prompt quality directly output quality affect කරනවා
  3. Great prompts include කරන්නේ: Role, Task, Technology, Features, Style
  4. Time investment pay off වෙනවා — Crafting වලට minutes 2 fixing වලට minutes 30 save කරනවා

📝 Mini Quiz

📝 ඔයාගේ Understanding Check කරන්න

1/3

What is a prompt?