Sayanth Sreekanth

Sat Feb 15 2025

Best Tips for Prompting: Practical, Repeatable Patterns

High-signal prompting doesn’t rely on magic phrases. It’s about structure, constraints, and feedback.

  1. Set role + objective, then success criteria
  • Role focuses behavior. Objective defines the job. Success criteria makes evaluation clear.
  1. Constrain output shape
  • Specify JSON schemas or bullet lists. Add examples. Enforce field names and types.
  1. Provide minimal, representative context
  • Use the smallest set of examples that captures edge cases. Don’t dump everything.
  1. Use stepwise reasoning with checkpoints
  • Ask for plan → confirm → execute. Or request a chain of thought summary (“brief rationale” not full thoughts) to keep it concise.
  1. Anti-goals and non-permitted actions
  • State what to avoid. It lowers hallucinations and scope creep.
  1. Iterative feedback loop
  • Provide deltas as corrections, not whole prompts. Refer to specific errors to nudge models efficiently.
  1. Evaluation hooks
  • Add quick tests: regex match, field presence, or lightweight scoring (“rate from 1–5 and justify”).
  1. Tool awareness
  • Tell the model about available tools, capabilities, and costs (latency/limits) so it picks wisely.

Template

You are <role>. Task: <objective>.
Output: <format with example>.
Constraints: <anti-goals, limits>.
Context: <minimal relevant facts/examples>.
Steps: Plan → Confirm → Execute.
Verify: <checks or quick tests>.

Use this, iterate with small feedback, and measure quality. That’s 90% of good prompting.