dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

OTHER License

Downloads
2.8K
Stars
47.4K
Committers
431

Bot releases are hidden (Show)

dify - v0.10.0-beta2

Published by laipz8200 18 days ago

✨ What’s New in v0.10.0-beta2? ✨

[!IMPORTANT]
This version is for preview only, do not use in production!

[!NOTE]
We highly value your feedback! Please feel free to share your thoughts and discuss any issues using the GitHub Discussions feature. You can find the entry point for Discussions at the bottom of the release page.

🛠️ Bug Fixes

  • Docker Startup Issue: Resolved an issue where Dify 0.10.0-beta1 could not be started using Docker.

Quick Start

To upgrade to this version, follow these steps:

  1. Clone the repository using the following command:

    git clone https://github.com/langgenius/dify.git
    
  2. Switch to the beta branch:

    git checkout 0.10.0-beta2
    
  3. Then follow the Deploy with Docker Compose > Starting Dify.

We hope you find the new file processing capabilities and nodes useful in this release. Your feedback and contributions are always appreciated to help us improve Dify!

dify - v0.10.0-beta1

Published by laipz8200 19 days ago

✨ What’s New in v0.10.0-beta1?✨

[!IMPORTANT]
This version is for preview only, do not use in production!

[!NOTE]
We highly value your feedback! Please feel free to share your thoughts and discuss new features using the GitHub Discussions feature. You can find the entry point for Discussions at the bottom of the release page.

We are pleased to offer Dify 0.10.0-beta1 for early access. This release includes support for file processing in Workflows and Chatflow, allowing users to utilize File and Array<File> variable types and pass these variables through multiple nodes.

🚀 Key Features

  • File Processing in Workflows: Added support for File and Array<File> variable types, allowing seamless handling and transfer of files across various nodes in a workflow. This capability significantly expands the range of tasks you can automate with Dify.

  • Document Extractor Node: Introducing the new Document Extractor node, which serves as a case example for file usage. This node is designed to parse various types of documents into text, facilitating text extraction from different file formats for further processing.

  • List Filter Node: To make it easier for users to work with Array variables, the List Filter node has been added. This node allows you to filter, sort, and slice arrays based on specific conditions, offering enhanced control over array-type data within your workflows.

🎨 UI and UX Updates

We have also introduced some UI and UX improvements to make Dify more modern and user-friendly.

Screenshot 1 Screenshot 2 Screenshot 3

Quick Start

To upgrade to this version, follow these steps:

  1. Clone the repository using the following command:

    git clone https://github.com/langgenius/dify.git
    
  2. Switch to the beta branch:

    git checkout 0.10.0-beta1
    
  3. Then follow the Deploy with Docker Compose > Starting Dify.

We hope you find the new file processing capabilities and nodes useful in this release. Your feedback and contributions are always appreciated to help us improve Dify!

dify - v0.9.1

Published by laipz8200 19 days ago

✨ What’s New in v0.9.1? ✨

We've shipped version 0.9.1 and it’s all about tightening up those loose ends. Let’s dive into what’s been improved:

🚀 Updates & Fixes

  • Dataset Updates Refined: We've streamlined the process for updating original datasets by removing unnecessary parameters. Kudos to @JohnJyong for ironing this out in #8935 and #8939. Less clutter, smoother update experience.

  • Web Page Import via Jina: If you've hit a snag with importing web pages using Jina, the fix is now in place. Thanks to @douxc, those pesky errors should be a thing of the past in #8937.

  • Internal Dataset Request Params: Adjustments have been made to correct request parameters for internal datasets, ensuring your data requests play nice. Thanks, @YIXIAO0, for handling this in #8940.

  • Knowledge Node Retrieval: We’ve eliminated instances of multiple retrieval in the knowledge node to optimize performance and efficiency. A big shout-out to @JohnJyong again for this fix in #8942.

This version is all about refinement and stability, ensuring that the gears behind the scenes are turning smoothly. Until next time, keep building and innovating!


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout 0.9.1
    git pull origin 0.9.1
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

Full Changelog: https://github.com/langgenius/dify/compare/0.9.0...0.9.1

dify - v0.9.0

Published by laipz8200 19 days ago

✨ What’s New in v0.9.0? ✨

Get ready for a feature-packed update! Version 0.9.0 brings major enhancements, new integrations, and crucial fixes. Let’s dive into the details:

🚀 New Features

🔄 Retrieval-Augmented Generation (RAG)

