e768098d0e
Flake8 Lint / flake8 (push) Waiting to run
Spell check CI / Spell_Check (push) Waiting to run
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
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json
|
|
environment:
|
|
python_requirements_txt: requirements.txt
|
|
inputs:
|
|
math_question:
|
|
type: string
|
|
default: If a rectangle has a length of 10 and width of 5, what is the area?
|
|
outputs:
|
|
code:
|
|
type: string
|
|
reference: ${code_refine.output}
|
|
answer:
|
|
type: string
|
|
reference: ${final_code_execution.output}
|
|
nodes:
|
|
- name: final_code_execution
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: code_execution.py
|
|
inputs:
|
|
code_snippet: ${code_refine.output}
|
|
- name: math_example
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: math_example.py
|
|
inputs: {}
|
|
- name: code_refine
|
|
type: python
|
|
source:
|
|
type: code
|
|
path: code_refine.py
|
|
inputs:
|
|
original_code: ${code_gen.output}
|
|
- name: code_gen
|
|
type: llm
|
|
source:
|
|
type: code
|
|
path: ask_llm.jinja2
|
|
inputs:
|
|
# This is to easily switch between openai and azure openai.
|
|
# deployment_name is required by azure openai, model is required by openai.
|
|
deployment_name: gpt-35-turbo
|
|
model: gpt-3.5-turbo
|
|
question: ${inputs.math_question}
|
|
examples: ${math_example.output}
|
|
connection: open_ai_connection
|
|
api: chat
|