Skip to content

Commit fbafc27

Browse files
committed
update docs
1 parent f455d59 commit fbafc27

File tree

4 files changed

+211
-1
lines changed

4 files changed

+211
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Prompt Engineering Techniques with Azure OpenAI
3+
titleSuffix: Azure OpenAI Service
4+
description: Learn about the options for how to use prompt engineering with GPT-3, ChatGPT, and GPT-4 models
5+
author: mrbullwinkle
6+
ms.author: mbullwin
7+
ms.service: cognitive-services
8+
ms.topic: conceptual
9+
ms.date: 03/21/2023
10+
manager: nitinme
11+
keywords: ChatGPT
12+
zone_pivot_groups: openai-prompt
13+
---
14+
15+
# Prompt Engineering Techniques
16+
17+
This guide will walk you through some advanced techniques in prompt design and prompt engineering. If you are new to prompt engineering we recommend starting with our [introduction to prompt engineering guide](prompt-engineering.md).
18+
19+
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:
20+
21+
- Chat Completion API.
22+
- Completion API.
23+
24+
Each API requires input data to be formatted differently, which in turn impacts overall prompt design. The Chat Completion API supports the ChatGPT (preview) and GPT-4 (preview) models. These models are designed to take input formatted in a [specific chat-like transcript](../how-to/chatgpt.md) divided across an array of dictionaries.
25+
26+
The Completion API supports the older GPT-3 models and has much more flexible input requirements in that it takes a string of text with no specific format rules.
27+
28+
> [!NOTE]
29+
> Technically the ChatGPT (preview) models can be used with either API's, but we strongly recommend using the Chat Completion API for these models. To learn more, please consult our [in-depth guide on using the two API](../how-to/chatgpt.md).
30+
31+
::: zone pivot="programming-language-chat-completions"
32+
33+
[!INCLUDE [Prompt Chat Completion](../includes/chat-completion.md)]
34+
35+
::: zone-end
36+
37+
::: zone pivot="programming-language-completions"
38+
39+
[!INCLUDE [Prompt Completion](../includes/chat-markup-language.md)]
40+
41+
::: zone-end

0 commit comments

Comments
 (0)