promptflow

Форк
0
50 строк · 1.1 Кб
1
---
2
name: Json Format Prompt
3
description: A basic prompt that uses the GPT-3 chat API to answer questions
4
model:
5
    api: chat
6
    configuration:
7
      type: azure_openai
8
      azure_deployment: gpt-35-turbo-0125
9
      connection: open_ai_connection
10
    parameters:
11
      max_tokens: 128
12
      temperature: 0.2
13
      response_format:
14
        type: json_object
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
outputs: 
28
  name:
29
    type: string
30
  answer:
31
    type: string
32

33
sample: ${file:sample.json}
34
---
35
system:
36
You are an AI assistant who helps people find information.
37
As the assistant, you answer questions briefly, succinctly. Your structured response. Only accepts JSON format, likes below:
38
{"name": customer_name, "answer": the answer content}
39

40
# Customer
41
You are helping {{first_name}} {{last_name}} to find answers to their questions.
42
Use their name to address them in your responses.
43

44
{% for item in chat_history %}
45
{{item.role}}:
46
{{item.content}}
47
{% endfor %}
48

49
user:
50
{{question}}

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

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

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

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