-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: NEW WORKFLOW ENGINE #3160
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dosubot
bot
added
size:XXL
This PR changes 1000+ lines, ignoring generated files.
🌊 feat:workflow
Workflow related stuff.
labels
Apr 8, 2024
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
14 tasks
dengpeng
pushed a commit
to dengpeng/dify
that referenced
this pull request
Jun 16, 2024
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
HuberyHuV1
pushed a commit
to HuberyHuV1/dify
that referenced
this pull request
Jul 22, 2024
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: jyong <718720800@qq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🌊 feat:workflow
Workflow related stuff.
size:XXL
This PR changes 1000+ lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introducing Dify Workflow! 🎉
The much-anticipated workflow feature is here: In a nutshell, workflow provides a visual canvas for defining complex tasks as smaller, manageable steps (nodes). This reduces reliance on prompt engineering and LLM agent capabilities, taking the stability and reproducibility of your LLM applications to the next level by letting you be in control.
There are two Workflow application types with this update:
Workflow App
Targeting Automation and Batch Processing: This is ideal for translation, data analysis, content generation, email automation, and more.
Chatflow App (A Sub-Type of Chatbot)
For Conversational Applications: Suitable for customer service, semantic search, and more conversational apps requiring multi-step logic in crafting the response.
Compared to the regular Workflow app type, Chatflow adds chat-specific features such as conversation history support (Memory), tagged replies, an Answer node type for streaming responses, and support for rich text and images.
For more information, please visit: https://docs.dify.ai/features/workflow/introduce
Other Enhancements:
Optimized UI flow for app creation.
Conversion support from various basic application types to Workflow-based applications.
Dify's official app templates are now available in self-hosted mode.
Support for adding descriptions to applications.
Support for porting applications in and out of Dify with DSL.
Under the hood, we also refactored the underlying execution logic of all app types for cleaner architecture and a tidier repo.
Update Guide
If you need to upgrade from
0.6.0-preview-workflow.1
, you will need to connect to PostgreSQL and execute the following SQL (migration inserted in the main branch) to ensure data integrity.Docker compose deployments:
Get the latest code from the main branch:
Go to the next step and update to the latest image:
cd docker docker compose up -d
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
docker compose exec api flask convert-to-agent-apps
Source Code deployments:
Stop API server, Worker and Web frontend Server.
Get the latest code from the main branch:
Update Python dependencies:
cd api pip install -r requirements.txt
Then, let's run the migration script:
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
Finally, run API server, Worker and Web frontend Server again.