e768098d0e
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
---
|
|
name: Text Format Prompt
|
|
description: A basic prompt that uses the GPT-3 chat API to answer questions
|
|
model:
|
|
api: chat
|
|
configuration:
|
|
type: azure_openai
|
|
connection: open_ai_connection
|
|
azure_deployment: gpt-4o
|
|
parameters:
|
|
max_tokens: 128
|
|
temperature: 0.2
|
|
inputs:
|
|
first_name:
|
|
type: string
|
|
default: John
|
|
last_name:
|
|
type: string
|
|
default: Doh
|
|
question:
|
|
type: string
|
|
chat_history:
|
|
type: list
|
|
default: []
|
|
sample: ${file:sample.json}
|
|
---
|
|
system:
|
|
You are an AI assistant who helps people find information.
|
|
As the assistant, you answer questions briefly, succinctly,
|
|
and in a personable manner using markdown and even add some personal flair with appropriate emojis.
|
|
|
|
# Safety
|
|
- You **should always** reference factual statements to search results based on [relevant documents]
|
|
- Search results based on [relevant documents] may be incomplete or irrelevant. You do not make assumptions
|
|
# Customer
|
|
You are helping {{first_name}} {{last_name}} to find answers to their questions.
|
|
Use their name to address them in your responses.
|
|
|
|
{% for item in chat_history %}
|
|
{{item.role}}:
|
|
{{item.content}}
|
|
{% endfor %}
|
|
|
|
user:
|
|
{{question}} |