简体中文 | English
This repository provides the source code for three plugins in Dify: Bedrock Model Provider, SageMaker Model Provider, and AWS Tools, as well as related workflows and demos for reference by Dify users and AWS users.
- Dify environment (can be deployed with one click using AWS CloudFormation - dify.yaml)
- AWS account and AWS experience
- Basic Linux environment experience
Workflows (Demo Page)
Name | Description | Link | Dependencies | Owner |
---|---|---|---|---|
Term_based_translate | Translation workflow with term mapping | DSL | Tool(Term mapping) | ybalbert |
Code_translate | Translation workflow between different code types | DSL | binc | |
Basic_RAG_Sample | Basic RAG workflow example with custom rerank node | DSL | Tool(Rerank) | ybalbert |
Andrewyng/translation-agent | Recreation of Andrew Ng's translate agent | DSL | ybalbert | |
rag_based_bot_with_tts | RAG-based bot with voice response capability | DSL | Tool(TTS) | ybalbert |
Marketing-copywriter | End-to-end marketing copywriting | DSL | Lyson Ober | |
Simple_Kimi | Simple DIY Kimi | DSL | ybalbert | |
SVG_Designer | SVG icon designer | DSL | Li Jigang | |
Education_Question_Gen | Education scenario - question generator | DSL | chuanxie | |
Apply_guardrails | Chat workflow with safety guardrails | DSL | amyli | |
LLM-Finetuning-Dataflow | LLM fine-tuning data synthesis workflow | DSL | finetuning-on-aws | caoliuh |
Image/Video Generation Workflow | Generate images and videos based on Amazon Nova Canvas and Reel | DSL | alexwuu | |
EKS Upgrade Planning | Collect EKS cluster information and generate upgrade plan | DSL | wxyan |
💡 For more workflows, check out community websites: dify101.com, difyshare.com, Awesome-Dify-Workflow
Tool Name | Tool Type | Description | Deployment Documentation | Owner |
---|---|---|---|---|
Rerank | PAAS | Text similarity ranking | Notebook | ybalbert |
TTS | PAAS | Text-to-speech synthesis | Code | ybalbert |
Bedrock Guardrails | SAAS | Text moderation tool implemented through Amazon Bedrock Guardrail's standalone ApplyGuardrail API | amyli | |
Term_multilingual_mapping | PAAS | Word segmentation/term mapping | Repo | ybalbert |
Image Translation Tool | PAAS | Translate text in images | Coming | tangqy |
Chinese Toxicity Detector | PAAS | Chinese harmful content detection | Coming | ychchen |
Transcribe Tool | SAAS | AWS transcribe service tool (ASR) | river xie | |
Bedrock Retriever | PAAS | Amazon Bedrock knowledge base retrieval tool | ychchen | |
S3 Operator | SAAS | Read and write S3 bucket content, can return presigned URLs | ybalbert | |
AWS Bedrock Nova Canvas | SAAS | Generate images based on Amazon Nova Canvas | alexwuu | |
AWS Bedrock Nova Reel | SAAS | Generate videos based on Amazon Nova Reel | alexwuu | |
OpenSearch Knn Retriever | PAAS | Retrieve data from OpenSearch using KNN method | ybalbert |
Model Name | Model Type | Deployment Documentation | Owner |
---|---|---|---|
Any open source LLM | SageMaker\LLM | Model_hub | ybalbert |
Bge-m3-rerank-v2 | SageMaker\Rerank | Notebook | ybalbert |
Bge-embedding-m3 | SageMaker\Embedding | Notebook | ybalbert |
CosyVoice | SageMaker\TTS | Code | ybalbert |
SenseVoice | SageMaker\ASR | Notebook | ybalbert |
📌 Important Note
Dify's SageMaker LLM Provider can support most open-source models. We recommend using Model_hub to deploy these models. It's very user-friendly and supports no-code model fine-tuning and deployment. If you don't want to install Model_hub, you can also refer to this guide to deploy LLMs to SageMaker using vllm.
If you want to add your Embedding/Rerank/ASR/TTS models to the Dify Sagemaker Model Provider, you should first deploy them in Amazon SageMaker. Please refer to the corresponding notebooks for deployment.
- Raise issues on the repository's Issues page
- Consult the internal Lark group
- Fork this repository and submit a Merge Request
- Update README.md, adding your work (such as workflows or tools) to the appropriate table
- Dify 1.0.0 Release & AWS Plugin Adaptation
- How to Use DeepSeek Models on AWS in Dify? Only 5 Minutes
- Dify and Model Hub Integration for Mainstream Open-Source Models
- Dify Native Content Review Extension API Calls Bedrock Guardrail to Build Responsible AI Applications
- Three Steps to Build Kimi Based on the Latest Bedrock C3.5-V2
- AWS Services as Tools Integrated into Dify
- Dify and SageMaker ASR/TTS Integration