Krina Vaghela
← Blog

Day 13: Prompt engineering best practices

Picture for Day 13: Prompt engineering best practices

Today, I learned about prompt engineering best practices.

Here’s the simplest way to think about it:

1Write clear and explicit instructions

  • Tell the model exactly what you want.
  • Remove ambiguity.
  • The clearer your instructions, the better the output.

2Provide sufficient context

  • A model can only work with the information it has.
  • Give it the right context.
  • If the required information isn’t available, the model is more likely to hallucinate.

3Break complex tasks into simpler steps

  • Don’t ask the model to do everything at once.
  • Split large problems into smaller subtasks.
  • Smaller prompts are often easier for models to follow and debug.

4Give the model time to think

  • Encourage step-by-step reasoning.
  • Ask it to explain its reasoning before answering.
  • This can improve performance on complex tasks.

5Iterate on your prompts

  • The first prompt is rarely the best.
  • Test different versions.
  • Improve prompts based on the model’s responses.

Read this post on LinkedIn → (opens in a new tab)

↑ ↓ to move · Enter to open · Esc to close