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
48 lines
1015 B
YAML
48 lines
1015 B
YAML
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json
|
|
inputs:
|
|
question:
|
|
type: string
|
|
default: What is Prompt flow?
|
|
outputs:
|
|
answer:
|
|
type: string
|
|
reference: ${generate_result.output}
|
|
nodes:
|
|
- name: content_safety_check
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: content_safety_check.py
|
|
inputs:
|
|
text: ${inputs.question}
|
|
- name: llm_result
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: llm_result.py
|
|
inputs:
|
|
question: ${inputs.question}
|
|
activate:
|
|
when: ${content_safety_check.output}
|
|
is: true
|
|
- name: default_result
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: default_result.py
|
|
inputs:
|
|
question: ${inputs.question}
|
|
activate:
|
|
when: ${content_safety_check.output}
|
|
is: false
|
|
- name: generate_result
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: generate_result.py
|
|
inputs:
|
|
llm_result: ${llm_result.output}
|
|
default_result: ${default_result.output}
|
|
environment:
|
|
python_requirements_txt: requirements.txt
|