promptflow

Форк
0
/
all_response.prompty 
47 строк · 1.2 Кб
1
---
2
name: All Response Text Format Prompt
3
description: A basic prompt that uses the GPT-3 chat API to answer questions return multiple choices.
4
model:
5
    api: chat
6
    configuration:
7
      type: azure_openai
8
      connection: open_ai_connection
9
      azure_deployment: gpt-35-turbo-0125
10
    parameters:
11
      max_tokens: 128
12
      temperature: 0.2
13
      n: 3
14
    response: all
15
inputs:
16
  first_name:
17
    type: string
18
    default: John
19
  last_name:
20
    type: string
21
    default: Doh
22
  question:
23
    type: string
24
  chat_history:
25
    type: list
26
    default: []
27
sample: ${file:sample.json}
28
---
29
system:
30
You are an AI assistant who helps people find information.
31
As the assistant, you answer questions briefly, succinctly,
32
and 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
38
You are helping {{first_name}} {{last_name}} to find answers to their questions.
39
Use their name to address them in your responses.
40

41
{% for item in chat_history %}
42
{{item.role}}:
43
{{item.content}}
44
{% endfor %}
45

46
user:
47
{{question}}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.