AI Skill Hub 强烈推荐:promptflow Prompt模板 是一款优质的Agent工作流。在 GitHub 上收获超过 11.1k 颗 Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
微软开源的LLM应用开发框架,提供从原型设计、测试到生产部署的完整工作流。支持Prompt模板管理、链式调用编排和质量评估,适合AI应用开发者和LLM产品团队。
promptflow Prompt模板 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
微软开源的LLM应用开发框架,提供从原型设计、测试到生产部署的完整工作流。支持Prompt模板管理、链式调用编排和质量评估,适合AI应用开发者和LLM产品团队。
promptflow Prompt模板 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install promptflow
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install promptflow
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/microsoft/promptflow
cd promptflow
pip install -e .
# 验证安装
python -c "import promptflow; print('安装成功')"
# 命令行使用
promptflow --help
# 基本用法
promptflow input_file -o output_file
# Python 代码中调用
import promptflow
# 示例
result = promptflow.process("input")
print(result)
# promptflow 配置文件示例(config.yml) app: name: "promptflow" debug: false log_level: "INFO" # 运行时指定配置文件 promptflow --config config.yml # 或通过环境变量配置 export PROMPTFLOW_API_KEY="your-key" export PROMPTFLOW_OUTPUT_DIR="./output"
Welcome to join us to make prompt flow better by participating discussions, opening issues, submitting PRs.
Prompt flow is a suite of development tools designed to streamline the end-to-end development cycle of LLM-based AI applications, from ideation, prototyping, testing, evaluation to production deployment and monitoring. It makes prompt engineering much easier and enables you to build LLM apps with production quality.
With prompt flow, you will be able to:
------
To get started quickly, you can use a pre-built development environment. Click the button below to open the repo in GitHub Codespaces, and then continue the readme!
If you want to get started in your local environment, first install the packages:
Ensure you have a python environment, python>=3.9, <=3.11 is recommended.
pip install promptflow promptflow-tools
If you're interested in contributing, please start with our dev setup guide: dev_setup.md.
Next Step! Continue with the Contributing 👇 section to contribute to prompt flow.
Create a chatbot with prompt flow
Run the command to initiate a prompt flow from a chat template, it creates folder named my_chatbot and generates required files within it:
pf flow init --flow ./my_chatbot --type chat
Setup a connection for your API key
For OpenAI key, establish a connection by running the command, using the openai.yaml file in the my_chatbot folder, which stores your OpenAI key (override keys and name with --set to avoid yaml file changes):
pf connection create --file ./my_chatbot/openai.yaml --set api_key=<your_api_key> --name open_ai_connection
For Azure OpenAI key, establish the connection by running the command, using the azure_openai.yaml file:
pf connection create --file ./my_chatbot/azure_openai.yaml --set api_key=<your_api_key> api_base=<your_api_base> --name open_ai_connection
Chat with your flow
In the my_chatbot folder, there's a flow.dag.yaml file that outlines the flow, including inputs/outputs, nodes, connection, and the LLM model, etc
Note that in thechatnode, we're using a connection namedopen_ai_connection(specified inconnectionfield) and thegpt-35-turbomodel (specified indeployment_namefield). The deployment_name filed is to specify the OpenAI model, or the Azure OpenAI deployment resource.
Interact with your chatbot by running: (press Ctrl + C to end the session)
pf flow test --flow ./my_chatbot --interactive
Core value: ensuring "High Quality” from prototype to production
Explore our 15-minute tutorial that guides you through prompt tuning ➡ batch testing ➡ evaluation, all designed to ensure high quality ready for production.
Next Step! Continue with the Tutorial 👇 section to delve deeper into prompt flow.
Prompt flow is a tool designed to build high quality LLM apps, the development process in prompt flow follows these steps: develop a flow, improve the flow quality, deploy the flow to production.
Tutorial: Chat with PDF: An end-to-end tutorial on how to build a high quality chat application with prompt flow, including flow development and evaluation with metrics. > More examples can be found here. We welcome contributions of new use cases!
Telemetry collection is on by default.
To opt out, please run pf config set telemetry.enabled=false to turn it off.
微软官方开源框架,工程化程度高,生态完整。结合VS Code扩展实现可视化编排,显著降低LLM应用开发门槛,是业界领先的Prompt工程平台。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,promptflow Prompt模板 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | promptflow |
| 原始描述 | 开源Prompt模板:Build high-quality LLM apps - from prototyping, testing to production deployment。⭐11.1k · Python |
| Topics | 提示词工程LLM应用工作流编排AI开发框架 |
| GitHub | https://github.com/microsoft/promptflow |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端