Prompt engineering techniques

Click for: original source

This guide will walk you through some advanced techniques in prompt design and prompt engineering. If you’re new to prompt engineering, we recommend starting with our introduction to prompt engineering guide. By Eric Urban and suhridpalsule.

While the principles of prompt engineering can be generalized across many different model types, certain models expect a specialized prompt structure. For Azure OpenAI GPT models, there are currently two distinct APIs where prompt engineering comes into play: Chat Completion API and Completion API.

In this article you will get information about:

  • System message
  • Few-shot learning
  • Non chat scenarios
  • How to start with clear instructions
  • Repeat instructions at the end
  • Prime the output
  • Add clear syntax
  • Break the task down
  • Use of affordances

One of the most effective ways to provide reliable answers is to give the model data to draw its responses from (grounding data). If your use case relies on up-to-date, reliable information and is not purely a creative scenario, we strongly recommend providing grounding data. Nice one!

[Read More]

Tags microservices ai app-development azure bots