Press ESC to close

මොකක්ද මේ Prompt Engineering කියන්නෙ ?

ලෝකය පුරා AI, අපේ ලියන වැඩ, කේතන ලිවීම, නිර්මාණය සහ ව්‍යාපාරික ක්‍රියාවලියන් සඳහා සහාය වන්නේ විශාල වේගයකින්ය. මෙවැනි වාසියක් උපරිම ලෙස ලබා ගැනීමට, අපිට මේ සංකීර්ණ බුද්ධිමත් පද්ධති සමඟ නිවැරදිව සන්නිවේදනය කළ යුතුය. ඒ සඳහාම අවශ්‍ය වෙන්නේ prompt engineering නම් කලාවයි.

ChatGPT, Claude, Gemini වැනි LLM (Large Language Models) සමඟ වැඩ කරන විට, ඔබේ ප්‍රශ්න නිවැරදිව, තොරතුරුමය ලෙස, සහ ආරක්ෂිත ලෙස සැලසුම් කරන්නේ නම්, ඒවා උත්තර ගැළපෙන ආකාරයට ලබාදෙනු ඇත. ඉතින් මේක ඉගෙන ගන්න වටිනාකමක් තියෙන විෂයයක්.

ප්‍රොම්ප්ට් ඉන්ජිනියරින් කියන්නේ කුමක්ද?

Prompt engineering කියන්නේ AI model එක නිරීක්ෂණයකින් සාර්ථකව මග පෙන්වන්න උචිත, පැහැදිලි, සහ රචනාත්මක ආකාරයකින් prompt (උපදෙස්) ලියන ක්‍රමවේදයකි.

ඇත්තටම, ඔබ ඉතාමත් බුද්ධිමත් අයෙකුට උපදෙස් දෙනවා කියලා හිතන්න නමුත් ඔබ දෙන උපදෙස් පැහැදිලි නැත්නම්, ඔහු විසින් කරන්නේ වෙනස් දෙයක්.

මේකේ වැදගත්කම

ප්‍රොම්ප්ට් ඉන්ජිනියරින් හරහා:

  • Precision: නිවැරදි, පරිපූර්ණ පිළිතුරු ලබාගත හැකියි
  • Control:  ඔබට අවශ්‍ය තොරතුරු, ශෛලිය, ආකෘතිය අනුව පිළිතුරු සැලසුම් කළ හැකියි
  • Productivity: කාලය හා ශක්තිය බෙහෙවින් ඉතිරි වේ
  • Creativity:  නිර්මාණාත්මක අදහස් සහ නව යෝජනා ලැබේ

එය වැඩිම ප්‍රයෝජනයක් දෙන විෂය ක්ෂේත්‍ර:

  • ක්‍රමලේඛන (Coding)
  • අධ්‍යාපනික උපකාර
  • වෙළඳපල වාර්තා
  • නිර්මාණශීලී ලිපි සහ මාධ්‍ය
ප්‍රධාන ප්‍රොම්ප්ට් තාක්‍ෂණික ක්‍රම
🔹 Zero-Shot Prompting (උදාහරණ නැතිව)

“Summarize this article in two paragraphs.”

🔹 Few-Shot Prompting (උදාහරණ කිහිපයක් සමඟ)

“මෙම වාක්‍ය  පරිවර්තනය කරන්න:

  1. Hello, how are you? → Bonjour, comment ça va?
  2. I am learning AI. →”*
🔹 Chain-of-Thought Prompting (පියවරෙන් පියවර චින්තනය)

“Solve this math problem step by step…”

🔹 Role-Based Prompting (භූමිකාවක් ලබාදීම)

“You are a senior React developer. Explain how to optimize a component.”

🔹 Step-by-Step Prompting(පියවරෙන් පියවර විචාර)

“First, define the goal of the app. Then describe the UI. Finally, write the backend logic.”

🔹 විවිධ ක්ෂේත්‍ර සඳහා ප්‍රොම්ප්ට් උදාහරණ
👨‍💻 Coding
  • Prompt: “Create a Python function to sort a list of dictionaries by a key named ‘age’ in ascending order.”
  • Add specifics like language, libraries, constraints.
🎨 Design
  • Prompt: “Generate an image of a futuristic city at night in cyberpunk style, neon lighting, high detail.”
  • Use descriptive keywords, mood, and composition.
🎓 Education
  • Prompt: “Create a 5-question multiple-choice quiz about the French Revolution for 10th graders.”
  • Specify level, topic, and format.
📊 Data Analysis
  • Prompt: “Analyze this CSV file to find trends in user retention over time. Suggest 3 actionable insights.”
  • Upload data and give context.

Tips for Writing Better Prompts

  1. Be specific: අර්ථය පැහැදිලිව ලබාදෙන්න.
  2. Set constraints: වචන ගණන, format, tone.
  3. Give context: කවරෙකුට උත්තරය ලබාදෙන්නද?
  4. Test and iterate: ලොකු results ලැබෙන්න tweak කරන්න.
  5. Use instructions: යෝජනා ලියන්න step-by-step.

Leave a Reply

Your email address will not be published. Required fields are marked *