dify blog 09月19日
Dify推出Workflow功能,简化复杂LLM应用开发
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

Dify最新推出Workflow功能,旨在解决单一提示LLM在多步骤逻辑生成中的局限性,帮助用户构建稳定的生产级解决方案。Workflow以拖拽式界面为核心,支持连接多种节点,包括LLM、工具、问题分类器、知识检索等,实现复杂流程的自动化。该功能可独立使用或集成于Chatbot应用中,通过灵活配置和高级节点类型满足个性化需求,并具备强大的调试和测试工具,确保应用可靠性。Workflow还支持领域特定语言(DSL),实现工作流的可移植性和互操作性,为用户带来更自由、高效的AI开发体验。

💡 Workflow是Dify推出的一项新功能,旨在解决单一提示LLM在多步骤逻辑生成中的局限性,帮助用户构建稳定的生产级解决方案。

🔧 Workflow的核心是一个直观的拖拽式界面,用户可以通过连接不同的节点(如LLM、工具、问题分类器、知识检索等)来构建复杂流程,实现自动化。

🔄 Workflow可以独立使用或集成于Chatbot应用中,通过灵活配置和高级节点类型(如模板、变量赋值器、HTTP请求、代码节点等)满足个性化需求。

🛠️ Workflow配备了强大的调试和测试工具,允许用户端到端测试工作流或单独测试节点,确保应用可靠性,并自动记录测试历史以追踪问题。

🌐 Workflow支持领域特定语言(DSL),实现工作流的可移植性和互操作性,用户可以轻松导出和导入工作流,避免供应商锁定,促进协作和共享。

Hi, Gu from Dify here. I couldn't be more excited to share with you our latest feature: Workflow.

We've all seen the huge potential of LLMs in the past year. But as many of you have experienced firsthand, harnessing that potential for robust, production-ready solutions comes with its own set of challenges. Workflow is our answer to that challenge -- it is designed to bridge the gap where single-prompt LLMs falter: generating predictable outputs with multi-step logic.

Workflow is currently accessible as a standalone app type. It can also be activated in 'Chatbot' apps for building complex conversation flows (Chatflow). We can't wait for you to start experimenting with it now.

Chatflow is set to overtake "expert mode" in current Chatbot apps. You may choose to keep editing your existing apps in "expert mode", or transform them into workflows.

Drag, Drop, Deploy

The heart of Workflow is an intuitive, drag-and-drop interface. You build your workflow by connecting different nodes on an infinite canvas. Some nodes we think are central include:

  • LLM: Encapsulate the power of Large Language Models within a node, with defined inputs and outputs.

  • Tools: Utilize built-in and custom tools to extend what your workflow can achieve.

  • Question Classifier: Automatically categorize user inputs to route conversations and processes, powered by LLM under the hood.

  • Knowledge Retrieval: Equip your LLMs with external context from your existing knowledge bases.

  • Code: Execute custom Python or Node.js code.

  • If/Else Block: Define conditional logic to create branched workflows.

But this is just the beginning. We've designed Workflow to be extensible, allowing us to continually expand the types of nodes available. As we learn more about the needs and use cases of our community, we'll be introducing new nodes to support an even wider range of applications.

Flexible Configuration

One of the key strengths of Workflow is its flexibility. Every node is configurable, allowing you to customize your workflow to your exact needs. You can define inputs and outputs for each node, ensuring that data flows seamlessly through your workflow.

For more advanced data manipulation, Workflows offers specialized node types. We designed 'Template' and 'Variable Assigner' nodes to let you reshape and reassign variables between nodes, enabling complex data transformations. The 'HTTP Request' node allows you to integrate with external services by making HTTP requests directly from your workflow. And for maximum control, the 'Code' node lets you inject your own Python or NodeJS code, so that you can implement custom logic and manipulate data in powerful ways.

Seamless Integration with Dify Ecosystem

Workflow fits right into the Dify ecosystem. It offers native support for all built-in and custom tools, ensuring that you can leverage the full power of the Dify platform in your workflows.

Just like every other Dify feature, Workflow comes API-ready, allowing you to easily integrate your workflows into your existing applications and systems. And with built-in observability features, you can capture key usage data to monitor and optimize your workflows over time.

Robust Debugging and Testing

We understand that building reliable LLM applications can be challenging, that's why we've integrated robust debugging and testing utilities directly into Workflow. Our tool allows you to easily test your workflows end-to-end, making sure your application behaves as expected from start to finish. You can also test individual nodes in isolation, enabling you to pinpoint issues quickly. All test runs are automatically logged, providing you with a detailed record of your workflow's behavior. If an issue arises, you can trace back through your test history, identify the problem, and take corrective action. This level of traceability is crucial when working with complex systems like LLM applications.

Portability and Interoperability with DSL

One of the coolest features of Workflow is its support for Domain Specific Language (DSL). With DSL, you can easily export your workflows and import them into other workspaces. This provides you with a level of portability and interoperability that's unmatched in the industry. No more vendor lock-in – you have the freedom to move your workflows between systems and customize them to your heart's content. This feature opens up a world of possibilities for collaboration, sharing, and building upon the work of others in the community.

Forge Ahead

We're excited to see Workflow finally released into this world. Dify's mission has always been clear: to equip innovators like you with powerful tools to build with AI more effectively. Workflow is a giant leap towards this goal. We hope it can be your gateway to turning the unpredictable into the predictable, and push the envelope for deploying LLMs in the real world.

Dive in and enjoy! We're thrilled to be part of your journey, and can't wait to see what you'll achieve. Every aspect of Workflow is documented in our docs.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Workflow Dify LLM AI开发 拖拽式界面 领域特定语言 DSL 调试工具 测试工具
相关文章