Jerin buɗi shine aiki na tsarawa buɗi masu tasiri (jagora/inputs) don samun kyakkyawan sakamako daga ƙididdiga na AI, musamman LLMs. Tun da LLMs suna amsa ga buɗi na yaren jiya, hanyar da kake tsara buɗi yana tasiri sosai ga ingancin fitowa.
Menene jerin buɗi
PROMPT ENGINEERING → designing the input (PROMPT) you give an LLM to get the desired output:
→ LLMs respond to instructions in natural language → the prompt shapes the response
→ better prompts → better, more relevant, accurate results
→ no coding needed → you communicate with the model through well-crafted text
→ a key skill for effectively using LLMs
Dabarun asali
✓ BE CLEAR and SPECIFIC → state exactly what you want (vague prompts → vague results)
✓ Give CONTEXT → background info the model needs to respond well
✓ Specify FORMAT → ask for the output format you want (list, JSON, steps, length)
✓ Provide EXAMPLES (few-shot) → show examples of the desired input/output → guides the model
✓ Assign a ROLE → 'You are an expert...' → frames the response
✓ Break down COMPLEX tasks → step by step; 'think step by step' (chain of thought)
✓ ITERATE → refine the prompt based on results
