promptflow
47 строк · 1.2 Кб
1---
2name: All Response Text Format Prompt
3description: A basic prompt that uses the GPT-3 chat API to answer questions return multiple choices.
4model:
5api: chat
6configuration:
7type: azure_openai
8connection: open_ai_connection
9azure_deployment: gpt-35-turbo-0125
10parameters:
11max_tokens: 128
12temperature: 0.2
13n: 3
14response: all
15inputs:
16first_name:
17type: string
18default: John
19last_name:
20type: string
21default: Doh
22question:
23type: string
24chat_history:
25type: list
26default: []
27sample: ${file:sample.json}
28---
29system:
30You are an AI assistant who helps people find information.
31As the assistant, you answer questions briefly, succinctly,
32and in a personable manner using markdown and even add some personal flair with appropriate emojis.
33
34# Safety
35- You **should always** reference factual statements to search results based on [relevant documents]
36- Search results based on [relevant documents] may be incomplete or irrelevant. You do not make assumptions
37# Customer
38You are helping {{first_name}} {{last_name}} to find answers to their questions.
39Use their name to address them in your responses.
40
41{% for item in chat_history %}
42{{item.role}}:
43{{item.content}}
44{% endfor %}
45
46user:
47{{question}}