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
51 lines
1009 B
YAML
51 lines
1009 B
YAML
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json
|
|
inputs:
|
|
chat_history:
|
|
type: list
|
|
default: []
|
|
question:
|
|
type: string
|
|
is_chat_input: true
|
|
default: What is ChatGPT?
|
|
outputs:
|
|
answer:
|
|
type: string
|
|
reference: ${chat.output}
|
|
is_chat_output: true
|
|
nodes:
|
|
- name: node1
|
|
type: python
|
|
inputs:
|
|
chat_history: ${inputs.chat_history}
|
|
question: ${inputs.question}
|
|
source:
|
|
type: code
|
|
path: node1.py
|
|
- name: node2
|
|
type: python
|
|
inputs:
|
|
chat_history: ${inputs.chat_history}
|
|
question: ${inputs.question}
|
|
source:
|
|
type: code
|
|
path: node2.py
|
|
- name: node3
|
|
type: python
|
|
inputs:
|
|
chat_history: ${inputs.chat_history}
|
|
question: ${inputs.question}
|
|
source:
|
|
type: code
|
|
path: node3.py
|
|
- name: chat
|
|
type: python
|
|
inputs:
|
|
node1: ${node1.output}
|
|
node2: ${node2.output}
|
|
node3: ${node3.output}
|
|
source:
|
|
type: code
|
|
path: chat.py
|
|
environment:
|
|
python_requirements_txt: requirements.txt
|