promptflow

Форк
0
/
stream_output.prompty 
39 строк · 1.0 Кб
1
---
2
name: Stream Mode Text 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
      connection: open_ai_connection
9
      azure_deployment: gpt-35-turbo-0125
10
    parameters:
11
      max_tokens: 512
12
      temperature: 0.2
13
      stream: true
14
inputs:
15
  question:
16
    type: string
17
  chat_history:
18
    type: list
19
    default: []
20
sample: 
21
  "question": "What's the steps to get rich?"
22
---
23
system:
24
You are an AI assistant who helps people find information.
25
and in a personable manner using markdown and even add some personal flair with appropriate emojis.
26

27
# Safety
28
- You **should always** reference factual statements to search results based on [relevant documents]
29
- Search results based on [relevant documents] may be incomplete or irrelevant. You do not make assumptions
30
# Customer
31
You are helping user to find answers to their questions.
32

33
{% for item in chat_history %}
34
{{item.role}}:
35
{{item.content}}
36
{% endfor %}
37

38
user:
39
{{question}}

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

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

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

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