Prompt engineering হলো instruction, context, examples এবং output format এমনভাবে লেখা, যাতে model taskটি পরিষ্কারভাবে বুঝতে পারে। একটি ভালো prompt সাধারণত বলে:
Task কী
কোন context ব্যবহার করতে হবে
কী constraint মানতে হবে
Output format কেমন হবে
Few-shot prompting-এ কয়েকটি example দেওয়া হয়। Prompt যত বড়, তত ভালো—এটি সত্য নয়; unnecessary context confusion ও cost বাড়াতে পারে। Prompt change-কে code change-এর মতো version ও evaluate করা উচিত।
Prompt engineering clear instruction, relevant context ও expected output format দিয়ে LLM behavior guide করে; এর effectiveness repeatable evaluation দিয়ে যাচাই করা উচিত।