External Knowledge API: Now you can connect to third-party knowledge bases seamlessly (introduced by @JohnJyong in #8913).

img_v3_02f7_b73507d9-c144-4a1d-acf4-caccec69b99g

  • Simply provide the API endpoint, API key, and external knowledge ID to link with the external knowledge base.
  • Supports retrieval and recall of external knowledge based on user queries.
  • Enables integration of external knowledge bases within Dify applications.

Website Crawling: Now supports Jina Reader as additional alternative for website crawling, converting web page URL to LLM-friendly input format. Read Sync Data from Website for details. (@mapleeit in #8761).

🧠 Models

  • Voyage AI: A new model provider added (thanks to @hwzhuhao in #8747).
  • Llama3.2: Now available with Fireworks and Groq providers for improved performance and variety (@yaoice in #8809 and @Howe829 in #8831).
  • Introduced InternLM 2.5-20b and Qwen 2.5-coder-7b (@hwzhuhao in #8862).
  • Jamba: Another new model to expand our capabilities (@longzhihun in #8878).
  • New Nomic embedding model provider introduced (@yaoice in #8640).
  • Support for o1 series models for OpenRouter (@sinomoe in #8358).
  • DeepSeek-v2.5 added as a model provider for SiliconFlow (@hwzhuhao in #8639).
  • Stream for Gemini now available (@AAEE86 in #8678).
  • Vertex AI Gemini 1.5 002 and experimental models are now supported (@hellof20 in #8767).

🛠️ Other Updates

  • Xinference TTS Stream Mode: Now live for a smoother text-to-speech experience (@leslie2046 in #8616).
  • Regenerate in Chat, Agent, and Chatflow applications (@xuzuodong in #7661).

⚙️ Enhancements

  • Improved SVG output UX for a more seamless design experience (@xuzuodong in #8765).
  • Extended Jina Embeddings V3 API parameters (@DresAaron in #8657).
  • Deprecated older Mistral models for SiliconFlow to streamline performance (@hwzhuhao in #8828).
  • Added Min-connections and Max-connections settings for pgvector (@hwzhuhao in #8841).
  • Error Handling Enhancements: Improved iteration filters and error logging for optimal performance (@hwzhuhao in #8461).
  • Enhanced operational flexibility with fully configurable WORKFLOW_ environment variables* (@fujita-h in #8644).
  • Upgraded ElasticSearch from 8.14.x to 8.15.x to keep our infrastructure up-to-date (@bowenliang123 in #8197).

🛠️ Bug Fixes

  • Fixed "Max submit count reached" error during workflow iterations (@takatost in #8595).
  • Corrected a linking error in help documents (@hjlarry in #8508).
  • iOS TTS Stream: Now fully functional on Safari 17.1+ (@likenamehaojie in #8645).
  • Resolved JSONDecodeError in llm_generator.py (@ZuzooVn in #8504).
  • Fixed errors when sending messages within chatflow and dialogs (@xuzuodong in #8627 and #8682).
  • Corrected Spark's LLM token calculation error for accurate token usage (@cherryhuahua in #8755).
  • Resolved embedded chat issues on iOS (@zxhlyh in #8718).

📚 Documentation & Misc

  • Enhanced documentation to clarify the importance of Celery Service (@fchange in #8558).
  • Updated configurations in docker-compose files and related docs (@saifeiLee and others in #8516 and #8691).
  • Added English versions for customizable model scale documentation to broaden accessibility (@hwzhuhao in #8871).

With this release, we’re truly showcasing the power of Dify! We appreciate your continued support—explore the new features and share your feedback with us!


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout 0.9.0
    git pull origin 0.9.0
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.8.3...0.9.0

dify - v0.8.3

Published by laipz8200 29 days ago

✨ What’s New in v0.8.3? ✨

Hey everyone! We’re thrilled to announce the release of version 0.8.3, and it brings something truly game-changing:

🚀 Major Feature Highlight

  • Qwen 2.5 Series Models: The highlight of this release is the integration of the Qwen 2.5 Series models, seamlessly synced with Aliyun Bailian, brought to you by @soulteary in #8538. This major update significantly expands our model offerings, providing enhanced capabilities and greater flexibility for your projects. Whether you're working with AI-driven workflows or model-intensive tasks, the Qwen 2.5 Series offers unmatched performance and versatility.

🛠️ Additional Features & Improvements

In addition to the powerful Qwen models, we’ve also made several other improvements and fixes to optimize your experience:

  • New Tools:
    • ComfyUI for Stable Diffusion: Enhanced image generation capabilities with the integration of ComfyUI by @QunBB in #8160.
    • Siliconflow Image-Gen Tool: Part of the flux dev suite, this tool, introduced by @hjlarry in #8450, further expands your creative toolkit.
  • Timeout Configuration: Thanks to @kurokobo in #8395, you now have full control over text generation and workflow timeouts via environment variables, giving you more flexibility in managing process execution times.

⚙️ Enhancements and Fixes

We've also worked on various optimizations and bug fixes to improve overall stability:

  • Image Preview Optimization: Enhanced SVG rendering and image previews for a smoother user experience, thanks to @charli117 in #8387.
  • Workflow Improvements: Including better result handling and improved multi-retrieval for datasets.
  • Bug Fixes: Numerous fixes across authorization, token usage, and vector search methods to ensure smoother operations.

This release is all about delivering cutting-edge capabilities with the Qwen 2.5 Series models and refining the platform with additional tools and fixes. Huge thanks to our incredible contributors for making this version happen! 🚀


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.8.2...0.8.3

dify - v0.8.2

Published by laipz8200 about 1 month ago

✨ What’s New in v0.8.2? ✨

Hey everyone, we've got some fresh updates in version 0.8.2 that are all about making your experience smoother and more efficient. Here's the lowdown:

🚀 New Features

  • O1-Series Models Support: We've added support for the O1-series models in the Agent App, specifically for ReACT workflows. This enhancement by @takatost in #8350 opens up new possibilities for those leveraging ReACT in their applications.

  • Service API Workflow Logs: Thanks to @fanlia in #8323, you can now access detailed workflow logs via the service API. This is a big win for those of you who need to keep a close eye on what's happening under the hood.

🛠️ Bug Fixes

  • Score Threshold Fix: Addressed an issue where the score threshold was set to none, ensuring more reliable performance metrics by @JohnJyong in #8342.

  • Workflow Var-Selector Update: Fixed a bug where the var-selector wasn't updating when edges changed in workflows. Kudos to @HiChen404 for this fix in #8259.

  • Copy and Paste Shortcut: Resolved an issue with the copy and paste shortcut in the textarea of the workflow run panel, making text manipulation a breeze again. Thanks to @YIXIAO0 for the fix in #8345.

That's it for this release! Keep those feedback and contributions coming, and let's keep making this platform even better together.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.8.1...0.8.2

dify - v0.8.1

Published by laipz8200 about 1 month ago

✨ What’s New in v0.8.1? ✨

Hello Dify Community! 🎉 We're excited to announce the release of v0.8.1, packed with enhancements, new features, and important bug fixes to elevate your experience. Let's explore what's new:

🚀 Key Features

  • ✨ OpenAI o1-Series Models Support
    Unlock the power of OpenAI's cutting-edge models with support for both o1-preview and o1-mini. These additions provide you with more flexibility and enhanced AI capabilities to meet your diverse needs.
    Special thanks to @takatost for implementing this feature in #8328.

🛠️ Improvements & Bug Fixes

Workflow Enhancements

  • Multi-Parallel Execution Fixed
    Resolved issues with workflows executing multiple parallel branches and conditional paths seamlessly.
    Credit to @takatost for #8221.

  • Accurate Branch Outputs
    Fixed simultaneous output problems in different branches of the question classifier node for more reliable results.
    Thanks to @takatost in #8225.

  • IF-ELSE Node Stability
    Addressed execution halts when IF-ELSE nodes connect to the same subsequent node, ensuring consistent workflow execution.
    Handled by @takatost in #8247.

  • Complete Data Flow in Answer Nodes
    Fixed missing content in answer node stream outputs during iterations, guaranteeing comprehensive data flow.
    Another great fix by @takatost in #8292.

  • Stream Chunk/Message Event Selector
    Take greater control over your data streams with the new from_variable_selector. This feature allows for more precise management of stream chunk and message events, ensuring smoother data flow.
    Implemented by @takatost in #8228.

Ollama Embedding Model

  • Error Resolutions
    Squashed bugs related to adding the Ollama embedding model, including pesky 500 errors, for a smoother integration experience.
    Thanks to @Howe829 in #8236 and #8252.

UI & Usability Enhancements

  • Improved Icon Alignment
    Corrected the misalignment of the upload image icon in the chat input area for a cleaner interface.
    Implemented by @hjlarry in #8263.

  • Enhanced Markdown Readability
    Adjusted markdown paragraph margins to enhance readability and overall user experience.
    Courtesy of @zxhlyh in #8289.

  • Copy Shortcut Fixes
    Resolved issues with copy shortcuts in the workflow debug and preview panels for smoother navigation.
    Thanks to @Kevin9703 in #8249.

Miscellaneous Fixes

  • Localized Translations
    Enhanced regionalization of translations to provide a more localized and user-friendly experience.
    Contributed by @thalessalazar in #8231.

  • Value Handling & Label Issues
    Fixed truthy value handling and response format label issues for better data consistency.
    Thanks to @ZuzooVn in #8208 and #8326.

  • VariableEntityType Bug
    Resolved naming convention inconsistencies by fixing the VariableEntityType bug.
    Handled by @GuoNingNing in #8299.

🌟 Other Enhancements

  • Bedrock Improvements

    • Claude Models Support
      Claude models in Bedrock now support the response_format parameter, providing more customization options.
      Thanks to @badbye in #8220.

    • Cross-Region Inference
      Added support for Bedrock cross-region inference, enhancing deployment flexibility across different regions.
      Implemented by @ybalbert001 in #8317.

  • API Key Creation for Editors
    Editors can now create API keys directly, streamlining the development workflow and enhancing security.
    Thanks to @cuckootan in #8214.


Thank you to everyone who contributed to v0.8.1! 🙌 Your feedback and support help us build something truly awesome. Keep the suggestions coming, and let's continue to innovate together! 🚀

Stay tuned for more updates and happy coding! 💻✨


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.8.0...0.8.1

dify - v0.8.0

Published by laipz8200 about 1 month ago

✨ What’s New in v0.8.0? ✨

Hey everyone, we’re excited to announce the release of version 0.8.0! This update brings a mix of new features, enhancements, and crucial bug fixes. Here’s a quick rundown:

🔥 Key Feature

Parallel Execution of Nodes in Workflows by @takatost, @zxhlyh, and @YIXIAO0 in #8192.

image

Nodes can now be executed in parallel within a workflow, greatly increasing the execution speed. This feature is especially beneficial for complex workflows that involve multiple steps or processes, allowing for quicker completion times and improved performance.

Dive deeper into the details and unleash the full potential of these new features by exploring our latest blog post and documentation!

🚀 New Features

  • Support gpt-4o-2024-08-06 and json_schema for Azure OpenAI Service: Support for the latest GPT-4o model and JSON schema for Azure OpenAI by @hjlarry in #7648
  • Support Oracle Cloud Infrastructure Generative AI Service: Oracle Cloud Infrastructure is now a supported model provider by @tmuife in #7775
  • Support Fish Audio TTS: Added support for Fish Audio Text-to-Speech models by @leng-yue in #7982

⚠️ Deprecated Features

  • Deprecate N to 1 Retrieval by @zxhlyh in #8134
    The N-to-1 retrieval strategy is officially deprecated in this version, of which the entrance will be closed but applications that have selected this feature will still be retained. We recommend switching to the more flexible multi-path retrieval strategy to boost your application's retrieval efficiency.

⚙️ Enhancements

  • Update App Published Time After Clicking Publish Button: The published time of an app now updates correctly when you click the publish button by @vicoooo26 in #7801

🛠️ Bug Fixes

  • Fix Notion Table Extract: Fixed issues with extracting data from Notion tables by @JohnJyong in #7925
  • Fix Nvidia Rerank Top N Missed: Addressed issues with Nvidia rerank top N functionality by @JohnJyong in #8185
  • Fix Claude Credential Validation: Resolved credential validation issues for Claude by @crazywoola in #8109

That’s it for this release! As always, we appreciate your feedback and contributions. Do it for you! 🚀


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.7.3...0.8.0

dify - v0.8.0-beta1

Published by laipz8200 about 2 months ago

[!IMPORTANT]
This version is for preview only, do not use in production!

✨ What’s New in v0.8.0-beta1?✨

We are excited to announce the release of Dify 0.8.0-beta1! This version introduces a significant enhancement to workflow performance by enabling the parallel execution of nodes within workflows. This improvement allows workflows to run faster and more efficiently, optimizing the use of resources and reducing overall processing time.

🚀 Key Features

  • Parallel Execution of Nodes in Workflows: Nodes can now be executed in parallel within a workflow, greatly increasing the execution speed. This feature is especially beneficial for complex workflows that involve multiple steps or processes, allowing for quicker completion times and improved performance.

    image

Quick Start

To upgrade to this version, follow these steps:

  1. Clone the repository using the following command:

    git clone https://github.com/langgenius/dify.git
    
  2. Switch to the 0.8.0-beta1 branch:

    git checkout 0.8.0-beta1
    
  3. Then following the Deploy with Docker Compose > Starting Dify.

We hope you enjoy the new features and improvements in this release. As always, we welcome your feedback and contributions to make Dify even better!

dify - v0.7.3

Published by laipz8200 about 2 months ago

✨ What’s New in v0.7.3? ✨

Hey everyone, we've just dropped version 0.7.3, and it's packed with new features, enhancements, and fixes. Let's dive into what's new:

🚀 New Features

  • Message Count: You can now monitor the message usage directly from the monitoring page by @leslie2046 in #7603.
  • Azure AI Studio Provider: Added Azure AI Studio as a provider by @helioLJ in #7549.
  • Perplexity Search Tool: Introduced a new search tool that utilizes perplexity-based techniques to enhance search capabilities by @leilei-jiang in #7861.
  • Stock Price Query Tool: Query stock prices from Alpha Vantage by @hwzhuhao in #7752.

⚙️ Enhancements

  • Langfuse View Button: Improved user interface with a new view button by @charli117 in #7684.
  • GLM Models Pricing and Max Tokens: Corrected prices and max tokens for GLM models by @orangeclk in #7882.
  • App Icon as Answer Icon: Now you can use your app icon as the answer icon by @kurokobo in #7888.
  • Array Types in Variable List: Support for array types in the available variable list by @YidaHu in #7715.
  • Question Classifier Prompt Optimization: Enhanced prompt accuracy by @JohnJyong in #4262.
  • Code Execution Configs: Added support for configurations in code execution requests by @bowenliang123 in #7704.

🛠️ Bug Fixes

  • CODE_MAX_STRING_LENGTH Config: Fixed configuration issue by @bowenliang123 in #7683.
  • Remove Useless Debug Information: Cleaned up unnecessary debug info by @erigo in #7647.
  • MyScale VectorDB Score Threshold: Set score_threshold to zero if it is None by @lqhl in #7640.
  • Dataset and Index Node ID Fix: Fixed missing dataset_id and index_node_id in document segments table by @JohnJyong in #7681.
  • Empty Knowledge Add File: Fixed issue with adding empty knowledge files by @zxhlyh in #7690.
  • Chunk Overlap Fix: Addressed None value in chunk overlap by @JohnJyong in #7703.
  • Tongyi Error Fix: Resolved 'NoneType' object error by @crazywoola in #7705.
  • Document Language Return Null: Fixed issue with document segment settings by @JiakunXu in #7719.
  • Annotation Reply Settings: Fixed settings issue by @JzoNgKVO in #7696.
  • Crawl Options Max Length: Fixed issue where max length could not be set to 0 by @iamjoel in #7758.
  • Variable Aggregator Groups: Fixed issue with passing arrays of string/number/object by @Leheng620 in #7757.
  • WebApp SSO Setting: Ensured latest value is shown on refresh by @douxc in #7795.
  • OpenAI Compatible Interface Model: Fixed error when no object is returned by @Hisir0909 in #7808.
  • Installed Apps Filter: Filtered out installed apps without an app by @YidaHu in #7799.
  • Tooltip Size: Fixed improper size setting by @YIXIAO0 in #7836.
  • Keyword Search in Application Log: Fixed issue in application log list by @realethanhsu in #7816.
  • HTTP Timeout Configs: Corrected default values and ignorance by HttpRequestNode by @bowenliang123 in #7762.
  • ECharts Crash: Fixed crash when accessing undefined objects by @zhujinle in #7853.
  • RetrievalConfig Score Threshold: Fixed assignment for zero value by @MH4GF in #7865.
  • Layout Shift on App Card Hover: Fixed layout shift issue by @yikayiyo in #7872.
  • Linked Images: Ignored linked images when image ID is None by @JohnJyong in #7890.

🌐 Internationalization

  • Russian Language Support: Added support for the Russian language by @d8rt8v in #7860.

That's all for this release! As always, thanks for your contributions and feedback. Keep them coming! 🚀


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.7.2...0.7.3

dify - v0.7.2 Latest Release

Published by laipz8200 about 2 months ago

✨ What’s New in v0.7.2? ✨

Hey everyone, we’re excited to bring you version 0.7.2 of our platform. This release is packed with new features, enhancements, and bug fixes to make your experience even better. Here’s a quick rundown:

🚀 New Features

  • Added support for dialogue count in chatflow by @iamjoel in #7440.
  • Added support for JSON Mode for Moonshot models by @oiuv in #7568.
  • Added support for Qwen text-embedding-v3 by @droxer in #7567.
  • Added support for the siliconflow text2img tool by @hjlarry in #7612.
  • Added support for the OneBot protocol tool by @RockChinQ in #7583.
  • Support for Wenxin BGE-Large and Tao embedding models by @CheneyYin in #7393.

⚙️ Enhancements

  • UI/UX Improvements:

    • Improved tooltip content to support line breaks by @hjlarry in #7424.
    • Improved the copywrite of the assigner node append mode description by @iamjoel in #7467.
    • Improved the readability of the menu collapse by @JunIce in #4099.
    • Updated theme-related CSS variables values by @iamjoel in #7442.
    • Added Langfuse view button by @charli117 in #7578.
    • Updated the "tag delete" confirm modal by @YIXIAO0 in #7522.
  • Backend Improvements:

    • Applied Ruff reformatting across various API components by @bowenliang123 in #7590, #7591, #7594, #7599, and @laipz8200 in #7645.
    • Support for CODE_MAX_PRECISION by @ZuzooVn in #7484.
    • Increased max steps to 50 in workflows by @takatost in #4252.
    • Added finish_reason to the LLM node output by @orangeclk in #7498.
    • Added support for pgvector full-text search setting by @JohnJyong in #7427.
    • Added support for sorting conversations by updated_at desc by @KinWang130 in #7348.
    • Create S3 bucket if it doesn't exist by @moyueheng in #7514.
    • Added storage type and Google Storage settings to worker by @KiyotakaMatsushita in #4266.

🛠️ Bug Fixes

  • Fixed logs not including the current day by @leslie2046 in #7426.
  • Fixed workflow end node deletion by @zxhlyh in #4240.
  • Fixed image icon not showing correctly on the left panel in the workflow web app page by @xuzuodong in #7466.
  • Fixed JSON schema not being saved correctly by @hjlarry in #7487.
  • Fixed the issue of the refine_switches param being invalid in the Novita.AI tool by @XiaoLey in #7485.
  • Fixed the tag input state lost issue by @YIXIAO0 in #7500.
  • Fixed the wrong usage of created_at on the modal for API Key by @monstaruos in #7548.
  • Fixed the workflow context menu popup issue by @YIXIAO0 in #7530.
  • Fixed incorrect duplication when no target node is selected by @edo1z in #7539.
  • Fixed voice language by @ZuzooVn in #7570.
  • Fixed score_threshold is none, return all top K documents by @gongchangwangpi in #7581.
  • Fixed the issue of not passing query parameters when the value is empty by @AmosZhu in #7585.
  • Fixed the workflow zoom range for shortcuts by @YIXIAO0 in #7563.
  • Fixed the tool node error by @luckylhb90 in #7459.
  • Fixed document error message not being cleared by @wellCh4n in #7453.
  • Fixed the issue of the refine_switches param being invalid in the Novita.AI tool by @XiaoLey in #7485.
  • Fixed the tag input state lost issue by @YIXIAO0 in #7500.
  • Fixed the wrong usage of created_at on the modal for API Key by @monstaruos in #7548.
  • Fixed the workflow context menu popup issue by @YIXIAO0 in #7530.
  • Fixed incorrect duplication when no target node is selected by @edo1z in #7539.
  • Fixed voice language by @ZuzooVn in #7570.
  • Fixed score_threshold is none, return all top K documents by @gongchangwangpi in #7581.
  • Fixed the issue of not passing query parameters when the value is empty by @AmosZhu in #7585.
  • Fixed the workflow zoom range for shortcuts by @YIXIAO0 in #7563.
  • Fixed the tool node error by @luckylhb90 in #7459.
  • Fixed document error message not being cleared by @wellCh4n in #7453.

📝 Documentation

  • Updated certbot/README.md by @eltociear in #7528.
  • Added CONTRIBUTING_VI i18n by @ZuzooVn in #7532.

That’s all for this release! As always, thank you for your contributions and feedback. Keep them coming, and happy coding! 🚀


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.7.1...0.7.2

dify - v0.7.1

Published by laipz8200 2 months ago

✨ What’s New in v0.7.1? ✨

Hey everyone, we’re excited to bring you version 0.7.1 of our platform! This release is packed with new features, enhancements, and crucial fixes. Let’s dive in:

🚀 New Features

  • Custom App Icons: Personalize your apps with custom icons by @xuzuodong in #7196.

  • OpenAI Structured Outputs Support: Now supporting OpenAI's Structured Outputs by @hjlarry in #7258.

  • Dify Sandbox v0.2.6: Install any Python package you want by @Yeuoly in #7410.

🧠 Model Updates

  • ChatGPT-4o-Latest: Added the latest ChatGPT-4o model by @hjlarry in #7289.

🛠️ New Tools

  • Jina Tokenizer Tool: Added a new tokenizer tool by @hjlarry in #7375.
  • GitLab Tool: Integrated GitLab tool by @wlrnet in #7329.

⚙️ Enhancements

  • Xinference Auth System: Enhanced support for Xinference's authentication system by @ethan-fly in #7369.
  • Ruff Formatter: Introduced Ruff Formatter for better code formatting by @laipz8200 in #7291.
  • Ruff Update: Updated Ruff from 0.5.x to 0.6.x by @bowenliang123 in #7384.
  • Rearranged API Python Dependencies by @bowenliang123 in #7391

🛠️ Bug Fixes

  • Rerank Mode Fix: Fixed missing rerank_mode when converting to DatasetEntity by @optionals in #7269.
  • Tool Test Modal: Fixed issue where parameters couldn’t be input in tool test modal by @wellCh4n in #7281.
  • Markdown Conversion: Fixed file to markdown conversion issue by @laipz8200 in #7293.
  • Image Resizing: Dify editor now supports image resizing by @crazywoola in #7296.
  • Conversation Variables: Added conversation variables in app DSL service by @laipz8200 in #7304.
  • Node and Edge Issues: Fixed inability to add node and change the edge by @aixgeek in #7303.
  • Default Values: Fixed missing default value of type array object in conversation variable modal by @JzoNgKVO in #7309.
  • Elasticsearch Docker Env: Fixed docker environment for Elasticsearch by @QIN2DIM in #7270.
  • Run History: Corrected iteration times number in run history by @iamjoel in #7318.
  • Keywords Fix: Fixed keywords issue by @crazywoola in #7357.
  • Workflow Variables: Added conversation variable to workflow by @laipz8200 in #7257.

🌐 Internationalization

  • Japanese Translation: Added JP translation for variable aggregator by @HanqingZ in #7277.
  • Fixes in Japanese Translations: Corrected translations of secret values by @yukyu30 in #7279.
  • General i18n Updates: Various internationalization updates by @ZuzooVn in #7312.

That’s all for this release! As always, thank you for your contributions and feedback. Keep building and innovating!


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.7.0...0.7.1

dify - v0.7.0

Published by laipz8200 2 months ago

✨ What’s New in v0.7.0? ✨

Hey everyone, we’ve got a fresh update for you! Version 0.7.0 is here, and it’s packed with new features, model support, tools, and enhancements. Let’s dive in:

🚀 New Features

🧠 Models

  • GPT-4o-2024-08-06 Model by @majian159 in #7046
  • GLM-4-Long Model by @ox01024 in #7070
  • Zhipu Embedding-3 Model by @orangeclk in #7100
  • Wenxin Yi-34b-Chat Model by @sulgweb in #7117
  • HuggingFace TEI Text Embedding and Rerank Model by @liuyanyi in #7132
  • Siliconflow LLM and Text Embedding Models by @alfredcai in #7090
  • 360-Zhinao Provider by @sulgweb in #7069

🛠️ Tools

  • D-ID Tool by @MatriQ in #6278
  • GitLab Tool by @wlrnet in #7179

⚙️ Enhancements

  • Elasticsearch Vector Database Support by @miendinh in #3558
  • Support for drawing with ECharts in output by @zhujinle in #6961
  • Workflow Interaction Improvements by @zxhlyh in #4214
  • Workflow Logs with Run ID Filter by @majian159 in #6833
  • Hyperlink Parsing in DOCX Documents by @ic-xu in #7017
  • Vector Field for Other VectorDB by @JohnJyong in #7051
  • Poetry Requests Timeout by @ZuzooVn in #7086
  • Update Dataset Embedding Model by @JohnJyong in #7145
  • Add Decode Option to JSON Process Tools by @laojianzi in #7138
  • Support for Non-English Characters in Exported DSL Files by @gijigae in #7042
  • Support for NEXT_TELEMETRY_DISABLED by @ZuzooVn in #7181

That’s a wrap for v0.7.0! We hope you enjoy the new features and improvements. As always, your feedback is invaluable to us. Happy coding! 🚀

For additional enhancements and updates, refer to the What's Changed section below.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.16...0.7.0

dify - v0.6.16

Published by takatost 2 months ago

✨ What’s New in v0.6.16? ✨

Hey everyone, we’re back with another update, and this one’s packed with some exciting new features, model support, and enhancements. Let’s dive right in!

🚀 Phasing Out N-to-1: Upgrading Multi-path Knowledge Retrieval

[!IMPORTANT]
We're phasing out the N-to-1 retrieval strategy on September 1, 2024, and introducing a more flexible multi-path retrieval strategy. We recommend switching to this new approach to boost your application's retrieval efficiency.

image

Learn More: https://dify.ai/blog/dify-ai-blog-n-to-1-knowledge-retrieval-legacy

🧠 Models

Llama3.1 Support

  • OpenRouter Provider: Added support for Llama3.1 series models by @sinomoe in #6595.
  • GroqCloud: Llama3.1 series models are now supported by @takatost in #6596.
  • Bedrock: Llama 3.1 support added by @longzhihun in #6645.
  • NVIDIA: Llama3.1 model support by @sulgweb in #6844.

GPT-4o Mini Support

  • Azure GPT-4o Mini: Added support for Azure GPT-4o Mini by @charli117 in #6862 and @leslie2046 in #6866.

Other Models

  • DeepSeek-Coder-v2: Added in SiliconFlow by @senseb in #6149.
  • Novita Model Provider: New model provider added by @jasonhp in #6717.
  • Solar Model Provider: Added new provider Solar by @JuHyung-Son in #6884.
  • Hunyuan-Embedding: New model support by @maybemaynot in #6657.
  • Xinference TTS: Added support for text-to-speech by @Weaxs in #6746.
  • Tool-Call for Hunyuan: Added support for tool-call by @maybemaynot in #6656.

🛠️ Tools

  • AWS Built-in Tools: Added by @ybalbert001 in #6721.
  • Serper for Google Search: New tool added for Google search by @hwzhuhao in #6790.

⚙️ Enhancements

  • Python 3.12 Support: Added Python 3.12 support for API Service by @bowenliang123 in #6771.
  • Milvus 2.4.x Support: Initial support for Milvus 2.4.x by @bowenliang123 in #6084.
  • Docker-Compose Certbot Configurations: Added with backward compatibility by @k-brahma in #6702.
  • Celery Auto-Scale: Added support for Celery auto-scaling by @ZuzooVn in #6249.
  • User Session ID Search: Enhanced App Logs search capabilities by @ZhouhaoJiang in #6638.

🧹 Cleanups

  • Remove TTS (Blocking Call): Removed blocking call for TTS by @ic-xu in #6869.

For additional enhancements and updates, refer to the What's Changed section below.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.15...0.6.16

dify - v0.6.15

Published by takatost 3 months ago

✨ What’s New in v0.6.15? ✨

Hey everyone, we’ve got a fresh update for you! Version 0.6.15 is here, and it’s packed with new features, model support, tools, and enhancements. Let’s dive in:

🚀 New Features

  • Environment Variables in Workflow: Now you can use environment variables directly in your chatflows/workflows, by @laipz8200 and @JzoNgKVO in #6515.

    Environment variables can be used to store private information and credentials. They are read-only and can be separated from the DSL file during export.

    The secret variable type is used to define sensitive information or data, with DSL settings configured for leak prevention.

  • New Prompt Generator: We’ve introduced a new prompt generator, by @iamjoel in #6514, #6525, #6564, and @ZhouhaoJiang in #6516.

🧠 Models

  • Stepfun LLM Support: Added by @forrestlinfeng in #6346.
  • OpenAI GPT-4o-mini Support: Now available, by @takatost in #6442.
  • GPT-4o-mini for OpenRouter Provider: Added by @sinomoe in #6447.
  • Amazon Sagemaker Model Provider: Integrated by @ybalbert001 in #6255.
  • Updated Ernie Models: Thanks to @Weaxs in #6454.
  • Tencent Cloud ASR Support: Added by @lancemao in #6091.

🛠️ Tools

  • Mingdao HAP Tool: Read and maintain HAP application worksheet data, implemented by @coldstone in #6257.
  • Google Translate Tool: Added by @svcvit in #6156.
  • Tianditu Tool: Integrated by @listeng in #6320.
  • Spider Web Scraper & Crawler Tool: Added by @WilliamEspegren in #5725.
  • Getimg.ai Integration: Added by @MatriQ in #6260.

⚙️ Enhancements

  • Full Text Search with Oracle23ai as Vector DB: Added by @tmuife in #6559.
  • API Key Support for Xinference: Integrated by @themanforfree in #6417.
  • Fix for Anthropic Header Issue: Quickly resolved by @richards199999 in #6445.

For additional enhancements and updates, refer to the What's Changed section below.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.14...0.6.15

dify - v0.6.14

Published by takatost 3 months ago

✨ What’s New in v0.6.14? ✨

Hey everyone, we’ve got some exciting updates in version 0.6.14. Here’s a quick look at what’s new and improved:

🚀 New Features

  • TTS Streaming Config: Text-to-Speech support automatic voice playback and streaming by @ic-xu in #5492.

  • Workflow Enhancements:

    • Added elif support to the if-else workflow node, and expanded condition values from only supporting static values to accepting variables by @zxhlyh in #6072 and @ZhouhaoJiang in #6094.

  • New Integrations:

    • Added support for PerfXCloud and Qwen series by @soulteary in #6117.
    • Introduced ernie-4.0-turbo-8k-preview by @Littlesheepxy in #6132.
    • Added Zhipu CogView 3 tool by @ox01024 in #6210.
    • Added support for MyScale vector database by @jewelzqiu in #6092.
    • Added support for AnalyticDB vector store by @lpdink in #5586.
  • Support for importing DSL from a URL by @takatost in #6287 and @zxhlyh in #6286.

  • Implemented rate limiting for apps to manage the number of concurrent calls to the App Service API by setting the environment variable APP_MAX_ACTIVE_REQUESTS by @liuzhenghua in #5844.

For additional enhancements and updates, refer to the What's Changed section below.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.13...0.6.14

dify - v0.6.13

Published by takatost 3 months ago

✨ What’s New in v0.6.13? ✨

Hey everyone, we’ve just dropped version v0.6.13, and it’s packed with some routine updates and minor fixes. Let’s dive in:

🚀 New Features

  • Forgot Password Feature by @xielong in #5534
    Finally, you can reset your password by sending an email if you forget it.

  • Nominatim OpenStreetMap Search Tool by @chazzhou in #5789

  • Firecrawl Tools: Scrape and Search by @ahasasjeb in #6016

  • Oracle OCI Object Storage Support by @hymvp in #5616

  • Llama 3 and Mixtral Model Options in ddgo_ai.yaml by @k8scat in #5979

  • Moonshot and GLM Base Models for Volcengine Provider by @sinomoe in #6029

⚙️ Enhancements

  • Correctly Delete Applications Using Celery Workers by @chazzhou in #5787
    More completely remove App associated database records using celery queue.

  • WeCom Bot Markdown Message Support by @quicksandznzn in #5791

  • Claude3 Function Calling by @longzhihun in #5889

  • Request Params Field in Jina Reader Tool by XiaoLey in #5610

For additional enhancements and updates, refer to the What's Changed section below.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.12-fix1...0.6.13

dify - v0.6.12-fix1

Published by takatost 4 months ago

🛠️ v0.6.12-fix1

[!WARNING]
Fixed the issue where the WebApp URL was incorrect and the problem where the model and tools icons weren’t showing up after starting from Docker Compose with default .env.


🎉 Upgrade to new docker compose deployment

Key Changes

  1. Persistent Custom Environment Variables: Users can now declare environment variables in .env that remain persistent across deployments. This change ensures that custom configurations are not lost during upgrades or redeployments.

  2. Unified Vector Database Services: All vector database services have been consolidated into a single Docker file. Users can switch between different vector databases by modifying the VECTOR_STORE environment variable in your local .env. This simplifies the management of various vdb services and allows for more dynamic deployments.

  3. Mandatory .env File: Unlike the previous deployment method, the new method requires an [.env] file before running docker compose up. Users should start by copying the .env.example file to create their own .env file. This step is crucial for configuring the deployment to meet specific needs.

  4. Legacy Support: The previous deployment files have been moved to a docker-legacy directory. These files will no longer be maintained, but they are available for use if needed.

Migrating

For existing users who's customized docker-compose.yaml, ssrf_proxy/squid.conf or nginx/conf.d/default.conf, you may need to modify the corresponding environment variables in .env to reflect your existing changes.

We are actively seeking feedback from the community to refine and enhance the deployment process. As more users adopt this new method, we will continue to make improvements based on your experiences and suggestions.

How to Get Started

To get started with the new deployment method:

  • Ensure you have Docker and Docker Compose installed on your system.
  • Navigate to the new docker directory.
  • Copy the docker/.env.example file to a new file named .env and customize it as needed.
  • Run docker compose up to start the services.

We encourage all users to transition to this new method to take advantage of the improved flexibility and configuration options. Your feedback during this beta phase is invaluable and will help us make the deployment process even better.

For detailed configuration options and environment variable settings, refer to the .env.example file and the Docker Compose configuration files in the docker directory.


Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.

What's Changed

Full Changelog: https://github.com/langgenius/dify/compare/0.6.12...0.6.12-fix1

dify - v0.6.12

Published by takatost 4 months ago

✨ What’s New in v0.6.12? ✨

[!IMPORTANT]
In the current version:

  1. We have deprecated pip as the primary package management tool in favor of Poetry for the Dify API service.
  2. We have optimized the self-hosted deployment experience with Docker Compose by adding support for .env files and allowing the option to independently select Vector Database at startup.
    The previous Docker Compose configuration has been moved to the docker-legacy directory.
    For more details see Upgrade to new docker compose deployment below.

Hey everyone, we’ve got a fresh update for you with v0.6.12, and it’s packed with new features, tools, and improvements. Let’s dive in:

🚀 New Features

  • Tracing with LangSmith and Langfuse: Now you can trace your apps traffic with LangSmith and Langfuse, thanks to @ZhouhaoJiang in #5483 and @iamjoel in #5487.
    🌟 Read the blog.
  • Undo/Redo for Workflow Editor: Finally, you can undo and redo your actions in the workflow editor by @perzeuss in #3927.

  • Import and Overwrite Workflow DSL: Importing and overwriting workflow DSL is now supported, you can now manage versions indirectly through DSL Export & Import by @takatost in #5511.

  • New Icons: We’ve replaced the old icons with fresh new ones by @zxhlyh in #5412.

  • Hide Workflow Steps: You now have the option to hide workflow steps in WebApp settings by @crazywoola in #5436.

  • Self-Hosting for Firecrawl Tool: The Firecrawl tool now supports self-hosting by @keita69 in #5528.

  • Latex in Chat Messages: Support for displaying Latex in chat messages by @ZuzooVn in #5001.

  • Citations and Attributions: These are now enabled by default by @takatost in #5508.

🛠️ Tools

  • JSON Process Tool: Added a new tool for processing JSON by @scotlandowl in #5555.
  • Serply Search Tools: Added Serply Web/Job/Scholar/News Search tools for more options by @googio in #5186.
  • Novita AI Image Generation Tool: This tool now supports model search, text-to-image, and create tile functionalities by @XiaoLey in #5308.
  • Create JSON Message API in Tool: Added an implements for creating JSON messages in Tool response by @hjlarry in #5440.

🤖 Model Support

  • Jina New Pre-defined Rerankers: Including jina-reranker-v2 by @takatost in #5657.

  • Bedrock Command R Models: Added support for these models by @realjustinwu in #4521.

  • Claude-3-5-Sonnet-20240620: Support added for this model by @takatost in #5452 and @soulteary in #5461.

  • Vertex AI Claude-3-5-Sonnet@20240620: Support added by @hellof20 in #5475.

  • Predefined Models for OpenRouter: Added support by @sinomoe in #5494.

  • Qwen LLM: Added support by @LiXuemin in #5659.

  • Spark 4.0: Added support by @leslie2046 in #5688.

🗄️ Vector Database & Storage

  • OpenSearch as a Vector Datasource: Support added by @baojingyu in #5322.
  • Oracle23ai as a Vector Datasource: Added support by @tmuife in #5342.
  • Tencent COS Storage: Support added by @quicksandznzn in #5297.

🏗️ API Service Infrastructures

  • Improved Deployment Flow: Added .env to Docker Compose for better deployment by @guchenhe in #4299.
  • Pydantic Settings for Config: Introduced for config definition and validation by @bowenliang123 in #5202.
  • Poetry for Dependencies: Now supported in the API’s Dockerfile by @bowenliang123 in #5105.
  • Removed Pip Support: Pip support for the API service has been removed by @takatost in #5453.

For additional enhancements and updates, refer to the What's Changed section below.


🎉 Upgrade to new docker compose deployment

Key Changes

  1. Persistent Custom Environment Variables: Users can now declare environment variables in .env that remain persistent across deployments. This change ensures that custom configurations are not lost during upgrades or redeployments.

  2. Unified Vector Database Services: All vector database services have been consolidated into a single Docker file. Users can switch between different vector databases by modifying the VECTOR_STORE environment variable in your local .env. This simplifies the management of various vdb services and allows for more dynamic deployments.

  3. Mandatory .env File: Unlike the previous deployment method, the new method requires an [.env] file before running docker compose up. Users should start by copying the .env.example file to create their own .env file. This step is crucial for configuring the deployment to meet specific needs.

  4. Legacy Support: The previous deployment files have been moved to a docker-legacy directory. These files will no longer be maintained, but they are available for use if needed.

Migrating

For existing users who's customized docker-compose.yaml, ssrf_proxy/squid.conf or nginx/conf.d/default.conf, you may need to modify the corresponding environment variables in .env to reflect your existing changes.

We are actively seeking feedback from the community to refine and enhance the deployment process. As more users adopt this new method, we will continue to make improvements based on your experiences and suggestions.

How to Get Started

To get started with the new deployment method:

  • Ensure you have Docker and Docker Compose installed on your system.
  • Navigate to the new docker directory.
  • Copy the docker/.env.example file to a new file named .env and customize it as needed.
  • Run docker compose up to start the services.

We encourage all users to transition to this new method to take advantage of the improved flexibility and configuration options. Your feedback during this beta phase is invaluable and will help us make the deployment process even better.

For detailed configuration options and environment variable settings, refer to the .env.example file and the Docker Compose configuration files in the docker directory.

Upgrade Guide

Docker compose deployments

[!WARNING]
The docker-compose.yaml has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to new docker compose deployment" section above for usage and migration tips.

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    cd api
    poetry install
    
  4. Then, let's run the migration script:

    poetry shell
    flask db upgrade
    
  5. Finally, run API server, Worker and Web frontend Server again.

What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.11...0.6.12

dify - v0.6.11

Published by takatost 4 months ago

✨ What’s New in v0.6.11? ✨

Hey everyone, we’ve got a fresh update for you! Version 0.6.11 is here, and it’s packed with new features, enhancements, and fixes. Let’s dive into what’s changed:

🚀 New Features

📜 Knowledge

  • 🔥 Firecrawl Support: Use Firecrawl as a "Sync from website" solution in Knowledge by @iamjoel in #5226 and @JohnJyong @nickscamara @guchenhe in #5232.

🚀 Workflow

  • Note Support: Add notes directly into your workflows to enhance documentation and readability when editing or reviewing shared DSLs by @zxhlyh in #5164.

🤖 Model Support

  • Jina: Support for Jina-CLIP-v1 embedding model by @sinomoe in #5146.
  • Zhipu: Added GLM4 new models and Zhipu embedding-2 by @orangeclk in #5089.
  • ERNIE-4.0-8K-Latest: Support for ERNIE-4.0-8K-Latest by @iamsk in #5216.
  • Doubao: Support for Doubao LLM function calling by @sinomoe in #5100.
  • Hunyuan: Support for Hunyuan LLM models by @xielong in #5013.
  • SiliconFlow: Added support for SiliconFlow by @orangeclk in #5129.
  • Novita.ai: Added Novita.ai as a model provider by @jasonhp in #4961.

🛠️ Tools

  • DuckDuckGo Tools: Added DuckDuckGo image search, translate, and AI chat tools by @hjlarry in #5074.
  • Feishu multi-dimensional table Tools: Added Feishu multi-dimensional table operation tools by @hgnulb in #5213.

🗄️ Vector DB

  • TiDB Vector: Support for TiDB vector by @Weaxs in #4588.
  • Chroma Vector Store: Support for Chroma vector store by @bowenliang123 in #5015.
  • Tencent Vector DB: Support for Tencent vector DB by @quicksandznzn in #3568.

☁️ AWS

  • EKS Pod Identity: Upgraded boto3 library to support EKS Pod Identity by @nanasi880 in #5064.
  • IAM Role for Bedrock: Allow using IAM Role for Bedrock by @tmokmss in #5188.
  • AWS S3 IAM Check: Added AWS S3 IAM check by @JohnJyong in #5174.

🏗️ API Service Infrastructures

  • Poetry Support: Initial support for the Poetry build tool by @MatriQ in #4513.

    ⚠️ In the next version, we will deprecate pip as the primary package management tool for Dify api service, currently Poetry and pip coexist.

  • Poetry in CI: Use Poetry as the default build system for dependency installation in CI jobs by @bowenliang123 in #5088.

  • Pydantic Migration: Modernized validation by migrating Pydantic from 1.x to 2.x by @bowenliang123 in #4592.

Other Enhancements

  • Editor User Permission: New editor user permission profile by @chazzhou in #4435.
  • Memory Messages Limit: Set default memory messages limit to infinite by @takatost in #5002.
  • DOCX Image Handling: Improved handling of external images when extracting DOCX images by @JohnJyong in #5024.
  • Dataset Delete Endpoint: Added dataset delete endpoint by @perzeuss in #5048.
  • Knowledge Retrieval: Optimized knowledge retrieval performance by batching dataset queries by @wangiii in #4917.
  • Jina Tools: Added optional API key, proxy server, and bypass cache parameters to Jina tools by @XiaoLey in #5197.
  • HTTP Request Fix: Fixed HTTP request delete method not working by @th3n00b13 in #4975.

For additional enhancements and updates, refer to the What's Changed section below.

Upgrade Guide

Docker compose deployments

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
    
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
    
  3. Stop the service,Command, please execute in the docker directory

    docker compose down
    
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
    
  5. Upgrade services

    docker compose up -d
    

Source Code deployments

  1. Stop API server, Worker and Web frontend Server.

  2. Get the latest code from the main branch:

    git checkout main
    git pull origin main
    
  3. Update Python dependencies:

    • If using pip

      cd api
      pip install -r requirements.txt
      
    • If using poetry

      cd api
      poetry install
      
  4. Then, let's run the migration script:

    • If using pip

      flask db upgrade
      
    • If using poetry

      cd api
      poetry run python -m flask db upgrade
      
  5. Finally, run API server, Worker and Web frontend Server again.

What's Changed

New Contributors

Full Changelog: https://github.com/langgenius/dify/compare/0.6.10...0.6.11