Skip to content

aws-samples/dify-aws-tool

Dify AWS Tool

简体中文 | English

Powered by Dify Platform AWS

📑 Table of Contents

📋 Repository Introduction

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.

⚙️ Prerequisites

  • Dify environment (can be deployed with one click using AWS CloudFormation - dify.yaml)
  • AWS account and AWS experience
  • Basic Linux environment experience

🧰 Technical Resources

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

Extension Tools

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 Providers

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.

🔧 Usage Notes

Getting Help

  • Raise issues on the repository's Issues page
  • Consult the internal Lark group

qr

How to Contribute

  • Fork this repository and submit a Merge Request
  • Update README.md, adding your work (such as workflows or tools) to the appropriate table

📚 Additional Materials

Demo Videos

Related Blogs/Documents

Hands-on Labs

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published