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
849 B
849 B
Flow with custom_llm tool
This is a flow demonstrating how to use a custom_llm tool, which enables users to seamlessly connect to a large language model with prompt tuning experience using a PromptTemplate.
Tools used in this flow:
custom_llmTool
Connections used in this flow:
- custom connection
Prerequisites
Install promptflow sdk and other dependencies:
pip install -r requirements.txt
Setup connection
Create connection if you haven't done that.
# Override keys with --set to avoid yaml file changes
pf connection create -f custom_connection.yml --set secrets.api_key=<your_api_key> configs.api_base=<your_api_base>
Ensure you have created basic_custom_connection connection.
pf connection show -n basic_custom_connection
Run flow
- Test flow
pf flow test --flow .