diff --git a/docs.json b/docs.json index 47a1b692..e42e4f80 100644 --- a/docs.json +++ b/docs.json @@ -68,7 +68,9 @@ "group": "Application Orchestration", "pages": [ "en/guides/application-orchestrate/readme", + "en/guides/application-orchestrate/creating-an-application", "en/guides/application-orchestrate/chatbot-application", + "en/guides/application-orchestrate/multiple-llms-debugging", "en/guides/application-orchestrate/text-generator", "en/guides/application-orchestrate/agent", { @@ -90,6 +92,8 @@ "group": "Node Description", "pages": [ "en/guides/workflow/node/start", + "en/guides/workflow/node/end", + "en/guides/workflow/node/answer", "en/guides/workflow/node/llm", "en/guides/workflow/node/knowledge-retrieval", "en/guides/workflow/node/question-classifier", @@ -105,8 +109,6 @@ "en/guides/workflow/node/http-request", "en/guides/workflow/node/agent", "en/guides/workflow/node/tools", - "en/guides/workflow/node/end", - "en/guides/workflow/node/answer", "en/guides/workflow/node/loop" ] }, @@ -175,10 +177,10 @@ }, { "group": "Publishing", - "pages": [ - { - "group": "Publish as a Web App", + "pages": [ { + "group": "Publish as a Single-page Web App", "pages": [ + "en/guides/application-publishing/launch-your-webapp-quickly/README", "en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings", "en/guides/application-publishing/launch-your-webapp-quickly/text-generator", "en/guides/application-publishing/launch-your-webapp-quickly/conversation-application" @@ -204,8 +206,32 @@ { "group": "Integrate External Ops Tools", "pages": [ + "en/guides/monitoring/integrate-external-ops-tools/README", + "en/guides/monitoring/integrate-external-ops-tools/integrate-langsmith", "en/guides/monitoring/integrate-external-ops-tools/integrate-langfuse", - "en/guides/monitoring/integrate-external-ops-tools/integrate-langsmith" + "en/guides/monitoring/integrate-external-ops-tools/integrate-opik" + ] + } + ] + }, + { + "group": "Extensions", + "pages": [ + { + "group": "API-Based Extension", + "pages": [ + "en/guides/extension/api-based-extension/README", + "en/guides/extension/api-based-extension/external-data-tool", + "en/guides/extension/api-based-extension/cloudflare-workers", + "en/guides/extension/api-based-extension/moderation" + ] + }, + { + "group": "Code-Based Extension", + "pages": [ + "en/guides/extension/code-based-extension/README", + "en/guides/extension/code-based-extension/external-data-tool", + "en/guides/extension/code-based-extension/moderation" ] } ] @@ -213,6 +239,7 @@ { "group": "Collaboration", "pages": [ + "en/guides/workspace/README", "en/guides/workspace/app", "en/guides/workspace/invite-and-manage-members" ] @@ -352,7 +379,7 @@ "group": "Development", "pages": [ { - "group": "DifySandbox", + "group": "Backend", "pages": [ "en/development/backend/sandbox/README", "en/development/backend/sandbox/contribution" @@ -389,7 +416,6 @@ "en/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app", "en/learn-more/use-cases/private-ai-ollama-deepseek-dify", "en/learn-more/use-cases/build-an-notion-ai-assistant", - "en/learn-more/use-cases/building-an-ai-thesis-slack-bot", "en/learn-more/use-cases/create-a-midjourney-prompt-bot-with-dify", "en/learn-more/use-cases/create-an-ai-chatbot-with-business-data-in-minutes", "en/learn-more/use-cases/how-to-integrate-dify-chatbot-to-your-wix-website", @@ -432,8 +458,8 @@ "group": "User Agreement", "pages": [ "en/policies/agreement/README", - "https://dify.ai/terms", - "https://dify.ai/privacy", + "en/policies/agreement/tos", + "en/policies/agreement/privacy", "en/policies/agreement/get-compliance-report" ] } @@ -928,8 +954,8 @@ "group": "用户协议", "pages": [ "zh-hans/policies/agreement/README", - "https://dify.ai/terms", - "https://dify.ai/privacy", + "zh-hans/policies/agreement/tos", + "zh-hans/policies/agreement/privacy", "zh-hans/policies/agreement/get-compliance-report" ] } @@ -1133,7 +1159,8 @@ "group": "外部Opsツール統合", "pages": [ "ja-jp/guides/monitoring/integrate-external-ops-tools/integrate-langfuse", - "ja-jp/guides/monitoring/integrate-external-ops-tools/integrate-langsmith" + "ja-jp/guides/monitoring/integrate-external-ops-tools/integrate-langsmith", + "ja-jp/guides/monitoring/integrate-external-ops-tools/integrate-opik" ] } ] @@ -1385,8 +1412,8 @@ "group": "ユーザ規約", "pages": [ "ja-jp/policies/agreement/README", - "https://dify.ai/terms", - "https://dify.ai/privacy", + "ja-jp/policies/agreement/tos", + "ja-jp/policies/agreement/privacy", "ja-jp/policies/agreement/get-compliance-report" ] } @@ -1399,17 +1426,29 @@ ] }, "redirects": [ + { + "source": "plugins/schema-definition/model", + "destination": "en/plugins/schema-definition/model/model-designing-rules" + }, + { + "source": "plugins/schema-definition", + "destination": "en/plugins/schema-definition/manifest" + }, + { + "source": "guides/application-orchestrate/app-toolkits", + "destination": "guides/application-orchestrate/app-toolkits/readme" + }, { "source": "ja-jp/plugins/plugin-auto-publish-pr", - "destination": "ja-jp/plugins/publish-plugins/plugin-auto-publish-pr.mdx" + "destination": "ja-jp/plugins/publish-plugins/plugin-auto-publish-pr" }, { "source": "zh-hans/plugins/plugin-auto-publish-pr", - "destination": "zh-hans/plugins/publish-plugins/plugin-auto-publish-pr.mdx" + "destination": "zh-hans/plugins/publish-plugins/plugin-auto-publish-pr" }, { "source": "en/plugins/plugin-auto-publish-pr", - "destination": "en/plugins/publish-plugins/plugin-auto-publish-pr.mdx" + "destination": "en/plugins/publish-plugins/plugin-auto-publish-pr" }, { "source": "zh-hans/getting-started/install-self-hosted", @@ -2292,16 +2331,16 @@ "destination": "/en/plugins/schema-definition/reverse-invocation-of-the-dify-service/node" }, { - "source": "/plugins/best-practice/readme", - "destination": "/en/plugins/best-practice/readme" + "source": "/plugins/best-practice", + "destination": "/en/plugins/best-practice/README" }, { "source": "/plugins/best-practice/develop-a-slack-bot-plugin", "destination": "/en/plugins/best-practice/develop-a-slack-bot-plugin" }, { - "source": "/plugins/publish-plugins/readme", - "destination": "/en/plugins/publish-plugins/readme" + "source": "/plugins/publish-plugins", + "destination": "/en/plugins/publish-plugins/README" }, { "source": "/plugins/publish-plugins/publish-to-dify-marketplace/readme", @@ -2328,8 +2367,8 @@ "destination": "/en/plugins/faq" }, { - "source": "/development/backend/readme", - "destination": "/en/development/backend/readme" + "source": "/development/backend", + "destination": "/en/development/backend/sandbox/README" }, { "source": "/development/backend/sandbox/readme", @@ -2340,8 +2379,8 @@ "destination": "/en/development/backend/sandbox/contribution" }, { - "source": "/development/models-integration/readme", - "destination": "/en/development/models-integration/readme" + "source": "/development/models-integration", + "destination": "/en/development/models-integration/hugging-face" }, { "source": "/development/models-integration/hugging-face", @@ -2380,16 +2419,16 @@ "destination": "/en/development/models-integration/aws-bedrock-deepseek" }, { - "source": "/development/migration/readme", - "destination": "/en/development/migration/readme" + "source": "/development/migration", + "destination": "/en/development/migration/migrate-to-v1" }, { "source": "/development/migration/migrate-to-v1", "destination": "/en/development/migration/migrate-to-v1" }, { - "source": "/learn-more/use-cases/readme", - "destination": "/en/learn-more/use-cases/readme" + "source": "/learn-more/use-cases", + "destination": "/en/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app" }, { "source": "/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app", @@ -2428,16 +2467,16 @@ "destination": "/en/learn-more/use-cases/building-an-ai-thesis-slack-bot" }, { - "source": "/learn-more/extended-reading/readme", - "destination": "/en/learn-more/extended-reading/readme" + "source": "/learn-more/extended-reading", + "destination": "/en/learn-more/extended-reading/what-is-llmops" }, { "source": "/learn-more/extended-reading/what-is-llmops", "destination": "/en/learn-more/extended-reading/what-is-llmops" }, { - "source": "/learn-more/extended-reading/retrieval-augment/readme", - "destination": "/en/learn-more/extended-reading/retrieval-augment/readme" + "source": "/learn-more/extended-reading/retrieval-augment", + "destination": "/en/learn-more/extended-reading/retrieval-augment/README" }, { "source": "/learn-more/extended-reading/retrieval-augment/hybrid-search", @@ -2456,8 +2495,8 @@ "destination": "/en/learn-more/extended-reading/how-to-use-json-schema-in-dify" }, { - "source": "/learn-more/faq/readme", - "destination": "/en/learn-more/faq/readme" + "source": "/learn-more/faq", + "destination": "/en/learn-more/faq/install-faq" }, { "source": "/learn-more/faq/install-faq", @@ -2485,7 +2524,7 @@ }, { "source": "/features/workflow", - "destination": "/en/features/workflow" + "destination": "/en/guides/workflow/README" } ], "navbar": { @@ -2504,7 +2543,7 @@ "footer": { "socials": { "x": "https://x.com/dify_ai", - "github": "https://github.com/langgenius/dify-docs", + "github": "https://github.com/langgenius/dify-docs-mintlify", "linkedin": "https://www.linkedin.com/company/langgenius" } } diff --git a/en/SUMMARY.md b/en/SUMMARY.md index 2d08be43..23149302 100644 --- a/en/SUMMARY.md +++ b/en/SUMMARY.md @@ -2,248 +2,248 @@ ## Getting Started -* [Welcome to Dify](README.md) - * [Features and Specifications](getting-started/readme/features-and-specifications.md) - * [List of Model Providers](getting-started/readme/model-providers.md) -* [Dify Community](getting-started/install-self-hosted/README.md) - * [Deploy with Docker Compose](getting-started/install-self-hosted/docker-compose.md) - * [Start with Local Source Code](getting-started/install-self-hosted/local-source-code.md) - * [Deploy with aaPanel](getting-started/install-self-hosted/bt-panel.md) - * [Start Frontend Docker Container Separately](getting-started/install-self-hosted/start-the-frontend-docker-container.md) - * [Environment Variables Explanation](getting-started/install-self-hosted/environments.md) - * [FAQs](getting-started/install-self-hosted/faqs.md) -* [Dify Cloud](getting-started/cloud.md) -* [Dify Premium on AWS](getting-started/dify-premium-on-aws.md) +* [Welcome to Dify](README) + * [Features and Specifications](getting-started/readme/features-and-specifications) + * [List of Model Providers](getting-started/readme/model-providers) +* [Dify Community](getting-started/install-self-hosted/README) + * [Deploy with Docker Compose](getting-started/install-self-hosted/docker-compose) + * [Start with Local Source Code](getting-started/install-self-hosted/local-source-code) + * [Deploy with aaPanel](getting-started/install-self-hosted/bt-panel) + * [Start Frontend Docker Container Separately](getting-started/install-self-hosted/start-the-frontend-docker-container) + * [Environment Variables Explanation](getting-started/install-self-hosted/environments) + * [FAQs](getting-started/install-self-hosted/faqs) +* [Dify Cloud](getting-started/cloud) +* [Dify Premium on AWS](getting-started/dify-premium-on-aws) ## Guides -* [Model](guides/model-configuration/README.md) - * [Add New Provider](guides/model-configuration/new-provider.md) - * [Predefined Model Integration](guides/model-configuration/predefined-model.md) - * [Custom Model Integration](guides/model-configuration/customizable-model.md) - * [Interfaces](guides/model-configuration/interfaces.md) - * [Schema](guides/model-configuration/schema.md) - * [Load Balancing](guides/model-configuration/load-balancing.md) -* [Application Orchestration](guides/application-orchestrate/README.md) - * [Create Application](guides/application-orchestrate/creating-an-application.md) - * [Chatbot Application](guides/application-orchestrate/chatbot-application.md) - * [Multiple Model Debugging](guides/application-orchestrate/multiple-llms-debugging.md) - * [Agent](guides/application-orchestrate/agent.md) - * [Application Toolkits](guides/application-orchestrate/app-toolkits/README.md) - * [Moderation Tool](guides/application-orchestrate/app-toolkits/moderation-tool.md) -* [Workflow](guides/workflow/README.md) - * [Key Concepts](guides/workflow/key-concepts.md) - * [Variables](guides/workflow/variables.md) - * [Node Description](guides/workflow/node/README.md) - * [Start](guides/workflow/node/start.md) - * [End](guides/workflow/node/end.md) - * [Answer](guides/workflow/node/answer.md) - * [LLM](guides/workflow/node/llm.md) - * [Knowledge Retrieval](guides/workflow/node/knowledge-retrieval.md) - * [Question Classifier](guides/workflow/node/question-classifier.md) - * [Conditional Branch IF/ELSE](guides/workflow/node/ifelse.md) - * [Code Execution](guides/workflow/node/code.md) - * [Template](guides/workflow/node/template.md) - * [Doc Extractor](guides/workflow/node/doc-extractor.md) - * [List Operator](guides/workflow/node/list-operator.md) - * [Variable Aggregator](guides/workflow/node/variable-aggregator.md) - * [Variable Assigner](guides/workflow/node/variable-assigner.md) - * [Iteration](guides/workflow/node/iteration.md) - * [Parameter Extraction](guides/workflow/node/parameter-extractor.md) - * [HTTP Request](guides/workflow/node/http-request.md) - * [Agent](guides/workflow/node/agent.md) - * [Tools](guides/workflow/node/tools.md) - * [Loop](guides/workflow/node/loop.md) - * [Shortcut Key](guides/workflow/shortcut-key.md) - * [Orchestrate Node](guides/workflow/orchestrate-node.md) - * [File Upload](guides/workflow/file-upload.md) - * [Error Handling](guides/workflow/error-handling/README.md) - * [Predefined Error Handling Logic](guides/workflow/error-handling/predefined-error-handling-logic.md) - * [Error Type](guides/workflow/error-handling/error-type.md) - * [Additional Features](guides/workflow/additional-features.md) - * [Debug and Preview](guides/workflow/debug-and-preview/README.md) - * [Preview and Run](guides/workflow/debug-and-preview/yu-lan-yu-yun-hang.md) - * [Step Run](guides/workflow/debug-and-preview/step-run.md) - * [Conversation/Run Logs](guides/workflow/debug-and-preview/log.md) - * [Checklist](guides/workflow/debug-and-preview/checklist.md) - * [Run History](guides/workflow/debug-and-preview/history.md) - * [Application Publishing](guides/workflow/publish.md) - * [Bulletin: Image Upload Replaced by File Upload](guides/workflow/bulletin.md) -* [Knowledge](guides/knowledge-base/README.md) - * [Create Knowledge](guides/knowledge-base/create-knowledge-and-upload-documents.md) - * [1. Import Text Data](guides/knowledge-base/create-knowledge-and-upload-documents/1.-import-text-data/README.md) - * [1.1 Import Data from Notion](guides/knowledge-base/create-knowledge-and-upload-documents/1.-import-text-data/1.1-import-data-from-notion.md) - * [1.2 Import Data from Website](guides/knowledge-base/sync-from-website.md) - * [2. Choose a Chunk Mode](guides/knowledge-base/create-knowledge-and-upload-documents/2.-choose-a-chunk-mode.md) - * [3. Select the Indexing Method and Retrieval Setting](guides/knowledge-base/create-knowledge-and-upload-documents/3.-select-the-indexing-method-and-retrieval-setting.md) - * [Manage Knowledge](guides/knowledge-base/knowledge-and-documents-maintenance.md) - * [Maintain Documents](guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents.md) - * [Maintain Knowledge via API](guides/knowledge-base/knowledge-and-documents-maintenance/maintain-dataset-via-api.md) - * [Metadata](guides/knowledge-base/metadata.md) - * [Integrate Knowledge Base within Application](guides/knowledge-base/integrate-knowledge-within-application.md) - * [Retrieval Test / Citation and Attributions](guides/knowledge-base/retrieval-test-and-citation.md) - * [Knowledge Request Rate Limit](guides/knowledge-base/knowledge-request-rate-limit.md) - * [Connect to an External Knowledge Base](guides/knowledge-base/connect-external-knowledge.md) - * [External Knowledge API](guides/knowledge-base/external-knowledge-api-documentation.md) -* [Tools](guides/tools/README.md) - * [Quick Tool Integration](guides/tools/quick-tool-integration.md) - * [Advanced Tool Integration](guides/tools/advanced-tool-integration.md) - * [Tool Configuration](guides/tools/tool-configuration/README.md) - * [Google](guides/tools/tool-configuration/google.md) - * [Bing](guides/tools/tool-configuration/bing.md) - * [SearchApi](guides/tools/tool-configuration/searchapi.md) - * [StableDiffusion](guides/tools/tool-configuration/stable-diffusion.md) - * [Dall-e](guides/tools/tool-configuration/dall-e.md) - * [Perplexity Search](guides/tools/tool-configuration/perplexity.md) - * [AlphaVantage](guides/tools/tool-configuration/alphavantage.md) - * [Youtube](guides/tools/tool-configuration/youtube.md) - * [SearXNG](guides/tools/tool-configuration/searxng.md) - * [Serper](guides/tools/tool-configuration/serper.md) - * [SiliconFlow (Flux AI Supported)](guides/tools/tool-configuration/siliconflow.md) - * [ComfyUI](guides/tools/tool-configuration/comfyui.md) -* [Publishing](guides/application-publishing/README.md) - * [Publish as a Single-page Web App](guides/application-publishing/launch-your-webapp-quickly/README.md) - * [Web App Settings](guides/application-publishing/launch-your-webapp-quickly/web-app-settings.md) - * [Text Generator Application](guides/application-publishing/launch-your-webapp-quickly/text-generator.md) - * [Conversation Application](guides/application-publishing/launch-your-webapp-quickly/conversation-application.md) - * [Embedding In Websites](guides/application-publishing/embedding-in-websites.md) - * [Developing with APIs](guides/application-publishing/developing-with-apis.md) - * [Re-develop Based on Frontend Templates](guides/application-publishing/based-on-frontend-templates.md) -* [Annotation](guides/annotation/README.md) - * [Logs and Annotation](guides/annotation/logs.md) - * [Annotation Reply](guides/annotation/annotation-reply.md) -* [Monitoring](guides/monitoring/README.md) - * [Data Analysis](guides/monitoring/analysis.md) - * [Integrate External Ops Tools](guides/monitoring/integrate-external-ops-tools/README.md) - * [Integrate LangSmith](guides/monitoring/integrate-external-ops-tools/integrate-langsmith.md) - * [Integrate Langfuse](guides/monitoring/integrate-external-ops-tools/integrate-langfuse.md) - * [Integrate Opik](guides/monitoring/integrate-external-ops-tools/integrate-opik.md) -* [Extension](guides/extension/README.md) - * [API-Based Extension](guides/extension/api-based-extension/README.md) - * [External Data Tool](guides/extension/api-based-extension/external-data-tool.md) - * [Deploy API Tools with Cloudflare Workers](guides/extension/api-based-extension/cloudflare-workers.md) - * [Moderation](guides/extension/api-based-extension/moderation.md) - * [Code-Based Extension](guides/extension/code-based-extension/README.md) - * [External Data Tool](guides/extension/code-based-extension/external-data-tool.md) - * [Moderation](guides/extension/code-based-extension/moderation.md) -* [Collaboration](guides/workspace/README.md) - * [Discover](guides/workspace/app.md) - * [Invite and Manage Members](guides/workspace/invite-and-manage-members.md) -* [Management](guides/management/README.md) - * [App Management](guides/management/app-management.md) - * [Team Members Management](guides/management/team-members-management.md) - * [Personal Account Management](guides/management/personal-account-management.md) - * [Subscription Management](guides/management/subscription-management.md) - * [Version Control](guides/management/version-control.md) +* [Model](guides/model-configuration/README) + * [Add New Provider](guides/model-configuration/new-provider) + * [Predefined Model Integration](guides/model-configuration/predefined-model) + * [Custom Model Integration](guides/model-configuration/customizable-model) + * [Interfaces](guides/model-configuration/interfaces) + * [Schema](guides/model-configuration/schema) + * [Load Balancing](guides/model-configuration/load-balancing) +* [Application Orchestration](guides/application-orchestrate/README) + * [Create Application](guides/application-orchestrate/creating-an-application) + * [Chatbot Application](guides/application-orchestrate/chatbot-application) + * [Multiple Model Debugging](guides/application-orchestrate/multiple-llms-debugging) + * [Agent](guides/application-orchestrate/agent) + * [Application Toolkits](guides/application-orchestrate/app-toolkits/README) + * [Moderation Tool](guides/application-orchestrate/app-toolkits/moderation-tool) +* [Workflow](guides/workflow/README) + * [Key Concepts](guides/workflow/key-concepts) + * [Variables](guides/workflow/variables) + * [Node Description](guides/workflow/node/README) + * [Start](guides/workflow/node/start) + * [End](guides/workflow/node/end) + * [Answer](guides/workflow/node/answer) + * [LLM](guides/workflow/node/llm) + * [Knowledge Retrieval](guides/workflow/node/knowledge-retrieval) + * [Question Classifier](guides/workflow/node/question-classifier) + * [Conditional Branch IF/ELSE](guides/workflow/node/ifelse) + * [Code Execution](guides/workflow/node/code) + * [Template](guides/workflow/node/template) + * [Doc Extractor](guides/workflow/node/doc-extractor) + * [List Operator](guides/workflow/node/list-operator) + * [Variable Aggregator](guides/workflow/node/variable-aggregator) + * [Variable Assigner](guides/workflow/node/variable-assigner) + * [Iteration](guides/workflow/node/iteration) + * [Parameter Extraction](guides/workflow/node/parameter-extractor) + * [HTTP Request](guides/workflow/node/http-request) + * [Agent](guides/workflow/node/agent) + * [Tools](guides/workflow/node/tools) + * [Loop](guides/workflow/node/loop) + * [Shortcut Key](guides/workflow/shortcut-key) + * [Orchestrate Node](guides/workflow/orchestrate-node) + * [File Upload](guides/workflow/file-upload) + * [Error Handling](guides/workflow/error-handling/README) + * [Predefined Error Handling Logic](guides/workflow/error-handling/predefined-error-handling-logic) + * [Error Type](guides/workflow/error-handling/error-type) + * [Additional Features](guides/workflow/additional-features) + * [Debug and Preview](guides/workflow/debug-and-preview/README) + * [Preview and Run](guides/workflow/debug-and-preview/yu-lan-yu-yun-hang) + * [Step Run](guides/workflow/debug-and-preview/step-run) + * [Conversation/Run Logs](guides/workflow/debug-and-preview/log) + * [Checklist](guides/workflow/debug-and-preview/checklist) + * [Run History](guides/workflow/debug-and-preview/history) + * [Application Publishing](guides/workflow/publish) + * [Bulletin: Image Upload Replaced by File Upload](guides/workflow/bulletin) +* [Knowledge](guides/knowledge-base/README) + * [Create Knowledge](guides/knowledge-base/create-knowledge-and-upload-documents) + * [1. Import Text Data](guides/knowledge-base/create-knowledge-and-upload-documents/1.-import-text-data/README) + * [1.1 Import Data from Notion](guides/knowledge-base/create-knowledge-and-upload-documents/1.-import-text-data/1.1-import-data-from-notion) + * [1.2 Import Data from Website](guides/knowledge-base/sync-from-website) + * [2. Choose a Chunk Mode](guides/knowledge-base/create-knowledge-and-upload-documents/2.-choose-a-chunk-mode) + * [3. Select the Indexing Method and Retrieval Setting](guides/knowledge-base/create-knowledge-and-upload-documents/3.-select-the-indexing-method-and-retrieval-setting) + * [Manage Knowledge](guides/knowledge-base/knowledge-and-documents-maintenance) + * [Maintain Documents](guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents) + * [Maintain Knowledge via API](guides/knowledge-base/knowledge-and-documents-maintenance/maintain-dataset-via-api) + * [Metadata](guides/knowledge-base/metadata) + * [Integrate Knowledge Base within Application](guides/knowledge-base/integrate-knowledge-within-application) + * [Retrieval Test / Citation and Attributions](guides/knowledge-base/retrieval-test-and-citation) + * [Knowledge Request Rate Limit](guides/knowledge-base/knowledge-request-rate-limit) + * [Connect to an External Knowledge Base](guides/knowledge-base/connect-external-knowledge) + * [External Knowledge API](guides/knowledge-base/external-knowledge-api-documentation) +* [Tools](guides/tools/README) + * [Quick Tool Integration](guides/tools/quick-tool-integration) + * [Advanced Tool Integration](guides/tools/advanced-tool-integration) + * [Tool Configuration](guides/tools/tool-configuration/README) + * [Google](guides/tools/tool-configuration/google) + * [Bing](guides/tools/tool-configuration/bing) + * [SearchApi](guides/tools/tool-configuration/searchapi) + * [StableDiffusion](guides/tools/tool-configuration/stable-diffusion) + * [Dall-e](guides/tools/tool-configuration/dall-e) + * [Perplexity Search](guides/tools/tool-configuration/perplexity) + * [AlphaVantage](guides/tools/tool-configuration/alphavantage) + * [Youtube](guides/tools/tool-configuration/youtube) + * [SearXNG](guides/tools/tool-configuration/searxng) + * [Serper](guides/tools/tool-configuration/serper) + * [SiliconFlow (Flux AI Supported)](guides/tools/tool-configuration/siliconflow) + * [ComfyUI](guides/tools/tool-configuration/comfyui) +* [Publishing](guides/application-publishing/README) + * [Publish as a Single-page Web App](guides/application-publishing/launch-your-webapp-quickly/README) + * [Web App Settings](guides/application-publishing/launch-your-webapp-quickly/web-app-settings) + * [Text Generator Application](guides/application-publishing/launch-your-webapp-quickly/text-generator) + * [Conversation Application](guides/application-publishing/launch-your-webapp-quickly/conversation-application) + * [Embedding In Websites](guides/application-publishing/embedding-in-websites) + * [Developing with APIs](guides/application-publishing/developing-with-apis) + * [Re-develop Based on Frontend Templates](guides/application-publishing/based-on-frontend-templates) +* [Annotation](guides/annotation/README) + * [Logs and Annotation](guides/annotation/logs) + * [Annotation Reply](guides/annotation/annotation-reply) +* [Monitoring](guides/monitoring/README) + * [Data Analysis](guides/monitoring/analysis) + * [Integrate External Ops Tools](guides/monitoring/integrate-external-ops-tools/README) + * [Integrate LangSmith](guides/monitoring/integrate-external-ops-tools/integrate-langsmith) + * [Integrate Langfuse](guides/monitoring/integrate-external-ops-tools/integrate-langfuse) + * [Integrate Opik](guides/monitoring/integrate-external-ops-tools/integrate-opik) +* [Extension](guides/extension/README) + * [API-Based Extension](guides/extension/api-based-extension/README) + * [External Data Tool](guides/extension/api-based-extension/external-data-tool) + * [Deploy API Tools with Cloudflare Workers](guides/extension/api-based-extension/cloudflare-workers) + * [Moderation](guides/extension/api-based-extension/moderation) + * [Code-Based Extension](guides/extension/code-based-extension/README) + * [External Data Tool](guides/extension/code-based-extension/external-data-tool) + * [Moderation](guides/extension/code-based-extension/moderation) +* [Collaboration](guides/workspace/README) + * [Discover](guides/workspace/app) + * [Invite and Manage Members](guides/workspace/invite-and-manage-members) +* [Management](guides/management/README) + * [App Management](guides/management/app-management) + * [Team Members Management](guides/management/team-members-management) + * [Personal Account Management](guides/management/personal-account-management) + * [Subscription Management](guides/management/subscription-management) + * [Version Control](guides/management/version-control) ## Workshop -* [Basic](workshop/basic/README.md) - * [How to Build an AI Image Generation App](workshop/basic/build-ai-image-generation-app.md) -* [Intermediate](workshop/intermediate/README.md) - * [Build An Article Reader Using File Upload](workshop/intermediate/article-reader.md) - * [Building a Smart Customer Service Bot Using a Knowledge Base](workshop/intermediate/customer-service-bot.md) - * [Generating analysis of Twitter account using Chatflow Agent](workshop/intermediate/twitter-chatflow.md) +* [Basic](workshop/basic/README) + * [How to Build an AI Image Generation App](workshop/basic/build-ai-image-generation-app) +* [Intermediate](workshop/intermediate/README) + * [Build An Article Reader Using File Upload](workshop/intermediate/article-reader) + * [Building a Smart Customer Service Bot Using a Knowledge Base](workshop/intermediate/customer-service-bot) + * [Generating analysis of Twitter account using Chatflow Agent](workshop/intermediate/twitter-chatflow) ## Community -* [Seek Support](community/support.md) -* [Become a Contributor](community/contribution.md) -* [Contributing to Dify Documentation](community/docs-contribution.md) +* [Seek Support](community/support) +* [Become a Contributor](community/contribution) +* [Contributing to Dify Documentation](community/docs-contribution) ## Plugins -* [Introduction](plugins/introduction.md) -* [Quick Start](plugins/quick-start/README.md) - * [Install and Use Plugins](plugins/quick-start/install-plugins.md) - * [Develop Plugins](plugins/quick-start/develop-plugins/README.md) - * [Initialize Development Tools](plugins/quick-start/develop-plugins/initialize-development-tools.md) - * [Tool Plugin](plugins/quick-start/develop-plugins/tool-plugin.md) - * [Model Plugin](plugins/quick-start/develop-plugins/model-plugin/README.md) - * [Create Model Providers](plugins/quick-start/develop-plugins/model-plugin/create-model-providers.md) - * [Integrate the Predefined Model](plugins/quick-start/develop-plugins/model-plugin/predefined-model.md) - * [Integrate the Customizable Model](plugins/quick-start/develop-plugins/model-plugin/customizable-model.md) - * [Agent Strategy Plugin](plugins/quick-start/develop-plugins/agent-strategy-plugin.md) - * [Extension Plugin](plugins/quick-start/develop-plugins/extension-plugin.md) - * [Bundle](plugins/quick-start/develop-plugins/bundle.md) - * [Debug Plugin](plugins/quick-start/debug-plugin.md) -* [Manage Plugins](plugins/manage-plugins.md) -* [Schema Specification](plugins/schema-definition/README.md) - * [Manifest](plugins/schema-definition/manifest.md) - * [Endpoint](plugins/schema-definition/endpoint.md) - * [Tool](plugins/schema-definition/tool.md) - * [Agent](plugins/schema-definition/agent.md) - * [Model](plugins/schema-definition/model/README.md) - * [Model Designing Rules](plugins/schema-definition/model/model-designing-rules.md) - * [Model Schema](plugins/schema-definition/model/model-schema.md) - * [General Specifications](plugins/schema-definition/general-specifications.md) - * [Persistent Storage](plugins/schema-definition/persistent-storage.md) - * [Reverse Invocation of the Dify Service](plugins/schema-definition/reverse-invocation-of-the-dify-service/README.md) - * [App](plugins/schema-definition/reverse-invocation-of-the-dify-service/app.md) - * [Model](plugins/schema-definition/reverse-invocation-of-the-dify-service/model.md) - * [Tool](plugins/schema-definition/reverse-invocation-of-the-dify-service/tool.md) - * [Node](plugins/schema-definition/reverse-invocation-of-the-dify-service/node.md) -* [Best Practice](plugins/best-practice/README.md) - * [Develop a Slack Bot Plugin](plugins/best-practice/develop-a-slack-bot-plugin.md) -* [Publish Plugins](plugins/publish-plugins/README.md) - * [Publish to Dify Marketplace](plugins/publish-plugins/publish-to-dify-marketplace/README.md) - * [Plugin Developer Guidelines](plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.md) - * [Plugin Privacy Protection Guidelines](plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines.md) - * [Publish to Your Personal GitHub Repository](plugins/publish-plugins/publish-plugin-on-personal-github-repo.md) - * [Package the Plugin File and Publish it](plugins/publish-plugins/package-plugin-file-and-publish.md) -* [FAQ](plugins/faq.md) +* [Introduction](plugins/introduction) +* [Quick Start](plugins/quick-start/README) + * [Install and Use Plugins](plugins/quick-start/install-plugins) + * [Develop Plugins](plugins/quick-start/develop-plugins/README) + * [Initialize Development Tools](plugins/quick-start/develop-plugins/initialize-development-tools) + * [Tool Plugin](plugins/quick-start/develop-plugins/tool-plugin) + * [Model Plugin](plugins/quick-start/develop-plugins/model-plugin/README) + * [Create Model Providers](plugins/quick-start/develop-plugins/model-plugin/create-model-providers) + * [Integrate the Predefined Model](plugins/quick-start/develop-plugins/model-plugin/predefined-model) + * [Integrate the Customizable Model](plugins/quick-start/develop-plugins/model-plugin/customizable-model) + * [Agent Strategy Plugin](plugins/quick-start/develop-plugins/agent-strategy-plugin) + * [Extension Plugin](plugins/quick-start/develop-plugins/extension-plugin) + * [Bundle](plugins/quick-start/develop-plugins/bundle) + * [Debug Plugin](plugins/quick-start/debug-plugin) +* [Manage Plugins](plugins/manage-plugins) +* [Schema Specification](plugins/schema-definition/README) + * [Manifest](plugins/schema-definition/manifest) + * [Endpoint](plugins/schema-definition/endpoint) + * [Tool](plugins/schema-definition/tool) + * [Agent](plugins/schema-definition/agent) + * [Model](plugins/schema-definition/model/README) + * [Model Designing Rules](plugins/schema-definition/model/model-designing-rules) + * [Model Schema](plugins/schema-definition/model/model-schema) + * [General Specifications](plugins/schema-definition/general-specifications) + * [Persistent Storage](plugins/schema-definition/persistent-storage) + * [Reverse Invocation of the Dify Service](plugins/schema-definition/reverse-invocation-of-the-dify-service/README) + * [App](plugins/schema-definition/reverse-invocation-of-the-dify-service/app) + * [Model](plugins/schema-definition/reverse-invocation-of-the-dify-service/model) + * [Tool](plugins/schema-definition/reverse-invocation-of-the-dify-service/tool) + * [Node](plugins/schema-definition/reverse-invocation-of-the-dify-service/node) +* [Best Practice](plugins/best-practice/README) + * [Develop a Slack Bot Plugin](plugins/best-practice/develop-a-slack-bot-plugin) +* [Publish Plugins](plugins/publish-plugins/README) + * [Publish to Dify Marketplace](plugins/publish-plugins/publish-to-dify-marketplace/README) + * [Plugin Developer Guidelines](plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines) + * [Plugin Privacy Protection Guidelines](plugins/publish-plugins/publish-to-dify-marketplace/plugin-privacy-protection-guidelines) + * [Publish to Your Personal GitHub Repository](plugins/publish-plugins/publish-plugin-on-personal-github-repo) + * [Package the Plugin File and Publish it](plugins/publish-plugins/package-plugin-file-and-publish) +* [FAQ](plugins/faq) ## Development -* [Backend](development/backend/README.md) - * [DifySandbox](development/backend/sandbox/README.md) - * [Contribution Guide](development/backend/sandbox/contribution.md) -* [Models Integration](development/models-integration/README.md) - * [Integrate Open Source Models from Hugging Face](development/models-integration/hugging-face.md) - * [Integrate Open Source Models from Replicate](development/models-integration/replicate.md) - * [Integrate Local Models Deployed by Xinference](development/models-integration/xinference.md) - * [Integrate Local Models Deployed by OpenLLM](development/models-integration/openllm.md) - * [Integrate Local Models Deployed by LocalAI](development/models-integration/localai.md) - * [Integrate Local Models Deployed by Ollama](development/models-integration/ollama.md) - * [Integrate Models on LiteLLM Proxy](development/models-integration/litellm.md) - * [Integrating with GPUStack for Local Model Deployment](development/models-integration/gpustack.md) - * [Integrating AWS Bedrock Models (DeepSeek)](development/models-integration/aws-bedrock-deepseek.md) -* [Migration](development/migration/README.md) - * [Migrating Community Edition to v1.0.0](development/migration/migrate-to-v1.md) +* [Backend](development/backend/README) + * [DifySandbox](development/backend/sandbox/README) + * [Contribution Guide](development/backend/sandbox/contribution) +* [Models Integration](development/models-integration/README) + * [Integrate Open Source Models from Hugging Face](development/models-integration/hugging-face) + * [Integrate Open Source Models from Replicate](development/models-integration/replicate) + * [Integrate Local Models Deployed by Xinference](development/models-integration/xinference) + * [Integrate Local Models Deployed by OpenLLM](development/models-integration/openllm) + * [Integrate Local Models Deployed by LocalAI](development/models-integration/localai) + * [Integrate Local Models Deployed by Ollama](development/models-integration/ollama) + * [Integrate Models on LiteLLM Proxy](development/models-integration/litellm) + * [Integrating with GPUStack for Local Model Deployment](development/models-integration/gpustack) + * [Integrating AWS Bedrock Models (DeepSeek)](development/models-integration/aws-bedrock-deepseek) +* [Migration](development/migration/README) + * [Migrating Community Edition to v1.0.0](development/migration/migrate-to-v1) ## Learn More -* [Use Cases](learn-more/use-cases/README.md) - * [DeepSeek & Dify Integration Guide: Building AI Applications with Multi-Turn Reasoning](learn-more/use-cases/integrate-deepseek-to-build-an-ai-app.md) - * [Private Deployment of Ollama + DeepSeek + Dify: Build Your Own AI Assistant](learn-more/use-cases/private-ai-ollama-deepseek-dify.md) - * [Build a Notion AI Assistant](learn-more/use-cases/build-an-notion-ai-assistant.md) - * [Create a MidJourney Prompt Bot with Dify](learn-more/use-cases/create-a-midjourney-prompt-bot-with-dify.md) - * [Create an AI Chatbot with Business Data in Minutes](learn-more/use-cases/create-an-ai-chatbot-with-business-data-in-minutes.md) - * [Integrating Dify Chatbot into Your Wix Website](learn-more/use-cases/how-to-integrate-dify-chatbot-to-your-wix-website.md) - * [How to connect with AWS Bedrock Knowledge Base?](learn-more/use-cases/how-to-connect-aws-bedrock.md) - * [Building the Dify Scheduler](learn-more/use-cases/dify-schedule.md) - * [Building an AI Thesis Slack Bot on Dify](learn-more/use-cases/building-an-ai-thesis-slack-bot.md) -* [Extended Reading](learn-more/extended-reading/README.md) - * [What is LLMOps?](learn-more/extended-reading/what-is-llmops.md) - * [Retrieval-Augmented Generation (RAG)](learn-more/extended-reading/retrieval-augment/README.md) - * [Hybrid Search](learn-more/extended-reading/retrieval-augment/hybrid-search.md) - * [Re-ranking](learn-more/extended-reading/retrieval-augment/rerank.md) - * [Retrieval Modes](learn-more/extended-reading/retrieval-augment/retrieval.md) - * [How to Use JSON Schema Output in Dify?](learn-more/extended-reading/how-to-use-json-schema-in-dify.md) -* [FAQ](learn-more/faq/README.md) - * [Self-Host](learn-more/faq/install-faq.md) - * [LLM Configuration and Usage](learn-more/faq/use-llms-faq.md) - * [Plugins](learn-more/faq/plugins.md) +* [Use Cases](learn-more/use-cases/README) + * [DeepSeek & Dify Integration Guide: Building AI Applications with Multi-Turn Reasoning](learn-more/use-cases/integrate-deepseek-to-build-an-ai-app) + * [Private Deployment of Ollama + DeepSeek + Dify: Build Your Own AI Assistant](learn-more/use-cases/private-ai-ollama-deepseek-dify) + * [Build a Notion AI Assistant](learn-more/use-cases/build-an-notion-ai-assistant) + * [Create a MidJourney Prompt Bot with Dify](learn-more/use-cases/create-a-midjourney-prompt-bot-with-dify) + * [Create an AI Chatbot with Business Data in Minutes](learn-more/use-cases/create-an-ai-chatbot-with-business-data-in-minutes) + * [Integrating Dify Chatbot into Your Wix Website](learn-more/use-cases/how-to-integrate-dify-chatbot-to-your-wix-website) + * [How to connect with AWS Bedrock Knowledge Base?](learn-more/use-cases/how-to-connect-aws-bedrock) + * [Building the Dify Scheduler](learn-more/use-cases/dify-schedule) + * [Building an AI Thesis Slack Bot on Dify](learn-more/use-cases/building-an-ai-thesis-slack-bot) +* [Extended Reading](learn-more/extended-reading/README) + * [What is LLMOps?](learn-more/extended-reading/what-is-llmops) + * [Retrieval-Augmented Generation (RAG)](learn-more/extended-reading/retrieval-augment/README) + * [Hybrid Search](learn-more/extended-reading/retrieval-augment/hybrid-search) + * [Re-ranking](learn-more/extended-reading/retrieval-augment/rerank) + * [Retrieval Modes](learn-more/extended-reading/retrieval-augment/retrieval) + * [How to Use JSON Schema Output in Dify?](learn-more/extended-reading/how-to-use-json-schema-in-dify) +* [FAQ](learn-more/faq/README) + * [Self-Host](learn-more/faq/install-faq) + * [LLM Configuration and Usage](learn-more/faq/use-llms-faq) + * [Plugins](learn-more/faq/plugins) ## Policies -* [Open Source License](policies/open-source.md) -* [User Agreement](policies/agreement/README.md) +* [Open Source License](policies/open-source) +* [User Agreement](policies/agreement/README) * [Terms of Service](https://dify.ai/terms) * [Privacy Policy](https://dify.ai/privacy) - * [Get Compliance Report](policies/agreement/get-compliance-report.md) + * [Get Compliance Report](policies/agreement/get-compliance-report) ## Features -* [Workflow](features/workflow.md) +* [Workflow](features/workflow) diff --git a/en/community/contribution.mdx b/en/community/contribution.mdx index db2a5d67..93d371af 100644 --- a/en/community/contribution.mdx +++ b/en/community/contribution.mdx @@ -1,5 +1,5 @@ --- -title: "Contributing" +title: Become a Contributor --- So you're looking to contribute to Dify - that's awesome, we can't wait to see what you do. As a startup with limited headcount and funding, we have grand ambitions to design the most intuitive workflow for building and managing LLM applications. Any help from the community counts, truly. @@ -8,7 +8,7 @@ We need to be nimble and ship fast given where we are, but we also want to make This guide, like Dify itself, is a constant work in progress. We highly appreciate your understanding if at times it lags behind the actual project, and welcome any feedback for us to improve. -In terms of licensing, please take a minute to read our short [License and Contributor Agreement](https://github.com/langgenius/dify/blob/main/LICENSE). The community also adheres to the [code of conduct](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md). +In terms of licensing, please take a minute to read our short [License and Contributor Agreement](https://github.com/langgenius/dify/blob/main/LICENSE). The community also adheres to the [code of conduct](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT). ### Before you jump in @@ -79,7 +79,7 @@ Dify requires the following dependencies to build, make sure they're installed o #### 4. Installations -Dify is composed of a backend and a frontend. Navigate to the backend directory by `cd api/`, then follow the [Backend README](https://github.com/langgenius/dify/blob/main/api/README.md) to install it. In a separate terminal, navigate to the frontend directory by `cd web/`, then follow the [Frontend README](https://github.com/langgenius/dify/blob/main/web/README.md) to install. +Dify is composed of a backend and a frontend. Navigate to the backend directory by `cd api/`, then follow the [Backend README](https://github.com/langgenius/dify/blob/main/api/README) to install it. In a separate terminal, navigate to the frontend directory by `cd web/`, then follow the [Frontend README](https://github.com/langgenius/dify/blob/main/web/README) to install. Check the [installation FAQ](https://docs.dify.ai/learn-more/faq/install-faq) for a list of common issues and steps to troubleshoot. @@ -89,9 +89,9 @@ To validate your set up, head over to http://localhost:3000 (the default, or you ### Developing -If you are adding a model provider,[this guide](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README.md) is for you. +If you are adding a model provider,[this guide](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README) is for you. -If you are adding tools used in Agent Assistants and Workflows, [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md) is for you. +If you are adding tools used in Agent Assistants and Workflows, [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README) is for you. > **Note** : If you want to contribute to a new tool, please make sure you've left your contact information on the tool's 'YAML' file, and submitted a corresponding docs PR in the [Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) repository. @@ -153,7 +153,7 @@ The website is bootstrapped on [Next.js](https://nextjs.org/) boilerplate in Typ At last, time to open a pull request (PR) to our repo. For major features, we first merge them into the `deploy/dev` branch for testing, before they go into the `main` branch. If you run into issues like merge conflicts or don't know how to open a pull request, check out [GitHub's pull request tutorial](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests). -And that's it\! Once your PR is merged, you will be featured as a contributor in our [README](https://github.com/langgenius/dify/blob/main/README.md). +And that's it\! Once your PR is merged, you will be featured as a contributor in our [README](https://github.com/langgenius/dify/blob/main/README). ### Getting Help diff --git a/en/community/docs-contribution.mdx b/en/community/docs-contribution.mdx index 5e14f0f9..f415e6bb 100644 --- a/en/community/docs-contribution.mdx +++ b/en/community/docs-contribution.mdx @@ -3,7 +3,7 @@ title: Contributing to Dify Documentation --- -Dify documentation is an [open-source project](https://github.com/langgenius/dify-docs), and we welcome contributions. Whether you've spotted an issue while reading the docs or you're keen to contribute your own content, we encourage you to submit an issue or initiate a pull request on GitHub. We'll address your PR promptly. +Dify documentation is an [open-source project](https://github.com/langgenius/dify-docs-mintlify), and we welcome contributions. Whether you've spotted an issue while reading the docs or you're keen to contribute your own content, we encourage you to submit an issue or initiate a pull request on GitHub. We'll address your PR promptly. ## How to Contribute diff --git a/en/development/models-integration/localai.mdx b/en/development/models-integration/localai.mdx index 55547a4a..a87800c5 100644 --- a/en/development/models-integration/localai.mdx +++ b/en/development/models-integration/localai.mdx @@ -13,7 +13,7 @@ Dify allows integration with LocalAI for local deployment of large language mode You can refer to the official [Getting Started](https://localai.io/basics/getting_started/) guide for deployment, or quickly integrate following the steps below: -(These steps are derived from [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md)) +(These steps are derived from [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README)) 1. First, clone the LocalAI code repository and navigate to the specified directory. diff --git a/en/development/models-integration/ollama.mdx b/en/development/models-integration/ollama.mdx index 0f8ddd8b..9e474e8a 100644 --- a/en/development/models-integration/ollama.mdx +++ b/en/development/models-integration/ollama.mdx @@ -2,8 +2,9 @@ title: Integrate Local Models Deployed by Ollama --- - -![ollama](<../../.gitbook/assets/ollama (1).png>) +

+ +

[Ollama](https://github.com/jmorganca/ollama) is a cross-platform inference framework client (MacOS, Windows, Linux) designed for seamless deployment of large language models (LLMs) such as Llama 2, Mistral, Llava, and more. With its one-click setup, Ollama enables local execution of LLMs, providing enhanced data privacy and security by keeping your data on your own machine. diff --git a/en/getting-started/dify-for-education.mdx b/en/getting-started/dify-for-education.mdx index b80dbb68..541efca3 100644 --- a/en/getting-started/dify-for-education.mdx +++ b/en/getting-started/dify-for-education.mdx @@ -98,11 +98,11 @@ Limitations: ### Update Email -Email `` to change your email address. +Email [support@dify.ai](mailto:support@dify.ai) to change your email address. ### Update School Information -- **For verified accounts**: Email `` to modify school details. +- **For verified accounts**: Email [support@dify.ai](mailto:support@dify.ai) to modify school details. - **For expired verification**: Enter new school information during re-verification. @@ -138,11 +138,11 @@ Your educational verification application may be rejected or revoked in the foll 4. Educational privilege misuse 5. False institutional information -To appeal a rejected/revoked verification, please email `` for assistance. +To appeal a rejected/revoked verification, please email [support@dify.ai](mailto:support@dify.ai) for assistance. - **Will my educational verification remain valid after I graduate or leave school?** -Your verification remains valid while your educational email is active. Email `` for assistance if your educational email expires. +Your verification remains valid while your educational email is active. Email [support@dify.ai](mailto:support@dify.ai) for assistance if your educational email expires. - **I don’t have an educational email. How can I apply for educational verification?** diff --git a/en/getting-started/install-self-hosted/aa-panel.mdx b/en/getting-started/install-self-hosted/aa-panel.mdx index 32c826f7..b6f5e981 100644 --- a/en/getting-started/install-self-hosted/aa-panel.mdx +++ b/en/getting-started/install-self-hosted/aa-panel.mdx @@ -34,7 +34,7 @@ title: Deploy with aaPanel 2. The first time you will be prompteINLINE_CODE_P`Docker Compose` the `Docker` and `Docker Compose` services, click Install Now. If it is already installed, please ignore it. -3INLINE_COD`One-Click Install`e ins`install` is complete, find `Dify` in `One-Click Install` and click `install` +3. INLINE_COD`One-Click Install`e ins`install` is complete, find `Dify` in `One-Click Install` and click `install` 4. configure basic information such as the domain name, ports to complete the installation > \[!IMPORTANT] @@ -48,8 +48,11 @@ title: Deploy with aaPanel - Allow external access: If you nee`8088`ct access through `IP+Port`, please check. If you have set up a domain name, please do not check here. - Port: De`Docker`0 `8088`, can be modified by yourself +6. After submission, the panel will automatically initialize the application, which will take about `1-3` minutes. It can be accessed after the initialization is completed. -6. After submission, the panel will automatically initialize the application, which will take about `1-3` minutes. It can be accessed after the initializa`Docker`1p the admin account: +### Access Dify + +Access administrator initialization page to set up the admin account: ```bash # If you have set domain @@ -65,11 +68,6 @@ Dify web interface address: # If you have set domain http://yourdomain/ -# If you choose to access through `IP+Port` -http://your_server_ip```bash -# If you have set domain -http://yourdomain/ - # If you choose to access through `IP+Port` http://your_server_ip:8088/ -``` \ No newline at end of file +``` diff --git a/en/getting-started/install-self-hosted/docker-compose.mdx b/en/getting-started/install-self-hosted/docker-compose.mdx index 1b03c8bc..1b657e75 100644 --- a/en/getting-started/install-self-hosted/docker-compose.mdx +++ b/en/getting-started/install-self-hosted/docker-compose.mdx @@ -41,7 +41,7 @@ title: Deploy with Docker Compose > \[!IMPORTANT] > -> Dify 0.6.12 has introduced significant enhancements to Docker Compose deployment, designed to improve your setup and update experience. For more information, read the [README.md](https://github.com/langgenius/dify/blob/main/docker/README.md). +> Dify 0.6.12 has introduced significant enhancements to Docker Compose deployment, designed to improve your setup and update experience. For more information, read the [README.md](https://github.com/langgenius/dify/blob/main/docker/README). ### Clone Dify diff --git a/en/getting-started/install-self-hosted/environments.mdx b/en/getting-started/install-self-hosted/environments.mdx index 4725abe4..276cd25e 100644 --- a/en/getting-started/install-self-hosted/environments.mdx +++ b/en/getting-started/install-self-hosted/environments.mdx @@ -413,6 +413,10 @@ Used to store uploaded data set files, team/tenant encryption keys,`https://cons For example: `http://unstructured:8000/general/v0/general` +- TOP_K_MAX_VALUE + + The maximum top-k value of RAG, default 10. + #### Multi-modal Configuration - MULTIMODAL_SENDINLINE_CODE_PLACEHO`https://app.dify.ai`736ORMA`https://app.dify.ai`8The format o`https://app.dify.ai`9age sent when the multi-modal model is input`https://udify.app/`0fault `https://udify.app/`1ase`https://udify.app/`2al `url`. The delay of the call in `url` mode will be lower than that in `base64` mode. It is generally recommended to use the more compatible `base64` mode. If configured as `url`, you need to configure `FILES_URL` as an externally accessible address so that the multi-modal model can access the image. @@ -585,7 +589,7 @@ Used to set the browser policy for session cookies used for identity verificatio ### Chunk Length Configuration -#### MAXIMUM_CHUNK_TOKEN_LENGTH +#### INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH Configuration for document chunk length. It is used to control the size of text segments when processing long documents. Default: 500. Maximum: 4000. diff --git a/en/getting-started/install-self-hosted/readme.mdx b/en/getting-started/install-self-hosted/readme.mdx index b0add896..0ccc1ccd 100644 --- a/en/getting-started/install-self-hosted/readme.mdx +++ b/en/getting-started/install-self-hosted/readme.mdx @@ -12,4 +12,4 @@ Dify, an open-source project on [GitHub](https://github.com/langgenius/dify), ca To maintain code quality, we require all code contributions - even from those with direct commit access - to be submitted as pull requests. These must be reviewed and approved by the core development team before merging. -We welcome contributions from everyone! If you're interested in helping, please check our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) for more information on getting started. +We welcome contributions from everyone! If you're interested in helping, please check our [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) for more information on getting started. diff --git a/en/getting-started/install-self-hosted/start-the-frontend-docker-container.mdx b/en/getting-started/install-self-hosted/start-the-frontend-docker-container.mdx index 9b9625e3..c9336cb0 100644 --- a/en/getting-started/install-self-hosted/start-the-frontend-docker-container.mdx +++ b/en/getting-started/install-self-hosted/start-the-frontend-docker-container.mdx @@ -1,8 +1,7 @@ --- -title: Start the frontend Docker container separately +title: Start Frontend Docker Container Separately --- - When developing the backend separately, you may only need to start the backend service from source code without building and launching the frontend locally. In this case, you can directly start the frontend service by pulling the Docker image and running the container. Here are the specific steps: #### Pull the Docker image for the frontend service from DockerHub: diff --git a/en/getting-started/readme/features-and-specifications.mdx b/en/getting-started/readme/features-and-specifications.mdx index 9fdf9854..deaea297 100644 --- a/en/getting-started/readme/features-and-specifications.mdx +++ b/en/getting-started/readme/features-and-specifications.mdx @@ -22,7 +22,7 @@ We adopt transparent policies around product specifications to ensure decisions Open Source License - Apache License 2.0 with commercial licensing + [Apache License 2.0 with commercial licensing](../../policies/open-source) Official R&D Team @@ -30,7 +30,7 @@ We adopt transparent policies around product specifications to ensure decisions Community Contributors - Over 290 people (As of Q2 2024) + Over [290](https://ossinsight.io/analyze/langgenius/dify#overview) people (As of Q2 2024) Backend Technology diff --git a/en/guides/application-orchestrate/agent.mdx b/en/guides/application-orchestrate/agent.mdx index 329c5cdc..7fc1480a 100644 --- a/en/guides/application-orchestrate/agent.mdx +++ b/en/guides/application-orchestrate/agent.mdx @@ -50,6 +50,14 @@ You can set up a conversation opener and initial questions for your Agent Assist ![Configuring the Conversation Opener and Initial Questions](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/67818c83a30cae24eb7048fe9dc96538.png) +## Uploading Documentation File + +Some LLMs now natively support file processing, such as [Claude 3.5 Sonnet](https://docs.anthropic.com/en/docs/build-with-claude/pdf-support) and [Gemini 1.5 Pro](https://ai.google.dev/api/files). You can check the LLMs' websites for details on their file upload capabilities. + +Select an LLM that supports file reading and enable the "Documentation" feature. This enables the Chatbot to recognize files without complex configurations. + +![](https://assets-docs.dify.ai/2024/11/9f0b7a3c67b58c0bd7926501284cbb7d.png) + ## Debugging and Preview After orchestrating the intelligent assistant, you can debug and preview it before publishing as an application to verify the assistant's task completion effectiveness. diff --git a/en/guides/application-orchestrate/chatbot-application.mdx b/en/guides/application-orchestrate/chatbot-application.mdx index 00077365..70da5543 100644 --- a/en/guides/application-orchestrate/chatbot-application.mdx +++ b/en/guides/application-orchestrate/chatbot-application.mdx @@ -2,29 +2,29 @@ title: Chatbot Application --- -Conversation applications use a one-question-one-answer mode to have a continuous conversation with the user. +Chatbot applications use a one-question-one-answer mode to have a continuous conversation with the user. ### Applicable scenarios -Conversation applications can be used in fields such as customer service, online education, healthcare, financial services, etc. These applications can help organizations improve work efficiency, reduce labor costs, and provide a better user experience. +Chatbot applications can be used in fields such as customer service, online education, healthcare, financial services, etc. These applications can help organizations improve work efficiency, reduce labor costs, and provide a better user experience. ### How to compose -Conversation applications supports: prompts, variables, context, opening remarks, and suggestions for the next question. +Chatbot applications supports: prompts, variables, context, opening remarks, and suggestions for the next question. -Here, we use a interviewer application as an example to introduce the way to compose a conversation applications. +Here, we use a interviewer application as an example to introduce the way to compose a Chatbot applications. #### Step 1 Create an application -Click the "Create Application" button on the homepage to create an application. Fill in the application name, and select **"Chat App"** as the application type. +Click the "Create Application" button on the homepage to create an application. Fill in the application name, and select **"Chatbot"**. -![Create Application](https://assets-docs.dify.ai/2024/12/8012e6ed06bfb10b239a4b999b1a0787.png) +![](https://assets-docs.dify.ai/2024/12/8012e6ed06bfb10b239a4b999b1a0787.png) #### Step 2: Compose the Application After the application is successfully created, it will automatically redirect to the application overview page. Click on the button on the left menu: **"Orchestrate"** to compose the application. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/6e45b9cecf2280814de20375ca0a3734.png) +![](https://assets-docs.dify.ai/2025/04/11ed44bfc3b2171898de6dc8e6709c67.png) **2.1 Fill in Prompts** @@ -40,42 +40,52 @@ For a better experience, we will add an opening dialogue: `"Hello, {{name}}. I'm To add the opening dialogue, click the "Add Feature" button in the upper left corner, and enable the "Conversation remarkers" feature: -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/86ff7c2f2c29bc4a31e3b4a255ecbb84.png) +![](https://assets-docs.dify.ai/2025/04/88cfa3bd4018821e552cd397ba813ab7.png) And then edit the opening remarks: -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/30f248ed143042b06d46b95c4f062fe1.png) +![](https://assets-docs.dify.ai/2025/04/32a138ce6655b4765cee7af965efe81b.png) **2.2 Adding Context** -If an application wants to generate content based on private contextual conversations, it can use our [knowledge](/en/guides/knowledge-base/readme) feature. Click the "Add" button in the context to add a knowledge base. +If an application wants to generate content based on private contextual conversations, it can use our [knowledge](../knowledge-base/) feature. Click the "Add" button in the context to add a knowledge base. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/dcdcfbe0d7b44792c53d1d026aeebe29.png) +![](https://assets-docs.dify.ai/2025/04/8724018389d9346b79fa78114655949d.png) -**2.3 Debugging** +**2.3 Uploading Documentation File** + +Some LLMs now natively support file processing, such as [Claude 3.5 Sonnet](https://docs.anthropic.com/en/docs/build-with-claude/pdf-support) and [Gemini 1.5 Pro](https://ai.google.dev/api/files). You can check the LLMs' websites for details on their file upload capabilities. + +Select an LLM that supports file reading and enable the "Documentation" feature. This enables the Chatbot to recognize files without complex configurations. + +![](https://assets-docs.dify.ai/2024/11/823399d85e8ced5068dc9da4f693170e.png) + +**2.4 Debugging** Enter user inputs on the right side and check the respond content. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/1509ff763400980eba81dac1f01d996f.png) +![](https://assets-docs.dify.ai/2025/04/9824bf0c1e515d880fe1e13014ee682f.png) If the results are not satisfactory, you can adjust the prompts and model parameters. Click on the model name in the upper right corner to set the parameters of the model: -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/07a8c40ba969e849f083e27dee6992b0.png) +![](https://assets-docs.dify.ai/2025/04/2bd24389b6db79d0f8e2dbe9ce4ad57c.png) -**Debugging with multiple models:** +**Multiple Model Debugging:** -If debugging with a single model feels inefficient, you can utilize the **Debug as Multiple Models** feature to batch-test the models' response effectiveness. - -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/bf067815b692fc617c4f23f02e687dd9.png) - -Supports adding up to 4 LLMs at the same time. - -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-orchestrate/67818c83a30cae24eb7048fe9dc96538.png) - -> ⚠️ When using the multi-model debugging feature, if only some large models are visible, it is because other large models' keys have not been added yet. You can manually add multiple models' keys in ["Add New Provider"](/en/guides/model-configuration/new-provider). +If the LLM’s response is unsatisfactory, you can refine the prompt or switch to different underlying models for comparison. To simultaneously observe how multiple models respond to the same question, see [Multiple Model Debugging](./multiple-llms-debugging). **2.4 Publish App** -After debugging your application, click the **"Publish"** button in the top right corner to create a standalone AI application. In addition to experiencing the application via a public URL, you can also perform secondary development based on APIs, embed it into websites, and more. For details, please refer to [Publishing](/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings). +After debugging your application, click the **"Publish"** button in the top right corner to create a standalone AI application. In addition to experiencing the application via a public URL, you can also perform secondary development based on APIs, embed it into websites, and more. For details, please refer to [Publishing](https://docs.dify.ai/guides/application-publishing). -If you want to customize the application that you share, you can Fork our open source [WebApp template](https://github.com/langgenius/webapp-conversation). Based on the template, you can modify the application to meet your specific needs and style requirements. \ No newline at end of file +If you want to customize the application that you share, you can Fork our open source [WebApp template](https://github.com/langgenius/webapp-conversation). Based on the template, you can modify the application to meet your specific needs and style requirements. + +### FAQ + +**How ​​to add a third-party tool within the chatbot?** + +The chatbot app does not support adding third-party tools. You can add third-party tools within your [agent](../application-orchestrate/agent). + +**How to use metadata filtering when creating a Chatbot?** + +For instructions, see **Metadata Filtering > Chatbot** in *[Integrate Knowledge Base within Application](https://docs.dify.ai/guides/knowledge-base/integrate-knowledge-within-application)*. diff --git a/en/guides/application-orchestrate/creating-an-application.mdx b/en/guides/application-orchestrate/creating-an-application.mdx index be1b7dbe..713a1ccd 100644 --- a/en/guides/application-orchestrate/creating-an-application.mdx +++ b/en/guides/application-orchestrate/creating-an-application.mdx @@ -28,6 +28,13 @@ If you need to create a blank application on Dify, you can select "Studio" from When creating an application for the first time, you might need to first understand the [basic concepts](./#application_type) of the five different types of applications on Dify: Chatbot, Text Generator, Agent, Chatflow and Workflow. + + When selecting a specific application type, you can customize it by providing a name, choosing an appropriate icon(or uploading your favorite image as an icon), and writing a clear and concise description of its purpose. These details will help team members easily understand and use the application in the future. ![](https://assets-docs.dify.ai/2024/12/8012e6ed06bfb10b239a4b999b1a0787.png) diff --git a/en/guides/application-orchestrate/multiple-llms-debugging.mdx b/en/guides/application-orchestrate/multiple-llms-debugging.mdx new file mode 100644 index 00000000..2d3c6877 --- /dev/null +++ b/en/guides/application-orchestrate/multiple-llms-debugging.mdx @@ -0,0 +1,25 @@ +--- +title: Multiple Model Debugging +--- + +The **Chatbot** application supports the **“Debug as Multiple Models”** feature, allowing you to simultaneously compare how different models respond to the same question. + +![](https://assets-docs.dify.ai/2025/02/6b77275258e6d48a540251beed0d16f3.png) + +You can add up to **4** large language models at once. + +![](https://assets-docs.dify.ai/2025/02/226b016ca72a7a914fe94f8b804d1334.png) + +During debugging, if you find a model that performs well, click **“Debug as Single Model”** to switch to a dedicated preview window for the model. + +![](https://assets-docs.dify.ai/2025/02/d273dee2ec4c04f7208a4f7a8b3a86db.png) + +## FAQ + +### 1. Why aren't additional models visible when adding LLMs? + +Go to [“Model Providers”](/guides/model-configuration), and follow the instructions to add the keys for multiple models manually. + +### 2. How to exit Multiple Model Debugging mode? + +Select any model and click **“Debug with a Single Model”** to exit multiple model debugging mode. diff --git a/en/guides/application-orchestrate/readme.mdx b/en/guides/application-orchestrate/readme.mdx index d7ddeb22..644690d4 100644 --- a/en/guides/application-orchestrate/readme.mdx +++ b/en/guides/application-orchestrate/readme.mdx @@ -1,5 +1,5 @@ --- -title: Introduction +title: Application Orchestration --- In Dify, an "application" refers to a practical scenario application built on large language models like GPT. By creating an application, you can apply intelligent AI technology to specific needs. It encompasses both the engineering paradigm for developing AI applications and the specific deliverables. diff --git a/en/guides/application-publishing/based-on-frontend-templates.mdx b/en/guides/application-publishing/based-on-frontend-templates.mdx index 77bf9a39..ae95fd7e 100644 --- a/en/guides/application-publishing/based-on-frontend-templates.mdx +++ b/en/guides/application-publishing/based-on-frontend-templates.mdx @@ -1,8 +1,7 @@ --- -title: Based on WebApp Template +title: Re-develop Based on Frontend Templates --- - If developers are developing new products from scratch or in the product prototype design phase, you can quickly launch AI sites using Dify. At the same time, Dify hopes that developers can fully freely create different forms of front-end applications. For this reason, we provide: * **SDK** for quick access to the Dify API in various languages diff --git a/en/guides/application-publishing/launch-your-webapp-quickly/README.mdx b/en/guides/application-publishing/launch-your-webapp-quickly/README.mdx index 4d60fc05..383fb405 100644 --- a/en/guides/application-publishing/launch-your-webapp-quickly/README.mdx +++ b/en/guides/application-publishing/launch-your-webapp-quickly/README.mdx @@ -2,7 +2,6 @@ title: Publish as a Single-page Web App --- - One of the benefits of creating AI applications with Dify is that you can publish a Single-page AI web app accessible to all users on the internet within minutes. * If you're using the self-hosted open-source version, the application will run on your server diff --git a/en/guides/application-publishing/launch-your-webapp-quickly/conversation-application.mdx b/en/guides/application-publishing/launch-your-webapp-quickly/conversation-application.mdx index e82afc6b..5c986603 100644 --- a/en/guides/application-publishing/launch-your-webapp-quickly/conversation-application.mdx +++ b/en/guides/application-publishing/launch-your-webapp-quickly/conversation-application.mdx @@ -26,7 +26,9 @@ Fill in the necessary details and click the "Start Conversation" button to begin Click the "New Conversation" button to start a new conversation. Hover over a conversation to pin or delete it. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/application-publishing/launch-your-webapp-quickly/46372ad4d79a3ea943d43f9434974956.png) +

+ +

### Conversation Opener diff --git a/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings.mdx b/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings.mdx index 57512a61..c08f87e3 100644 --- a/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings.mdx +++ b/en/guides/application-publishing/launch-your-webapp-quickly/web-app-settings.mdx @@ -1,8 +1,7 @@ --- -title: Overview +title: Web App Settings --- - Web applications are designed for application users. When an application developer creates an application on Dify, a corresponding web application is generated. Users of the web application can use it without logging in. The web application is adapted for various device sizes: PC, tablet, and mobile. The content of the web application aligns with the configuration of the published application. When the application's configuration is modified and the "Publish" button is clicked on the prompt orchestration page, the web application's content will be updated according to the current configuration of the application. diff --git a/en/guides/extension/api-based-extension/README.mdx b/en/guides/extension/api-based-extension/README.mdx index bb6235b2..5b4e28e5 100644 --- a/en/guides/extension/api-based-extension/README.mdx +++ b/en/guides/extension/api-based-extension/README.mdx @@ -2,7 +2,6 @@ title: API-Based Extension --- - Developers can extend module capabilities through the API extension module. Currently supported module extensions include: * `moderation` @@ -38,14 +37,15 @@ POST {Your-API-Endpoint} `Authorization` - Bearer {api\_key} + Bearer `{api_key}` The API Key is transmitted as a token. You need to parse the `api_key` and verify if it matches the provided API Key to ensure API security. + ### Request Body -```JSON +```BASH { "point": string, // Extension point, different modules may contain multiple extension points "params": { @@ -56,7 +56,7 @@ POST {Your-API-Endpoint} ### API Response -```JSON +```BASH { ... // For the content returned by the API, see the specific module's design specifications for different extension points. } @@ -69,14 +69,14 @@ When configuring API-based Extension in Dify, Dify will send a request to the AP ### Header -```JSON +```BASH Content-Type: application/json Authorization: Bearer {api_key} ``` ### Request Body -```JSON +```BASH { "point": "ping" } @@ -84,13 +84,12 @@ Authorization: Bearer {api_key} ### Expected API response -```JSON +```BASH { "result": "pong" } ``` -\\ ## For Example @@ -102,14 +101,14 @@ Here we take the external data tool as an example, where the scenario is to retr ### **Header** -```JSON +```BASH Content-Type: application/json Authorization: Bearer 123456 ``` ### **Request Body** -```JSON +```BASH { "point": "app.external_data_tool.query", "params": { @@ -125,7 +124,7 @@ Authorization: Bearer 123456 ### **API Response** -```JSON +```BASH { "result": "City: London\nTemperature: 10°C\nRealFeel®: 8°C\nAir Quality: Poor\nWind Direction: ENE\nWind Speed: 8 km/h\nWind Gusts: 14 km/h\nPrecipitation: Light rain" } @@ -137,14 +136,16 @@ The code is based on the Python FastAPI framework. #### **Install dependencies.** -
pip install 'fastapi[all]' uvicorn
-
+```bash +pip install 'fastapi[all]' uvicorn +``` #### Write code according to the interface specifications. -
from fastapi import FastAPI, Body, HTTPException, Header
-from pydantic import BaseModel
-
+```python
+from fastapi import FastAPI, Body, HTTPException, Header
+from pydantic import BaseModel
+
 app = FastAPI()
 
 
@@ -202,14 +203,15 @@ def handle_app_external_data_tool_query(params: dict):
         }
     else:
         return {"result": "Unknown city"}
-
+``` #### Launch the API service. The default port is 8000. The complete address of the API is: `http://127.0.0.1:8000/api/dify/receive`with the configured API Key '123456'. -
uvicorn main:app --reload --host 0.0.0.0
-
+```code +uvicorn main:app --reload --host 0.0.0.0 +``` #### Configure this API in Dify. @@ -221,7 +223,7 @@ The default port is 8000. The complete address of the API is: `http://127.0.0.1: When debugging the App, Dify will request the configured API and send the following content (example): -```JSON +```BASH { "point": "app.external_data_tool.query", "params": { @@ -237,7 +239,7 @@ When debugging the App, Dify will request the configured API and send the follow API Response: -```JSON +```BASH { "result": "City: London\nTemperature: 10°C\nRealFeel®: 8°C\nAir Quality: Poor\nWind Direction: ENE\nWind Speed: 8 km/h\nWind Gusts: 14 km/h\nPrecipitation: Light rain" } @@ -249,11 +251,11 @@ Since Dify's cloud version can't access internal network API services, you can u 1. Visit the Ngrok official website at [https://ngrok.com](https://ngrok.com/), register, and download the Ngrok file. -![](../../../.gitbook/assets/spaces_CdDIVDY6AtAz028MFT4d_uploads_kLpE7vN8jg1KrzeCWZtn_download.webp) +![](https://assets-docs.dify.ai/2025/04/118605d17313d1f39a5b5c2408452614.png) 2. After downloading, go to the download directory. Unzip the package and run the initialization script as instructed: -``` +```bash $ unzip /path/to/ngrok.zip $ ./ngrok config add-authtoken 你的Token ``` @@ -264,7 +266,7 @@ $ ./ngrok config add-authtoken 你的Token Run the following command to start: -``` +```bash $ ./ngrok http [port number] ``` @@ -282,4 +284,4 @@ Now, this API endpoint is accessible publicly. You can configure this endpoint i We recommend that you use Cloudflare Workers to deploy your API extension, because Cloudflare Workers can easily provide a public address and can be used for free. -[cloudflare-workers](cloudflare-workers) +[Deploy API Tools with Cloudflare Workers](cloudflare-workers) diff --git a/en/guides/extension/api-based-extension/cloudflare-workers.mdx b/en/guides/extension/api-based-extension/cloudflare-workers.mdx index 5dade47d..cb92a107 100644 --- a/en/guides/extension/api-based-extension/cloudflare-workers.mdx +++ b/en/guides/extension/api-based-extension/cloudflare-workers.mdx @@ -7,7 +7,7 @@ title: Deploy API Tools with Cloudflare Workers Since the Dify API Extension requires a publicly accessible internet address as an API Endpoint, we need to deploy our API extension to a public internet address. Here, we use Cloudflare Workers for deploying our API extension. -We clone the [Example GitHub Repository](https://github.com/crazywoola/dify-extension-workers), which contains a simple API extension. We can modify this as a base. +Clone the [Example GitHub Repository](https://github.com/crazywoola/dify-extension-workers), which contains a simple API extension. We can modify this as a base. ```bash git clone https://github.com/crazywoola/dify-extension-workers.git @@ -59,6 +59,32 @@ alt="" /> +Additionally, you can use the `npm run dev` command to deploy locally for testing. + +```bash +npm install +npm run dev +``` + +Related output: + +```bash +$ npm run dev +> dev +> wrangler dev src/index.ts + + ⛅️ wrangler 3.99.0 +------------------- + +Your worker has access to the following bindings: +- Vars: + - TOKEN: "ban****ool" +⎔ Starting local server... +[wrangler:inf] Ready on http://localhost:58445 +``` + +After this, you can use tools like Postman to debug the local interface. + ## Other Logic TL;DR ### About Bearer Auth diff --git a/en/guides/extension/api-based-extension/external-data-tool.mdx b/en/guides/extension/api-based-extension/external-data-tool.mdx index 3f6da5c1..dfea1091 100644 --- a/en/guides/extension/api-based-extension/external-data-tool.mdx +++ b/en/guides/extension/api-based-extension/external-data-tool.mdx @@ -2,7 +2,6 @@ title: External Data Tools --- - External data tools are used to fetch additional data from external sources after the end user submits data, and then assemble this data into prompts as additional context information for the LLM. Dify provides a default tool for external API calls, check [External Data Tool](https://docs.dify.ai/guides/knowledge-base/external-data-tool) for details. For developers deploying Dify locally, to meet more customized needs or to avoid developing an additional API Server, you can directly insert custom external data tool logic in the form of a plugin based on the Dify service. After extending custom tools, your custom tool options will be added to the dropdown list of tool types, and team members can use these custom tools to fetch external data. @@ -17,7 +16,7 @@ Here is an example of extending an external data tool for `Weather Search`, with 4. Preview the frontend interface 5. Debug the extension -### 1. **Initialize the Directory** +### 1. Initialize the Directory To add a custom type `Weather Search`, you need to create the relevant directory and files under `api/core/external_data_tool`. @@ -32,7 +31,7 @@ To add a custom type `Weather Search`, you need to create the relevant directory └── schema.json ``` -### 2. **Add Frontend Component Specifications** +### 2. Add Frontend Component Specifications * `schema.json`, which defines the frontend component specifications, detailed in [.](./ "mention") @@ -79,7 +78,7 @@ To add a custom type `Weather Search`, you need to create the relevant directory `weather_search.py` code template, where you can implement the specific business logic. -Note: The class variable `name` must be the custom type name, consistent with the directory and file name, and must be unique. + The class variable `name` must be the custom type name, consistent with the directory and file name, and must be unique. ```python @@ -130,17 +129,12 @@ class WeatherSearch(ExternalDataTool): return f'Weather in {city} is 0°C' ``` - - -### 4. **Debug the Extension** +### 4. Debug the Extension Now, you can select the custom `Weather Search` external data tool extension type in the Dify application orchestration interface for debugging. -## Implementation Class Template +#### Implementation Class Template ```python from typing import Optional @@ -181,7 +175,7 @@ class WeatherSearch(ExternalDataTool): ### Detailed Introduction to Implementation Class Development -### def validate_config +#### def validate_config `schema.json` form validation method, called when the user clicks "Publish" to save the configuration. @@ -193,4 +187,4 @@ class WeatherSearch(ExternalDataTool): User-defined data query implementation, the returned result will be replaced into the specified variable. * `inputs`: Variables passed by the end user -* `query`: Current conversation input content from the end user, a fixed parameter for conversational applications. \ No newline at end of file +* `query`: Current conversation input content from the end user, a fixed parameter for conversational applications. diff --git a/en/guides/extension/api-based-extension/moderation-extension.mdx b/en/guides/extension/api-based-extension/moderation-extension.mdx index 1a7eb9e7..9fb59d68 100644 --- a/en/guides/extension/api-based-extension/moderation-extension.mdx +++ b/en/guides/extension/api-based-extension/moderation-extension.mdx @@ -2,7 +2,6 @@ title: Moderation --- - This module is used to review the content input by end-users and the output from LLMs within the application, divided into two types of extension points. Please read [.](./ "mention") to complete the development and integration of basic API service capabilities. diff --git a/en/guides/extension/api-based-extension/moderation.mdx b/en/guides/extension/api-based-extension/moderation.mdx index 5839fdd3..724e1eab 100644 --- a/en/guides/extension/api-based-extension/moderation.mdx +++ b/en/guides/extension/api-based-extension/moderation.mdx @@ -2,7 +2,6 @@ title: Sensitive Content Moderation --- - This module is used to review the content input by end-users and the output content of the LLM within the application. It is divided into two types of extension points. ### Extension Points @@ -17,7 +16,7 @@ This module is used to review the content input by end-users and the output cont #### Request Body -``` +```json { "point": "app.moderation.input", // Extension point type, fixed as app.moderation.input here "params": { diff --git a/en/guides/extension/code-based-extension/external-data-tool.mdx b/en/guides/extension/code-based-extension/external-data-tool.mdx index 1d06366f..66fd52d6 100644 --- a/en/guides/extension/code-based-extension/external-data-tool.mdx +++ b/en/guides/extension/code-based-extension/external-data-tool.mdx @@ -2,7 +2,6 @@ title: External Data Tools --- - External data tools are used to fetch additional data from external sources after the end user submits data, and then assemble this data into prompts as additional context information for the LLM. Dify provides a default tool for external API calls, check [api-based-extension](/en/guides/extension/api-based-extension) for details. For developers deploying Dify locally, to meet more customized needs or to avoid developing an additional API Server, you can directly insert custom external data tool logic in the form of a plugin based on the Dify service. After extending custom tools, your custom tool options will be added to the dropdown list of tool types, and team members can use these custom tools to fetch external data. @@ -34,7 +33,7 @@ To add a custom type `Weather Search`, you need to create the relevant directory ### 2. **Add Frontend Component Specifications** -* `schema.json`, which defines the frontend component specifications, detailed in [Code Based Extension](.) +* `schema.json`, which defines the frontend component specifications, detailed in [.](./ "mention") ```json { @@ -78,9 +77,9 @@ To add a custom type `Weather Search`, you need to create the relevant directory `weather_search.py` code template, where you can implement the specific business logic. - + Note: The class variable `name` must be the custom type name, consistent with the directory and file name, and must be unique. - + ```python from typing import Optional @@ -130,12 +129,6 @@ class WeatherSearch(ExternalDataTool): return f'Weather in {city} is 0°C' ``` - - - - ### 4. **Debug the Extension** Now, you can select the custom `Weather Search` external data tool extension type in the Dify application orchestration interface for debugging. @@ -193,4 +186,4 @@ class WeatherSearch(ExternalDataTool): User-defined data query implementation, the returned result will be replaced into the specified variable. * `inputs`: Variables passed by the end user -* `query`: Current conversation input content from the end user, a fixed parameter for conversational applications. \ No newline at end of file +* `query`: Current conversation input content from the end user, a fixed parameter for conversational applications. diff --git a/en/guides/extension/code-based-extension/moderation.mdx b/en/guides/extension/code-based-extension/moderation.mdx index 7a16678b..6aae34de 100644 --- a/en/guides/extension/code-based-extension/moderation.mdx +++ b/en/guides/extension/code-based-extension/moderation.mdx @@ -2,7 +2,6 @@ title: Sensitive Content Moderation --- - In addition to the system's built-in content moderation types, Dify also supports user-defined content moderation rules. This method is suitable for developers customizing their own private deployments. For instance, in an enterprise internal customer service setup, it may be required that users, while querying or customer service agents while responding, not only avoid entering words related to violence, sex, and illegal activities but also avoid specific terms forbidden by the enterprise or violating internally established moderation logic. Developers can extend custom content moderation rules at the code level in a private deployment of Dify. ## Quick Start @@ -19,7 +18,7 @@ Here is an example of extending a `Cloud Service` content moderation type, with To add a custom type `Cloud Service`, create the relevant directories and files under the `api/core/moderation` directory. -```Plain +```plaintext . └── api └── core @@ -32,7 +31,7 @@ To add a custom type `Cloud Service`, create the relevant directories and files ### 2. Add Frontend Component Specifications -* `schema.json`: This file defines the frontend component specifications. For details, see [.](./ "mention"). +* `schema.json`: This file defines the frontend component specifications. ```json { @@ -106,9 +105,9 @@ To add a custom type `Cloud Service`, create the relevant directories and files `cloud_service.py` code template where you can implement specific business logic. - + Note: The class variable name must be the same as the custom type name, matching the directory and file names, and must be unique. - + ```python from core.moderation.base import Moderation, ModerationAction, ModerationInputsResult, ModerationOutputsResult @@ -205,12 +204,6 @@ class CloudServiceModeration(Moderation): return False ``` - - - - ### 4. Debug the Extension At this point, you can select the custom `Cloud Service` content moderation extension type for debugging in the Dify application orchestration interface. @@ -278,7 +271,7 @@ class CloudServiceModeration(Moderation): The `schema.json` form validation method is called when the user clicks "Publish" to save the configuration. * `config` form parameters - * `{{variable}}` custom variable of the form + * `{variable}` custom variable of the form * `inputs_config` input moderation preset response * `enabled` whether it is enabled * `preset_response` input preset response @@ -314,4 +307,5 @@ Output validation function * `direct_output`: directly output the preset response * `overridden`: override the passed variable values * `preset_response`: preset response (returned only when action=direct_output) - * `text`: overridden content of the LLM response (returned only when action=overridden). \ No newline at end of file + * `text`: overridden content of the LLM response (returned only when action=overridden). + diff --git a/en/guides/knowledge-base/api-documentation/external-knowledge-api-documentation.mdx b/en/guides/knowledge-base/api-documentation/external-knowledge-api-documentation.mdx index 431b18ae..279b6a3e 100644 --- a/en/guides/knowledge-base/api-documentation/external-knowledge-api-documentation.mdx +++ b/en/guides/knowledge-base/api-documentation/external-knowledge-api-documentation.mdx @@ -164,12 +164,5 @@ HTTP Status Code: 500 You can learn how to develop external knowledge base plugins through the following video tutorial using LlamaCloud as an example: - @@ -23,8 +23,8 @@ Workflow type applications only support the **"Image Upload"** feature. When ena diff --git a/en/guides/workflow/bulletin.mdx b/en/guides/workflow/bulletin.mdx index 3956ee16..c334992a 100644 --- a/en/guides/workflow/bulletin.mdx +++ b/en/guides/workflow/bulletin.mdx @@ -37,7 +37,7 @@ We no longer recommend using the standalone “Image Upload” feature and inste * **Chatflow Applications** -If you have already created Chatflow applications with the “Image Upload” feature enabled and activated the Vision feature in the LLM node, the system will automatically switch the feature, and it will not affect the application’s image upload capability. If you need to update and republish the application, select the file variable in the Vision variable selection box of the LLM node, clear the item from the checklist, and republish the application.\ +If you have already created Chatflow applications with the “Image Upload” feature enabled and activated the Vision feature in the LLM node, the system will automatically switch the feature, and it will not affect the application’s image upload capability. If you need to update and republish the application, select the file variable in the Vision variable selection box of the LLM node, clear the item from the checklist, and republish the application. ![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/bc6e9e3a57844f5f1e50b4716592449d.png) @@ -65,7 +65,7 @@ If you wish to add the “Image Upload” feature to a Chatflow application, ref Existing Workflow applications will not be affected, but please complete the manual migration before the official deprecation. -If you wish to enable the “Image Upload” feature for a Workflow application, add a file variable in the [Start](/en/guides/workflow/node/start) node. Then, reference this file variable in subsequent node instead of using the `sys.files` variable.\ +If you wish to enable the “Image Upload” feature for a Workflow application, add a file variable in the [Start](/en/guides/workflow/node/start) node. Then, reference this file variable in subsequent node instead of using the `sys.files` variable. ### FAQs: diff --git a/en/guides/workflow/error-handling/README.mdx b/en/guides/workflow/error-handling/README.mdx index fc237ddd..6f478637 100644 --- a/en/guides/workflow/error-handling/README.mdx +++ b/en/guides/workflow/error-handling/README.mdx @@ -1,5 +1,5 @@ --- -title: Introduction +title: Error Handling --- Workflow applications often comprise multiple interconnected nodes operating in sequence. When an error occurs—such as an API request failure, an LLM output issue, or an unexpected exception—it can disrupt the entire process. Such disruptions force developers to spend significant time troubleshooting, especially in workflows with complex node dependencies. @@ -28,10 +28,10 @@ For instance, a code node on the alternative path can split the content into sma The following four types of nodes have added error-handling feature. Click on the title to read the detailed documents: -* [LLM](/en/guides/workflow/nodes/llm) -* [HTTP](/en/guides/workflow/nodes/http-request) -* [Code](/en/guides/workflow/nodes/code) -* [Tools](/en/guides/workflow/nodes/tools) +* [LLM](/en/guides/workflow/node/llm) +* [HTTP](/en/guides/workflow/node/http-request) +* [Code](/en/guides/workflow/node/code) +* [Tools](/en/guides/workflow/node/tools) **Retry on Failure** diff --git a/en/guides/workflow/error-handling/error-type.mdx b/en/guides/workflow/error-handling/error-type.mdx index 4f8bf31e..02979ffd 100644 --- a/en/guides/workflow/error-handling/error-type.mdx +++ b/en/guides/workflow/error-handling/error-type.mdx @@ -32,7 +32,9 @@ This article summarizes the potential exceptions and corresponding error types t 2. Start the sandbox service 3. Verify proxy settings -![Sandbox network issues](https://assets-docs.dify.ai/2024/12/d95007adf67c4f232e46ec455c348e2c.PNG) +

+ +

3. **Depth Limit Error (DepthLimitError)** @@ -105,9 +107,10 @@ The following 3 errors commonly occur during runtime: An error that occurs during tool execution itself, such as when reaching the target API's request limit. +

+ +

- - ![](https://assets-docs.dify.ai/2024/12/84af0831b7cb23e64159dfbba80e9b28.jpg) 2. **Tool Parameter Error (ToolParameterError)** An error occurs when the configured tool node parameters are invalid, such as passing parameters that don't match the tool node's defined parameters. diff --git a/en/guides/workflow/error-handling/predefined-error-handling-logic.mdx b/en/guides/workflow/error-handling/predefined-error-handling-logic.mdx index d55c77c8..d99bfda4 100644 --- a/en/guides/workflow/error-handling/predefined-error-handling-logic.mdx +++ b/en/guides/workflow/error-handling/predefined-error-handling-logic.mdx @@ -5,13 +5,13 @@ title: Predefined Error Handling Logic Here are four types of nodes that provide with predefined logic for handling unexpected situations: -• [LLM](/en/guides/workflow/nodes/llm) +• [LLM](/en/guides/workflow/node/llm) -• [HTTP](/en/guides/workflow/nodes/http-request) +• [HTTP](/en/guides/workflow/node/http-request) -• [Code](/en/guides/workflow/nodes/code) +• [Code](/en/guides/workflow/node/code) -• [Tool](/en/guides/workflow/nodes/tools) +• [Tool](/en/guides/workflow/node/tools) The error handling feature provides three predefined options: @@ -40,7 +40,9 @@ When a node fails to execute, the workflow automatically uses the developer’s The predefined default value’s data type must match the node’s output variable type. For example, if the output variable of a code node is set to the data type `array[number]`, the default value must also be of the `array[number]` data type. -![Error handling: default value](https://assets-docs.dify.ai/2024/12/e9e5e757090679243e0c9976093c7e6c.png) +

+ +

### Logic: Fail Branch diff --git a/en/guides/workflow/file-upload.mdx b/en/guides/workflow/file-upload.mdx index a39210b3..bec1c464 100644 --- a/en/guides/workflow/file-upload.mdx +++ b/en/guides/workflow/file-upload.mdx @@ -2,9 +2,146 @@ title: File Upload --- -[前面的内容保持不变...] +Compared to chat text, document files can contain vast amounts of information, such as academic reports and legal contracts. However, Large Language Models (LLMs) are inherently limited to processing only text or images, making it challenging to extract the rich contextual information within these files. As a result, application users often resort to manually copying and pasting large amounts of information to converse with LLMs, significantly increasing unnecessary operational overhead. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/f6ea094b30b240c999a4248d1fc21a1c.png) +The file upload feature addresses this limitation by allowing files to be uploaded, parsed, referenced, and downloaded as File variables within workflow applications. **This empowers developers to easily construct complex workflows capable of understanding and processing various media types, including images, audio, and video.** + +## Application Scenarios + +1. **Document Analysis**: Upload academic research reports for LLMs to quickly summarize key points and answer related questions based on the file content. +2. **Code Review**: Developers can upload code files to receive optimization suggestions and bug detection. +3. **Learning Assistance**: Students can upload assignments or study materials for personalized explanations and guidance. +4. **Legal Aid**: Upload complete contract texts for LLMs to assist in reviewing clauses and identifying potential risks. + +## Difference Between File Upload and Knowledge Base + +Both file upload and knowledge base provide additional contextual information for LLMs, but they differ significantly in usage scenarios and functionality: + +1. **Information Source**: + * File Upload: Allows end-users to dynamically upload files during conversations, providing immediate, personalized contextual information. + * Knowledge Base: Pre-set and managed by application developers, containing a relatively fixed set of information. +2. **Usage Flexibility**: + * File Upload: More flexible, users can upload different types of files based on specific needs. + * Knowledge Base: Content is relatively fixed but can be reused across multiple sessions. +3. **Information Processing**: + * File Upload: Requires document extractors or other tools to convert file content into text that LLMs can understand. + * Knowledge Base: Usually pre-processed and indexed, ready for direct retrieval. +4. **Application Scenarios**: + * File Upload: Suitable for scenarios that need to process user-specific documents, such as document analysis, personalized learning assistance, etc. + * Knowledge Base: Suitable for scenarios that require access to a large amount of preset information, such as customer service, product inquiries, etc. +5. **Data Persistence**: + * File Upload: Typically for temporary use, not stored long-term in the system. + * Knowledge Base: Exists as a long-term part of the application, can be continuously updated and maintained. + +## Quick Start: Building a Chatflow / Workflow Application with File Upload Feature + +Dify supports file uploads in both [ChatFlow](key-concepts) and [WorkFlow](key-concepts#chatflow-and-workflow) type applications, processing them through variables for LLMs. Application developers can refer to the following methods to enable file upload functionality: + +* In Workflow applications: + * Add file variables in the ["Start Node"](node/start) +* In ChatFlow applications: + * Enable file upload in ["Additional Features"](additional-features) to allow direct file uploads in the chat window + * Add file variables in the "[Start Node"](node/start) + * Note: These two methods can be configured simultaneously and are independent of each other. The file upload settings in additional features (including upload method and quantity limit) do not affect the file variables in the start node. For example, if you only want to create file variables through the start node, you don't need to enable the file upload feature in additional features. + +These two methods provide flexible file upload options for applications to meet the needs of different scenarios. + +**File Types** + +`File` variables and `array[file]` variables support the following file types and formats: + +| File Type | Supported Formats | +|-------------|--------------------------------------------------------------------| +| Documents | TXT, MARKDOWN, PDF, HTML, XLSX, XLS, DOCX, CSV, EML, MSG, PPTX, PPT, XML, EPUB. | +| Images | JPG, JPEG, PNG, GIF, WEBP, SVG. | +| Audio | MP3, M4A, WAV, WEBM, AMR. | +| Video | MP4, MOV, MPEG, MPGA. | +| Others | Custom file extension support | + +#### Method 1: Using an LLM with File Processing Capabilities + +Some LLMs, such as [Claude 3.5 Sonnet](https://docs.anthropic.com/en/docs/build-with-claude/pdf-support), now support direct processing and analysis of file content, enabling the use of file variables in the LLM node's prompts. + +> To prevent potential issues, application developers should verify the supported file types on the LLM's official website before utilizing the file variable. + +1. Click to create a Chatflow or Workflow application. +2. Add an LLM node and select an LLM with file processing capabilities. +3. Add a file variable in the start node. +4. Enter the file variable in the system prompt of the LLM node. +5. Complete the setup. + +![Screenshot](https://assets-docs.dify.ai/2024/11/a7154e8966d979dcba13eac0a172ef89.png) + +**Method 2: Enable File Upload in Application Chat Box (Chatflow Only)** + +1. Click the **"Features"** button in the upper right corner of the Chatflow application to add more functionality to the application. After enabling this feature, application users can upload and update files at any time during the application dialogue. A maximum of 10 files can be uploaded simultaneously, with a size limit of 15MB per file. + +![](https://assets-docs.dify.ai/2025/04/e0174e87c5e108b6cd35493f3b5c38b7.png) + +Enabling this feature does not grant LLMs the ability to directly read files. A **Document Extractor** is still needed to parse documents into text for LLM comprehension. + +* For audio files, models like `gpt-4o-audio-preview` that support multimodal input can process audio directly without additional extractors. +* For video and other file types, there are currently no corresponding extractors. Application developers need to [integrate external tools](../extension/api-based-extension/external-data-tool) for processing. + +2. Add a Document Extractor node, and select the `sys.files` variable in the input variables. +3. Add an LLM node and select the output variable of the Document Extractor node in the system prompt. +4. Add an "Answer" node at the end, filling in the output variable of the LLM node. + +![](https://assets-docs.dify.ai/2025/04/243a8e88c4f8e070977bd5faf098c843.png) + +Once enabled, users can upload files and engage in conversations in the dialogue box. However, with this method, the LLM application does not have the ability to remember file contents, and files need to be uploaded for each conversation. + +![](https://assets-docs.dify.ai/2025/04/f49da11cc68943866396aa9639f2cf03.png) + +If you want the LLM to remember file contents during conversations, please refer to Method 3. + +**Method 3: Enable File Upload by Adding File Variables** + +**1. Add File Variables in the "Start" Node** + +Add input fields in the application's "Start" node, choosing either **"Single File"** or **"File List"** as the field type for the variable. + + + +* **Single File** + + Allows the application user to upload only one file. +* **File List** + + Allows the application user to batch upload multiple files at once. + +> For ease of operation, we will use a single file variable as an example. + +**File Parsing** + +There are two main ways to use file variables: + +1. Using tool nodes to convert file content: + * For document-type files, you can use the "Document Extractor" node to convert file content into text form. + * This method is suitable for cases where file content needs to be parsed into a format that the model can understand (such as string, array\[string], etc.). +2. Using file variables directly in LLM nodes: + * For certain types of files (such as images), you can use file variables directly in LLM nodes. + * For example, for file variables of image type, you can enable the vision feature in the LLM node and then directly reference the corresponding file variable in the variable selector. + +The choice between these methods depends on the file type and your specific requirements. Next, we will detail the specific steps for both methods. + +**2. Add Document Extractor Node** + +After uploading, files are stored in single file variables, which LLMs cannot directly read. Therefore, a **"Document Extractor"** node needs to be added first to extract content from uploaded document files and send it to the LLM node for information processing. + +Use the file variable from the "Start" node as the input variable for the **"Document Extractor"** node. + +![](https://assets-docs.dify.ai/2025/04/a5ded00dc6213e1bc958825100007a46.png) + +Fill in the output variable of the "Document Extractor" node in the system prompt of the LLM node. + +![](https://assets-docs.dify.ai/2025/04/7cc1a5186610b3201cc6ffcc964bb566.png) After completing these settings, application users can paste file URLs or upload local files in the WebApp, then interact with the LLM about the document content. Users can replace files at any time during the conversation, and the LLM will obtain the latest file content. @@ -18,7 +155,7 @@ For certain file types (such as images), file variables can be directly used wit Below is an example configuration: -![Using file variables directly in LLM node](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/f8980732757050049a430eea934511cf.png) +![](https://assets-docs.dify.ai/2025/04/ec247f5de4f59d4fb0c4ac25ce2fd96c.png) It's important to note that when directly using file variables in LLM node, the developers need to ensure that the file variable contains only image files; otherwise, errors may occur. If users might upload different types of files, we need to use list operator node for filtering files. @@ -26,7 +163,7 @@ It's important to note that when directly using file variables in LLM node, the Placing file variables in answer nodes or end nodes will provide a file download card in the conversation box when the application reaches that node. Clicking the card allows for file download. -![file download](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/bc39be7fd4879b3875e6b77daaff5d37.png) +![](https://assets-docs.dify.ai/2025/04/2ffc81675dee89d477cc461385501ddd.png) ## Advanced Usage diff --git a/en/guides/workflow/key-concepts.mdx b/en/guides/workflow/key-concepts.mdx index 2cd7b6fa..1b29d97c 100644 --- a/en/guides/workflow/key-concepts.mdx +++ b/en/guides/workflow/key-concepts.mdx @@ -2,10 +2,9 @@ title: Key Concepts --- +### Nodes -### node - -**node are the key components of a workflow**. By connecting node with different functionalities, you can execute a series of operations within the workflow. +**Nodes are the key components of a workflow**. By connecting node with different functionalities, you can execute a series of operations within the workflow. For core workflow node, please refer to [Block Description](/en/guides/workflow/node). diff --git a/en/guides/workflow/node/answer.mdx b/en/guides/workflow/node/answer.mdx index 4d6e0246..784718c3 100644 --- a/en/guides/workflow/node/answer.mdx +++ b/en/guides/workflow/node/answer.mdx @@ -2,7 +2,6 @@ title: Answer --- - Defining Reply Content in a Chatflow Process. In a text editor, you have the flexibility to determine the reply format. This includes crafting a fixed block of text, utilizing output variables from preceding steps as the reply content, or merging custom text with variables for the response. Answer node can be seamlessly integrated at any point to dynamically deliver content into the dialogue responses. This setup supports a live-editing configuration mode, allowing for both text and image content to be arranged together. The configurations include: @@ -13,19 +12,15 @@ Answer node can be seamlessly integrated at any point to dynamically deliver con Example 1: Output plain text. -
- - -
diff --git a/en/guides/workflow/node/code.mdx b/en/guides/workflow/node/code.mdx index cbc64847..76940572 100644 --- a/en/guides/workflow/node/code.mdx +++ b/en/guides/workflow/node/code.mdx @@ -16,7 +16,7 @@ The code node supports running Python/NodeJS code to perform data transformation This node significantly enhances the flexibility for developers, allowing them to embed custom Python or JavaScript scripts within the workflow and manipulate variables in ways that preset nodes cannot achieve. Through configuration options, you can specify the required input and output variables and write the corresponding execution code: -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9969aa1bc1912aebe366f5d8f5dde296.png) + ## Configuration diff --git a/en/guides/workflow/node/end.mdx b/en/guides/workflow/node/end.mdx index 9464d29d..344325d8 100644 --- a/en/guides/workflow/node/end.mdx +++ b/en/guides/workflow/node/end.mdx @@ -19,7 +19,7 @@ End nodes are not supported within Chatflow. ### 2 Scenarios -In the following [long story generation workflow](/en/guides/workflow/nodes/iteration#example-2-long-article-iterative-generation-another-scheduling-method), the variable `Output` declared by the end node is the output of the upstream code node. This means the workflow will end after the Code node completes execution and will output the execution result of Code. +In the following [long story generation workflow](/en/guides/workflow/node/iteration#example-2-long-article-iterative-generation-another-scheduling-method), the variable `Output` declared by the end node is the output of the upstream code node. This means the workflow will end after the Code node completes execution and will output the execution result of Code. ![End Node - Long Story Generation Example](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/a103792790447c1725c1da1176334cae.png) diff --git a/en/guides/workflow/node/http-request.mdx b/en/guides/workflow/node/http-request.mdx index 18e7785c..b8b9ca82 100644 --- a/en/guides/workflow/node/http-request.mdx +++ b/en/guides/workflow/node/http-request.mdx @@ -18,7 +18,9 @@ This node supports common HTTP request methods: You can configure various aspects of the HTTP request, including URL, request headers, query parameters, request body content, and authentication information. -![HTTP Request Configuration](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/07c5e952eb4c9d6a32d0b7c2d855d4a5.png) +

+ +

*** diff --git a/en/guides/workflow/node/ifelse.mdx b/en/guides/workflow/node/ifelse.mdx index 4c8783e3..24132f49 100644 --- a/en/guides/workflow/node/ifelse.mdx +++ b/en/guides/workflow/node/ifelse.mdx @@ -2,7 +2,6 @@ title: Conditional Branch IF/ELSE --- - ### Definition Allows you to split the workflow into two branches based on if/else conditions. @@ -44,4 +43,4 @@ Taking the above **Text Summary Workflow** as an example: For complex condition judgments, you can set multiple condition judgments and configure **AND** or **OR** between conditions to take the **intersection** or **union** of the conditions, respectively. -![Multiple Condition Judgments](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/0b71ee7363e07298348e0c81e63481b0.png) +Multiple Condition Judgments diff --git a/en/guides/workflow/node/iteration.mdx b/en/guides/workflow/node/iteration.mdx index dce81269..5bfd52ee 100644 --- a/en/guides/workflow/node/iteration.mdx +++ b/en/guides/workflow/node/iteration.mdx @@ -23,19 +23,7 @@ An iteration node consists of three core components: **Input Variables**, **Iter **Output Variables:** Outputs only array variables (`Array[List]`). -
- - - -
+![](https://assets-docs.dify.ai/2025/04/5f3f124c16b9e3565853f125f7db0e32.png) ### Scenarios @@ -53,15 +41,21 @@ alt="" 1. Configure the story title (title) and outline (outline) in the **Start Node**. -![Start Node Configuration](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/3af1c2ed0df00f19e584bcf511302f55.png) +

+ +

2. Use a **Generate Subtitles and Outlines Node** to convert the story title and outline into complete text. -![Template Node](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/55f1eceb43bd6e301078a08584988b18.png) +

+ +

3. Use a **Extract Subtitles and Outlines Node** to convert the story text into an array (Array) structure. The parameter to extract is `sections`, and the parameter type is `Array[Object]`. -![Parameter Extraction](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/d3beee536ff3c35f4e1eb1ab610f35d7.png) +

+ +

The effectiveness of parameter extraction is influenced by the model's inference capability and the instructions given. Using a model with stronger inference capabilities and adding examples in the **instructions** can improve the parameter extraction results. @@ -73,7 +67,9 @@ The effectiveness of parameter extraction is influenced by the model's inference Configure the input variables `GenerateOverallOutline/output` and `Iteration/item` in the LLM Node. -![Configure LLM Node](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/d849ff9164482a83ea8a091fde9cb4d1.png) +

+ +

Built-in variables for iteration: `items[object]` and `index[number]`. @@ -163,7 +159,9 @@ The output variable of the iteration node is in array format and cannot be direc **Convert Using a Code Node** -![Code Node Conversion](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/8be2372b00a802e981efe6f0ceff815b.png) +

+ +

CODE Example: @@ -177,7 +175,9 @@ def main(articleSections: list): **Convert Using a Template Node** -![Template Node Conversion](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/8c0bcc5de453dea2776d2755449bd971.png) +

+ +

CODE Example: diff --git a/en/guides/workflow/node/llm.mdx b/en/guides/workflow/node/llm.mdx index dca136ac..0e55fbab 100644 --- a/en/guides/workflow/node/llm.mdx +++ b/en/guides/workflow/node/llm.mdx @@ -110,7 +110,7 @@ The main parameter terms are explained as follows: If you do not understand what these parameters are, you can choose to load presets and select from the three presets: Creative, Balanced, and Precise. -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/b913f9cdf1f9b03e791a49836bc770dd.png) + *** @@ -213,7 +213,7 @@ Click **Add Field** and set parameters below: 1. Click the AI Generate icon, select a model (like GPT-4o), and describe what you need: - > “I need a JSON Schema for user profiles with username (string), age (number), and interests (array).” + > "I need a JSON Schema for user profiles with username (string), age (number), and interests (array)." 2. Click **Generate** to create a schema: @@ -286,7 +286,7 @@ Click **Add Field** and set parameters below: 1. Click the AI Generate icon, select a model (like GPT-4o), and describe what you need: - > “I need a JSON Schema for user profiles with username (string), age (number), and interests (array).” + > "I need a JSON Schema for user profiles with username (string), age (number), and interests (array)." 2. Click **Generate** to create a schema: @@ -325,7 +325,7 @@ To enable workflow applications to read "[Knowledge Base](../../knowledge-base/) 2. Fill in the **output variable** `result` of the knowledge retrieval node into the **context variable** of the LLM node; 3. Insert the **context variable** into the application prompt to give the LLM the ability to read text within the knowledge base. -![上下文变量](../../../.gitbook/assets/image (135).png) +![](https://assets-docs.dify.ai/2025/04/f62253ae895d9737399c50e93385534f.png) The `result` variable output by the Knowledge Retrieval Node also includes segmented reference information. You can view the source of information through the **Citation and Attribution** feature. @@ -341,9 +341,9 @@ To enable workflow applications to read document contents, such as building a Ch * Add a document extractor node upstream of the LLM node, using the file variable as an input variable; * Fill in the **output variable** `text` of the document extractor node into the prompt of the LLM node. -For more information, please refer to [File Upload](../file-upload.md). +For more information, please refer to [File Upload](../file-upload). -![填写系统提示词](../../../.gitbook/assets/image (137).png) +![](https://assets-docs.dify.ai/2025/04/c74cf0c58aaf1f35e515044deec2a88c.png) * **Error Handling** @@ -358,40 +358,16 @@ For more information about exception handling methods, please refer to the [Erro * **Structured Outputs** -**Scenario**: You are building a user feedback analysis workflow on Dify. The LLM node needs to read user reviews and return standardized ratings and comments in a consistent format for downstream nodes to process. +**Case: Customer Information Intake Form** -**Solution**: In your workflow’s LLM node, you can use the JSON Schema Editor to define a structured format. This ensures the LLM generates results in a strict predefined format instead of unstructured text. +Watch the following video to learn how to use JSON Schema Editor to collect customer information: -1. Define your output structure in the JSON Schema Editor: - -```json -{ - "type": "object", - "properties": { - "rating": { - "type": "integer", - "description": "user's rating" - }, - "comment": { - "type": "string", - "description": "user's comments" - } - }, - "required": ["rating", "comment"] -} -``` - -2. Test it with a review in your Start node: - - > “This product is excellent!” - -3. The LLM node will return a clean, structured response: - -```json -{ - "structured_output": { - "comment": "This product is excellent!", - "rating": 5 - } -} -``` + diff --git a/en/guides/workflow/node/parameter-extractor.mdx b/en/guides/workflow/node/parameter-extractor.mdx index 8fdef194..ae30e13e 100644 --- a/en/guides/workflow/node/parameter-extractor.mdx +++ b/en/guides/workflow/node/parameter-extractor.mdx @@ -25,7 +25,7 @@ In this example: The Arxiv paper retrieval tool requires **paper author** or **p ![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/71d8e48d842342668f92e6dd84fc03c1.png) -1. **Extracting structured data and using the** [**HTTP Request**](/en/guides/workflow/nodes/http-request), which can request any accessible URL, suitable for obtaining external retrieval results, webhooks, generating images, and other scenarios. +3. **Extracting structured data and using the** [**HTTP Request**](/en/guides/workflow/nodes/http-request), which can request any accessible URL, suitable for obtaining external retrieval results, webhooks, generating images, and other scenarios. *** diff --git a/en/guides/workflow/node/template.mdx b/en/guides/workflow/node/template.mdx index b6fbc922..d137fc09 100644 --- a/en/guides/workflow/node/template.mdx +++ b/en/guides/workflow/node/template.mdx @@ -4,12 +4,11 @@ title: Template Template lets you dynamically format and combine variables from previous nodes into a single text-based output using Jinja2, a powerful templating syntax for Python. It's useful for combining data from multiple sources into a specific structure required by subsequent nodes. The simple example below shows how to assemble an article by piecing together various previous outputs: -![](https://assets-docs.dify.ai/2025/04/0838bb5c7e1d1a58ed30fcd9fc48920f.png) + Beyond naive use cases, you can create more complex templates as per Jinja's [documentation](https://jinja.palletsprojects.com/en/3.1.x/templates/) for a variety of tasks. Here's one template that structures retrieved chunks and their relevant metadata from a knowledge retrieval node into a formatted markdown: ```Plain -{% raw %} {% for item in chunks %} ### Chunk {{ loop.index }}. ### Similarity: {{ item.metadata.score | default('N/A') }} @@ -21,7 +20,6 @@ Beyond naive use cases, you can create more complex templates as per Jinja's [do --- {% endfor %} -{% endraw %} ``` ![](https://assets-docs.dify.ai/2025/04/0ae3f13cf725cb2c52c72cc354e592ee.png) diff --git a/en/guides/workflow/node/tools.mdx b/en/guides/workflow/node/tools.mdx index 4bd2d5ca..ce311bd7 100644 --- a/en/guides/workflow/node/tools.mdx +++ b/en/guides/workflow/node/tools.mdx @@ -17,18 +17,11 @@ If built-in tools do not meet your needs, you can create custom tools in the **D You can also orchestrate a more complex workflow and publish it as a tool. -
- - -
+

+ +

+ +![](https://assets-docs.dify.ai/2025/04/f37cce4ccbb7456154cfa9eacda6b322.png) Configuring a tool node generally involves two steps: diff --git a/en/guides/workflow/node/variable-assigner.mdx b/en/guides/workflow/node/variable-assigner.mdx index 70a8a0cb..031d04ca 100644 --- a/en/guides/workflow/node/variable-assigner.mdx +++ b/en/guides/workflow/node/variable-assigner.mdx @@ -158,26 +158,36 @@ The data type of the target variable determines its operation method. Below are 1. Target variable data type: `String` • **Overwrite**: Directly overwrite the target variable with the source variable. + • **Clear**: Clear the contents of the selected target variable. + • **Set**: Manually assign a value without requiring a source variable. 2. Target variable data type: `Number` • **Overwrite**: Directly overwrite the target variable with the source variable. + • **Clear**: Clear the contents of the selected target variable. + • **Set**: Manually assign a value without requiring a source variable. + • **Arithmetic**: Perform addition, subtraction, multiplication, or division on the target variable. 3. Target variable data type: `Object` • **Overwrite**: Directly overwrite the target variable with the source variable. + • **Clear**: Clear the contents of the selected target variable. + • **Set**: Manually assign a value without requiring a source variable. 4. Target variable data type: `Array` • **Overwrite**: Directly overwrite the target variable with the source variable. + • **Clear**: Clear the contents of the selected target variable. + • **Append**: Add a new element to the array in the target variable. + • **Extend**: Add a new array to the target variable, effectively adding multiple elements at once. diff --git a/en/guides/workspace/README.mdx b/en/guides/workspace/README.mdx index afd62c6a..e845d1cc 100644 --- a/en/guides/workspace/README.mdx +++ b/en/guides/workspace/README.mdx @@ -3,7 +3,7 @@ title: Collaboration --- -Dify is a multi-user platform where workspaces are the basic units of team collaboration. Members of a workspace can create and edit applications and knowledge bases, and can also directly use public applications created by other team members in the Discover area. +Dify is a multi-user platform where workspaces are the basic units of team collaboration. Members of a workspace can create and edit applications and knowledge bases, and can also directly use public applications created by other team members in the [Discover](https://docs.dify.ai/guides/workspace/app) area. ### Login Methods diff --git a/en/learn-more/extended-reading/retrieval-augment/hybrid-search.mdx b/en/learn-more/extended-reading/retrieval-augment/hybrid-search.mdx index 6366cc46..7aad80ac 100644 --- a/en/learn-more/extended-reading/retrieval-augment/hybrid-search.mdx +++ b/en/learn-more/extended-reading/retrieval-augment/hybrid-search.mdx @@ -42,8 +42,6 @@ Different retrieval systems excel at finding various subtle relationships betwee Definition: Generating query embeddings and querying the text segments most similar to their vector representations. -![Vector Search Settings](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/extended-reading/retrieval-augment/d9f6c540579ffa7833c8e8fecab13470.png) - **TopK:** Used to filter the text fragments most similar to the user's query. The system will dynamically adjust the number of fragments based on the context window size of the selected model. The default value is 3. **Score Threshold:** Used to set the similarity threshold for filtering text fragments, i.e., only recalling text fragments that exceed the set score. The system's default is to turn off this setting, meaning it does not filter the similarity values of recalled text fragments. When enabled, the default value is 0.5. @@ -54,8 +52,6 @@ Definition: Generating query embeddings and querying the text segments most simi Definition: Indexing all words in the document, allowing users to query any word and return text fragments containing those words. -![Full-Text Search Settings](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/extended-reading/retrieval-augment/4ba9e7aed96e64da0e6475913041ed55.png) - **TopK:** Used to filter the text fragments most similar to the user's query. The system will dynamically adjust the number of fragments based on the context window size of the selected model. The default value is 3. **Rerank Model:** After configuring the Rerank model's API key on the "Model Providers" page, you can enable the "Rerank Model" in the retrieval settings. The system will perform semantic re-ranking on the recalled document results after full-text retrieval to optimize the ranking results. When the Rerank model is set, the TopK and Score Threshold settings only take effect in the Rerank step. @@ -86,4 +82,3 @@ Modify the retrieval mode of an existing dataset by entering the "Dataset -> Sel Modify the retrieval mode when creating an application by entering the "Prompt Arrangement -> Context -> Select Dataset -> Settings" page. -![Modifying Retrieval Mode in Prompt Arrangement](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/extended-reading/retrieval-augment/b07e4a2c1345ab676c6e0c107651d0f9.png) diff --git a/en/learn-more/faq/install-faq.mdx b/en/learn-more/faq/install-faq.mdx index e7ea3a04..474e7c65 100644 --- a/en/learn-more/faq/install-faq.mdx +++ b/en/learn-more/faq/install-faq.mdx @@ -64,7 +64,7 @@ This might be due to switching the domain/URL, causing cross-domain issues betwe `APP_API_URL:` Backend URL for the WebApp API. `APP_WEB_URL:` URL for the WebApp. -For more information, please refer to: [Environment Variables](../../getting-started/install-self-hosted/environments.md) +For more information, please refer to: [Environment Variables](../../getting-started/install-self-hosted/environments) ### 5. How to upgrade the version after deployment? diff --git a/en/learn-more/use-cases/how-to-connect-aws-bedrock.mdx b/en/learn-more/use-cases/how-to-connect-aws-bedrock.mdx index ef9b5e27..8bd2b69f 100644 --- a/en/learn-more/use-cases/how-to-connect-aws-bedrock.mdx +++ b/en/learn-more/use-cases/how-to-connect-aws-bedrock.mdx @@ -19,7 +19,7 @@ Visit [AWS Bedrock](https://aws.amazon.com/bedrock/) and create the Knowledge Ba ### 2. Build the Backend API Service -The Dify platform cannot directly connect to AWS Bedrock Knowledge Base. The developer needs to refer to Dify's [API definition](../../guides/knowledge-base/external-knowledge-api-documentation.md) on external knowledge base connection, manually create the backend API service, and establish a connection with AWS Bedrock. Please refer to the specific architecture diagram: +The Dify platform cannot directly connect to AWS Bedrock Knowledge Base. The developer needs to refer to Dify's [API definition](../../guides/knowledge-base/external-knowledge-api-documentation) on external knowledge base connection, manually create the backend API service, and establish a connection with AWS Bedrock. Please refer to the specific architecture diagram: ![Build the backend API service](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/c57ce0a77ee668268f53e91497bd5c2b.png) diff --git a/en/link-check-report-error.md b/en/link-check-report-error.md index dc9c30cb..6f928f99 100644 --- a/en/link-check-report-error.md +++ b/en/link-check-report-error.md @@ -5,7 +5,7 @@ ## 来自 community/contribution.md -* [Become a Contributor](/community/contribution) ✅ | [code of conduct](https://github.com/langgenius/.github/blob/main/CODE\_OF\_CONDUCT.md) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/README.md) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md) ❌ +* [Become a Contributor](/community/contribution) ✅ | [code of conduct](https://github.com/langgenius/.github/blob/main/CODE\_OF\_CONDUCT) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/README) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README) ❌ ## 来自 development/models-integration/hugging-face.md @@ -17,7 +17,7 @@ ## 来自 development/models-integration/localai.md -* [Integrate Local Models Deployed by LocalAI](./development/models-integration/localai) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md) ❌ +* [Integrate Local Models Deployed by LocalAI](./development/models-integration/localai) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README) ❌ ## 来自 development/models-integration/ollama.md @@ -57,7 +57,7 @@ ## 来自 guides/model-configuration/customizable-model.md -* [Custom Model Integration](./guides/model-configuration/customizable-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/docs/en\_US/interfaces.md) ❌ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model\_providers/anthropic/llm/llm.py) ❌ +* [Custom Model Integration](./guides/model-configuration/customizable-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/docs/en\_US/interfaces) ❌ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model\_providers/anthropic/llm/llm.py) ❌ ## 来自 guides/model-configuration/new-provider.md diff --git a/en/link-check-report.md b/en/link-check-report.md index 2e291a79..acd10bfc 100644 --- a/en/link-check-report.md +++ b/en/link-check-report.md @@ -9,8 +9,8 @@ * [Welcome to Dify](./README) ✅ | [**Quick Start**](https://docs.dify.ai/application/creating-an-application) ✅ | [**self-deploy Dify** ](https://docs.dify.ai/getting-started/install-self-hosted) ✅ | [**integrate open source models**](https://docs.dify.ai/advanced/model-configuration) ✅ | [**specifications and roadmap**](https://docs.dify.ai/getting-started/readme/features-and-specifications) ✅ | [**Star us on GitHub**](https://github.com/langgenius/dify) ✅ * [Features and Specifications](./getting-started/readme/features-and-specifications) ✅ * [List of Model Providers](./getting-started/readme/model-providers) ✅ | [here](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [contribution.md](../../community/contribution.md "mention") ❌ -* [Dify Community](./getting-started/install-self-hosted/README) ✅ | [GitHub](https://github.com/langgenius/dify) ✅ | [Docker Compose Deployment](https://docs.dify.ai/getting-started/install-self-hosted/docker-compose) ✅ | [Local Source Code Start](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code) ✅ | [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) ✅ - * [Deploy with Docker Compose](./getting-started/install-self-hosted/docker-compose) ✅ | [Docker Desktop installation guide for Mac](https://docs.docker.com/desktop/mac/install/) ✅ | [Docker installation guide](https://docs.docker.com/engine/install/) ✅ | [the Docker Compose installation guide](https://docs.docker.com/compose/install/) ✅ | [Docker Desktop installation guide for using the WSL 2 backend on Windows.](https://docs.docker.com/desktop/windows/install/#wsl-2-backend) ✅ | [README.md](https://github.com/langgenius/dify/blob/main/docker/README.md) ✅ | [Docker documentation](https://docs.docker.com/compose/install/) ✅ | [FAQs](./faqs) ✅ +* [Dify Community](./getting-started/install-self-hosted/README) ✅ | [GitHub](https://github.com/langgenius/dify) ✅ | [Docker Compose Deployment](https://docs.dify.ai/getting-started/install-self-hosted/docker-compose) ✅ | [Local Source Code Start](https://docs.dify.ai/getting-started/install-self-hosted/local-source-code) ✅ | [Contribution Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) ✅ + * [Deploy with Docker Compose](./getting-started/install-self-hosted/docker-compose) ✅ | [Docker Desktop installation guide for Mac](https://docs.docker.com/desktop/mac/install/) ✅ | [Docker installation guide](https://docs.docker.com/engine/install/) ✅ | [the Docker Compose installation guide](https://docs.docker.com/compose/install/) ✅ | [Docker Desktop installation guide for using the WSL 2 backend on Windows.](https://docs.docker.com/desktop/windows/install/#wsl-2-backend) ✅ | [README.md](https://github.com/langgenius/dify/blob/main/docker/README) ✅ | [Docker documentation](https://docs.docker.com/compose/install/) ✅ | [FAQs](./faqs) ✅ * [Start with Local Source Code](./getting-started/install-self-hosted/local-source-code) ✅ | [Docker Desktop installation guide for Mac](https://docs.docker.com/desktop/mac/install/) ✅ | [Docker installation guide](https://docs.docker.com/engine/install/) ✅ | [the Docker Compose installation guide](https://docs.docker.com/compose/install/) ✅ | [Docker Desktop installation guide for using the WSL 2 backend on Windows.](https://docs.docker.com/desktop/windows/install/#wsl-2-backend) ✅ | [Link](https://docs.dify.ai/getting-started/install-self-hosted/install-faq#id-14.-what-to-do-if-this-error-occurs-in-text-to-speech) ✅ | [pyenv](https://github.com/pyenv/pyenv) ✅ | [Poetry](https://python-poetry.org/docs/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org/) ✅ | [NPM version 8.x.x](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ | [https://nodejs.org/en/download](https://nodejs.org/en/download) ✅ | [http://127.0.0.1:3000](http://127.0.0.1:3000/) ✅ * [Deploy with aaPanel](./getting-started/install-self-hosted/bt-panel) ✅ | [aaPanel installation guide](https://www.aapanel.com/new/download.html#install) ✅ * [Start Frontend Docker Container Separately](./getting-started/install-self-hosted/start-the-frontend-docker-container) ✅ | [http://127.0.0.1:3000](http://127.0.0.1:3000/) ✅ @@ -22,9 +22,9 @@ ## Guides * [Model](./guides/model-configuration/README) ✅ | [OpenAI](https://platform.openai.com/account/api-keys) ✅ | [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/openai-service/) ❌ | [Anthropic](https://console.anthropic.com/account/keys) ✅ | [iFLYTEK SPARK](https://www.xfyun.cn/solutions/xinghuoAPI) ✅ | [WENXINYIYAN](https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application) ✅ | [TONGYI](https://dashscope.console.aliyun.com/api-key\_management?spm=a2c4g.11186623.0.0.3bbc424dxZms9k) ✅ | [Minimax](https://api.minimax.chat/user-center/basic-information/interface-key) ✅ | [Ollama](https://docs.dify.ai/tutorials/model-configuration/ollama) ✅ | [LocalAI](https://github.com/mudler/LocalAI) ✅ | [GPUStack](https://github.com/gpustack/gpustack) ✅ | [Jina Embeddings](https://jina.ai/embeddings/) ✅ | [**Rerank Models**](https://docs.dify.ai/advanced/retrieval-augment/rerank) ✅ | [Jina Reranker](https://jina.ai/reranker) ✅ | [PKCS1\_OAEP](https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html) ✅ | [Hugging Face](../../development/models-integration/hugging-face) ✅ | [Replicate](../../development/models-integration/replicate) ✅ | [Xinference](../../development/models-integration/xinference) ✅ | [OpenLLM](../../development/models-integration/openllm) ✅ - * [Add New Provider](./guides/model-configuration/new-provider) ✅ | [Provider Schema](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [AI Model Entity](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md#aimodelentity) ✅ | [`model_credential_schema`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [YAML configuration information](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [AnthropicProvider](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/anthropic/anthropic.py) ❌ | [**Adding Predefined Models**](https://docs.dify.ai/v/zh-hans/guides/model-configuration/predefined-model) ✅ | [**Adding Custom Models**](https://docs.dify.ai/v/zh-hans/guides/model-configuration/customizable-model) ✅ - * [Predefined Model Integration](./guides/model-configuration/predefined-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces.md) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ - * [Custom Model Integration](./guides/model-configuration/customizable-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/docs/en\_US/interfaces.md) ❌ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model\_providers/anthropic/llm/llm.py) ❌ + * [Add New Provider](./guides/model-configuration/new-provider) ✅ | [Provider Schema](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [AI Model Entity](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md#aimodelentity) ✅ | [`model_credential_schema`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [YAML configuration information](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [AnthropicProvider](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/anthropic/anthropic.py) ❌ | [**Adding Predefined Models**](https://docs.dify.ai/v/zh-hans/guides/model-configuration/predefined-model) ✅ | [**Adding Custom Models**](https://docs.dify.ai/v/zh-hans/guides/model-configuration/customizable-model) ✅ + * [Predefined Model Integration](./guides/model-configuration/predefined-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ + * [Custom Model Integration](./guides/model-configuration/customizable-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/docs/en\_US/interfaces) ❌ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model\_providers/anthropic/llm/llm.py) ❌ * [Interfaces](./guides/model-configuration/interfaces) ✅ | [[PromptMessage](#PromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [SystemPromptMessage](#SystemPromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [AssistantPromptMessage](#AssistantPromptMessage) ✅ | [ToolPromptMessage](#ToolPromptMessage) ✅ | [[PromptMessageTool](#PromptMessageTool) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [TextEmbeddingResult](#TextEmbeddingResult) ✅ | [RerankResult](#RerankResult) ✅ * [Schema](./guides/model-configuration/schema) ✅ | [Provider](#Provider) ✅ | [AIModelEntity](#AIModelEntity) ✅ | [[ModelType](#ModelType) ✅ | [[ConfigurateMethod](#ConfigurateMethod) ✅ | [ProviderCredentialSchema](#ProviderCredentialSchema) ✅ | [ModelCredentialSchema](#ModelCredentialSchema) ✅ | [ModelType](#ModelType) ✅ | [[ModelFeature](#ModelFeature) ✅ | [LLMMode](#LLMMode) ✅ | [[ParameterRule](#ParameterRule) ✅ | [PriceConfig](#PriceConfig) ✅ | [[CredentialFormSchema](#CredentialFormSchema) ✅ | [[CredentialFormSchema](#CredentialFormSchema) ✅ | [FormType](#FormType) ✅ | [[FormOption](#FormOption) ✅ | [[FormShowOnObject](#FormShowOnObject) ✅ | [[FormShowOnObject](#FormShowOnObject) ✅ * [Load Balancing](./guides/model-configuration/load-balancing) ✅ | [subscribing to SaaS paid services](../../getting-started/cloud) ✅ @@ -89,7 +89,7 @@ * [Knowledge Request Rate Limit](./guides/knowledge-base/knowledge-request-rate-limit) ✅ * [Connect to an External Knowledge Base](./guides/knowledge-base/connect-external-knowledge) ✅ | [AWS Bedrock](https://aws.amazon.com/bedrock/) ✅ | [External Knowledge Base API](./external-knowledge-api-documentation) ✅ | [External Knowledge API](./external-knowledge-api-documentation) ✅ | [External Knowledge API](./external-knowledge-api-documentation) ✅ | [how-to-connect-aws-bedrock.md](../../learn-more/use-cases/how-to-connect-aws-bedrock.md "mention") ❌ * [External Knowledge API](./guides/knowledge-base/external-knowledge-api-documentation) ✅ | [Connecting to an External Knowledge Base](https://docs.dify.ai/guides/knowledge-base/connect-external-knowledge-base) ✅ -* [Tools](./guides/tools/README) ✅ | [documentation](https://docs.dify.ai/plugins/introduction) ✅ | [Dify Development Contribution Documentation](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) ✅ | [official documentation](https://swagger.io/specification/) ✅ | [dify-tools-worker](https://github.com/crazywoola/dify-tools-worker) ✅ +* [Tools](./guides/tools/README) ✅ | [documentation](https://docs.dify.ai/plugins/introduction) ✅ | [Dify Development Contribution Documentation](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) ✅ | [official documentation](https://swagger.io/specification/) ✅ | [dify-tools-worker](https://github.com/crazywoola/dify-tools-worker) ✅ * [Quick Tool Integration](./guides/tools/quick-tool-integration) ✅ | [Develop Plugins](https://docs.dify.ai/plugins/quick-start/develop-plugins) ✅ * [Advanced Tool Integration](./guides/tools/advanced-tool-integration) ✅ | [Develop Plugins](https://docs.dify.ai/plugins/quick-start/develop-plugins) ✅ | [Quick Integration](https://docs.dify.ai/tutorials/quick-tool-integration) ✅ * [Tool Configuration](./guides/tools/tool-configuration/README) ✅ | [Install and Use Plugins](https://docs.dify.ai/plugins/quick-start/install-plugins) ✅ | [StableDiffusion](./stable-diffusion) ✅ | [SearXNG](./searxng) ✅ @@ -136,7 +136,7 @@ * [Management](./guides/management/README) ✅ * [App Management](./guides/management/app-management) ✅ | [Tool](../workflow/node/tools) ✅ | [Upgrade Dify](https://docs.dify.ai/getting-started/install-self-hosted/docker-compose#upgrade-dify) ✅ * [Team Members Management](./guides/management/team-members-management) ✅ | [environment variables](https://docs.dify.ai/getting-started/install-self-hosted/environments) ✅ - * [Personal Account Management](./guides/management/personal-account-management) ✅ | [GitHub repository](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) ✅ + * [Personal Account Management](./guides/management/personal-account-management) ✅ | [GitHub repository](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) ✅ * [Subscription Management](./guides/management/subscription-management) ✅ | [Marked replies](https://docs.dify.ai/guides/biao-zhu/logs) ✅ | [Dify pricing](https://dify.ai/pricing) ✅ * [Version Control](./guides/management/version-control) ✅ @@ -152,7 +152,7 @@ ## Community * [Seek Support](./community/support) ✅ | [GitHub](https://github.com/langgenius/dify) ✅ | [Discord community](https://discord.gg/8Tpq4AcN9c) ✅ | [Reddit](https://www.reddit.com/r/difyai/) ✅ | [hello@dify.ai](mailto:hello@dify.ai) ✅ -* [Become a Contributor](./community/contribution) ✅ | [License and Contributor Agreement](https://github.com/langgenius/dify/blob/main/LICENSE) ✅ | [code of conduct](https://github.com/langgenius/.github/blob/main/CODE\_OF\_CONDUCT.md) ❌ | [Find](https://github.com/langgenius/dify/issues?q=is:issue+is:closed) ✅ | [open](https://github.com/langgenius/dify/issues/new/choose) ✅ | [@perzeusss](https://github.com/perzeuss) ✅ | [Feature Request Copilot](https://udify.app/chat/MK2kVSnw1gakVwMX) ✅ | [@yeuoly](https://github.com/Yeuoly) ✅ | [@jyong](https://github.com/JohnJyong) ✅ | [@GarfieldDai](https://github.com/GarfieldDai) ✅ | [@iamjoel](https://github.com/iamjoel) ✅ | [@zxhlyh](https://github.com/zxhlyh) ✅ | [@guchenhe](https://github.com/guchenhe) ✅ | [@crazywoola](https://github.com/crazywoola) ✅ | [@takatost](https://github.com/takatost) ✅ | [community feedback board](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [Docker](https://www.docker.com/) ✅ | [Docker Compose](https://docs.docker.com/compose/install/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org) ✅ | [npm](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ | [Python](https://www.python.org/) ✅ | [Backend README](https://github.com/langgenius/dify/blob/main/api/README.md) ✅ | [Frontend README](https://github.com/langgenius/dify/blob/main/web/README.md) ✅ | [installation FAQ](https://docs.dify.ai/learn-more/faq/install-faq) ✅ | [http://localhost:3000](http://localhost:3000) ✅ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/README.md) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md) ❌ | [Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) ✅ | [Flask](https://flask.palletsprojects.com/en/3.0.x/) ✅ | [SQLAlchemy](https://www.sqlalchemy.org/) ✅ | [Celery](https://docs.celeryq.dev/en/stable/getting-started/introduction.html) ✅ | [Next.js](https://nextjs.org/) ✅ | [Tailwind CSS](https://tailwindcss.com/) ✅ | [React-i18next](https://react.i18next.com/) ✅ | [GitHub's pull request tutorial](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests) ✅ | [README](https://github.com/langgenius/dify/blob/main/README.md) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ +* [Become a Contributor](./community/contribution) ✅ | [License and Contributor Agreement](https://github.com/langgenius/dify/blob/main/LICENSE) ✅ | [code of conduct](https://github.com/langgenius/.github/blob/main/CODE\_OF\_CONDUCT) ❌ | [Find](https://github.com/langgenius/dify/issues?q=is:issue+is:closed) ✅ | [open](https://github.com/langgenius/dify/issues/new/choose) ✅ | [@perzeusss](https://github.com/perzeuss) ✅ | [Feature Request Copilot](https://udify.app/chat/MK2kVSnw1gakVwMX) ✅ | [@yeuoly](https://github.com/Yeuoly) ✅ | [@jyong](https://github.com/JohnJyong) ✅ | [@GarfieldDai](https://github.com/GarfieldDai) ✅ | [@iamjoel](https://github.com/iamjoel) ✅ | [@zxhlyh](https://github.com/zxhlyh) ✅ | [@guchenhe](https://github.com/guchenhe) ✅ | [@crazywoola](https://github.com/crazywoola) ✅ | [@takatost](https://github.com/takatost) ✅ | [community feedback board](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [Docker](https://www.docker.com/) ✅ | [Docker Compose](https://docs.docker.com/compose/install/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org) ✅ | [npm](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ | [Python](https://www.python.org/) ✅ | [Backend README](https://github.com/langgenius/dify/blob/main/api/README) ✅ | [Frontend README](https://github.com/langgenius/dify/blob/main/web/README) ✅ | [installation FAQ](https://docs.dify.ai/learn-more/faq/install-faq) ✅ | [http://localhost:3000](http://localhost:3000) ✅ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/model\_runtime/README) ❌ | [this guide](https://github.com/langgenius/dify/blob/main/api/core/tools/README) ❌ | [Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) ✅ | [Flask](https://flask.palletsprojects.com/en/3.0.x/) ✅ | [SQLAlchemy](https://www.sqlalchemy.org/) ✅ | [Celery](https://docs.celeryq.dev/en/stable/getting-started/introduction.html) ✅ | [Next.js](https://nextjs.org/) ✅ | [Tailwind CSS](https://tailwindcss.com/) ✅ | [React-i18next](https://react.i18next.com/) ✅ | [GitHub's pull request tutorial](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests) ✅ | [README](https://github.com/langgenius/dify/blob/main/README) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ * [Contributing to Dify Documentation](./community/docs-contribution) ✅ | [open-source project](https://github.com/langgenius/dify-docs) ✅ | [Issues page](https://github.com/langgenius/dify-docs/issues) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ ## Plugins @@ -207,7 +207,7 @@ * [Integrate Open Source Models from Replicate](./development/models-integration/replicate) ✅ | [Language models](https://replicate.com/collections/language-models) ✅ | [Embedding models](https://replicate.com/collections/embedding-models) ✅ | [registered address](https://replicate.com/signin?next=/docs) ✅ | [get address](https://replicate.com/signin?next=/docs) ✅ | [Language models](https://replicate.com/collections/language-models) ✅ | [Embedding models](https://replicate.com/collections/embedding-models) ✅ * [Integrate Local Models Deployed by Xinference](./development/models-integration/xinference) ✅ | [Xorbits inference](https://github.com/xorbitsai/inference) ✅ | [local deployment](https://github.com/xorbitsai/inference/blob/main/README.md#local) ✅ | [distributed deployment](https://github.com/xorbitsai/inference/blob/main/README.md#distributed) ✅ | [Xinference built-in models](https://inference.readthedocs.io/en/latest/models/builtin/index.html) ✅ | [Xinference builtin models](https://github.com/xorbitsai/inference/blob/main/README.md#builtin-models) ✅ | [Xorbits Inference](https://github.com/xorbitsai/inference) ✅ * [Integrate Local Models Deployed by OpenLLM](./development/models-integration/openllm) ✅ | [OpenLLM](https://github.com/bentoml/OpenLLM) ✅ | [Supported Model List](https://github.com/bentoml/OpenLLM#-supported-models) ✅ | [OpenLLM](https://github.com/bentoml/OpenLLM) ✅ - * [Integrate Local Models Deployed by LocalAI](./development/models-integration/localai) ✅ | [LocalAI](https://github.com/go-skynet/LocalAI) ✅ | [Getting Started](https://localai.io/basics/getting_started/) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md) ❌ + * [Integrate Local Models Deployed by LocalAI](./development/models-integration/localai) ✅ | [LocalAI](https://github.com/go-skynet/LocalAI) ✅ | [Getting Started](https://localai.io/basics/getting_started/) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README) ❌ * [Integrate Local Models Deployed by Ollama](./development/models-integration/ollama) ✅ | [ollama](<../../.gitbook/assets/ollama (1) ❌ | [Ollama](https://github.com/jmorganca/ollama) ✅ | [https://ollama.com/download](https://ollama.com/download) ✅ | [Ollama Models](https://ollama.com/library) ✅ | [FAQ](#faq) ✅ * [Integrate Models on LiteLLM Proxy](./development/models-integration/litellm) ✅ | [LiteLLM Proxy](https://github.com/BerriAI/litellm) ✅ | [Detailed docs on how to setup litellm config - here](https://docs.litellm.ai/docs/proxy/configs) ✅ | [LiteLLM](https://github.com/BerriAI/litellm) ✅ | [LiteLLM Proxy Server](https://docs.litellm.ai/docs/simple\_proxy) ❌ * [Integrating with GPUStack for Local Model Deployment](./development/models-integration/gpustack) ✅ | [GPUStack](https://github.com/gpustack/gpustack) ✅ | [Documentation](https://docs.gpustack.ai) ✅ | [Github Repo](https://github.com/gpustack/gpustack) ✅ diff --git a/en/plugins/best-practice/README.mdx b/en/plugins/best-practice/README.mdx index e2299b17..3eacfaa8 100644 --- a/en/plugins/best-practice/README.mdx +++ b/en/plugins/best-practice/README.mdx @@ -5,7 +5,7 @@ title: Best Practice For more comprehensive best practices on developing plugins with advanced functionality, please refer to the extended plugin development guidelines. - - develop-a-slack-bot-plugin.md + + Gain a solid understanding of how to build a Slack Bot that’s powered by AI—one that can respond to user questions right inside Slack. diff --git a/en/plugins/best-practice/develop-a-slack-bot-plugin.mdx b/en/plugins/best-practice/develop-a-slack-bot-plugin.mdx index cb4f3548..503da49d 100644 --- a/en/plugins/best-practice/develop-a-slack-bot-plugin.mdx +++ b/en/plugins/best-practice/develop-a-slack-bot-plugin.mdx @@ -36,7 +36,7 @@ Slack is an open, real-time communication platform with a robust API. Among its ### Prerequisites -- **Dify plugin developing tool**: For more information, see [Initializing the Development Tool](../tool-initialization.mdx). +- **Dify plugin developing tool**: For more information, see [Initializing the Development Tool](/en/plugins/quick-start/develop-plugins/initialize-development-tools). - **Python environment (version ≥ 3.12)**: Refer to this [Python Installation Tutorial](https://pythontest.com/python/installing-python-3-11/) or ask an LLM for a complete setup guide. - Create a Slack App and Get an OAuth Token @@ -70,7 +70,7 @@ dify plugin init Follow the prompts to provide basic project info. Select the `extension` template, and grant both `Apps` and `Endpoints` permissions. -For additional details on reverse-invoking Dify services within a plugin, see [Reverse Invocation: App](../../../api-documentation/fan-xiang-diao-yong-dify-fu-wu/app.md). +For additional details on reverse-invoking Dify services within a plugin, see [Reverse Invocation: App](../../../api-documentation/fan-xiang-diao-yong-dify-fu-wu/app). ![Plugins permission](https://assets-docs.dify.ai/2024/12/d89a6282c5584fc43a9cadeddf09c0de.png) @@ -320,15 +320,14 @@ For a complete Dify plugin project example, visit the [GitHub repository](https: If you want to explore more about plugin development, check the following: **Quick Starts:** -- [Develop an Extension Plugin](../extension.md) +- [Develop an Extension Plugin](../extension) - [Develop a Model Plugin](../model/) -- [Bundle Plugins: Packaging Multiple Plugins](../bundle.md) +- [Bundle Plugins: Packaging Multiple Plugins](../bundle) **Plugin Interface Docs:** -- [Manifest](../../../api-documentation/manifest.md) structure -- [Endpoint](../../../api-documentation/endpoint.md) definitions +- [Manifest](../../../api-documentation/manifest) structure +- [Endpoint](../../../api-documentation/endpoint) definitions - [Reverse-Calling Dify Services](../../../api-documentation/fan-xiang-diao-yong-dify-fu-wu/) -- [Tools](../../../api-documentation/tool.md) +- [Tools](../../../api-documentation/tool) - [Models](../../../api-documentation/model/) -``` diff --git a/en/plugins/best-practice/how-to-use-mcp-zapier.mdx b/en/plugins/best-practice/how-to-use-mcp-zapier.mdx index 376e8251..caea75ee 100644 --- a/en/plugins/best-practice/how-to-use-mcp-zapier.mdx +++ b/en/plugins/best-practice/how-to-use-mcp-zapier.mdx @@ -1,5 +1,5 @@ --- -title: Dify MCP Plugin Guide | One-Click Connection to Zapier and Automated Email Sending +title: One-Click Connection to Zapier and Automated Email Sending --- **This article will help you:** diff --git a/en/plugins/faq.mdx b/en/plugins/faq.mdx index 762ab10d..d61e1c5c 100644 --- a/en/plugins/faq.mdx +++ b/en/plugins/faq.mdx @@ -26,3 +26,6 @@ docker compose up -d Once this field is added, the Dify platform will allow the installation of all plugins that are not listed (and thus not verified) in the Dify Marketplace. **Note**: For security reasons, always install plugins from unknown sources in a test or sandbox environment first. Confirm their safety before deploying to the production environment. + +If you want to more strictly control which plugins are allowed to be installed, refer to [Signing Plugins for Third-Party Signature Verification](./publish-plugins/signing-plugins-for-third-party-signature-verification). + diff --git a/en/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx b/en/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx index bbe39220..da456c2a 100644 --- a/en/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx +++ b/en/plugins/publish-plugins/publish-to-dify-marketplace/README.mdx @@ -10,8 +10,8 @@ Follow these steps to submit your plugin as a Pull Request (PR) in the [GitHub r To publish your plugin on the Dify Marketplace, follow these steps: -1. Develop and test your plugin according to the [Plugin Developer Guidelines](plugin-developer-guidelines.md). -2. Write a [Plugin Privacy Policy](plugin-privacy-protection-guidelines.md) for your plugin in line with Dify’s privacy policy requirements. In your plugin’s [Manifest](../../schema-definition/manifest.md) file, include the file path or URL for this privacy policy. +1. Develop and test your plugin according to the [Plugin Developer Guidelines](plugin-developer-guidelines). +2. Write a [Plugin Privacy Policy](plugin-privacy-protection-guidelines) for your plugin in line with Dify’s privacy policy requirements. In your plugin’s [Manifest](../../schema-definition/manifest) file, include the file path or URL for this privacy policy. 3. Package your plugin for distribution. 4. Fork the [Dify Plugins](https://github.com/langgenius/dify-plugins) repository on GitHub. 5. Create an organization directory under the repository’s main structure, then create a subdirectory named after your plugin. Place your plugin’s source code and the packaged `.pkg` file in that subdirectory. @@ -25,7 +25,7 @@ Here is the general plugin review process: **Note**: -The Contributor Agreement mentioned above refers to [Plugin Developer Guidelines](plugin-developer-guidelines.md). +The Contributor Agreement mentioned above refers to [Plugin Developer Guidelines](plugin-developer-guidelines). *** @@ -68,7 +68,7 @@ Respond proactively to reviewer questions and feedback. **3. Plugin Functionality and Relevance** -* Test plugins according to [Plugin Development Guidelines](plugin-developer-guidelines.md). +* Test plugins according to [Plugin Development Guidelines](plugin-developer-guidelines). * Ensure the plugin's purpose is reasonable within the Dify ecosystem. [Dify.AI](https://dify.ai/) reserves the right to accept or reject plugin submissions. diff --git a/en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx b/en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx index 88611251..ddb0dff3 100644 --- a/en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx +++ b/en/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx @@ -12,7 +12,7 @@ title: Plugin Developer Guidelines * Setup and usage instructions * Required codes, APIs, credentials, or other information needed to connect the plugin to services * Ensure collected user information is only used for service connectivity and plugin improvements. -* Prepare the plugin's privacy policy file or URL according to the [Plugin Privacy Protection Guidelines](plugin-developer-guidelines.md). +* Prepare the plugin's privacy policy file or URL according to the [Plugin Privacy Protection Guidelines](plugin-developer-guidelines). 2. **Validate Plugin Value Proposition** diff --git a/en/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx b/en/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx index 252214fe..7eec8007 100644 --- a/en/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx +++ b/en/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx @@ -11,7 +11,7 @@ Below, you'll see how to develop a plugin that supports **Function Calling** to - Dify plugin scaffolding tool - Python environment (version ≥ 3.12) -For details on preparing the plugin development tool, see [Initializing the Development Tool](initialize-development-tools.md). +For details on preparing the plugin development tool, see [Initializing the Development Tool](initialize-development-tools). **Tip**: Run `dify version` in your terminal to confirm that the scaffolding tool is installed. @@ -252,9 +252,7 @@ features: After modifying the plugin configuration and restarting, you will see the **Memory** toggle. Click the toggle button on the right to enable memory. -

- Memory -

+![](https://assets-docs.dify.ai/2025/04/4dc804a2f93a030d3a94ef1465b2e359.png) Once enabled, you can adjust the memory window size using the slider, which determines how many previous conversation turns the model can “remember”. @@ -1134,9 +1132,9 @@ class BasicAgentAgentStrategy(AgentStrategy): ### 3. Debugging the Plugin -After finalizing the plugin's declaration file and implementation code, run `python -m main` in the plugin directory to restart it. Next, confirm the plugin runs correctly. Dify offers remote debugging—go to ["Plugin Management"](https://console-plugin.dify.dev/plugins) to obtain your debug key and remote server address. +After finalizing the plugin's declaration file and implementation code, run `python -m main` in the plugin directory to restart it. Next, confirm the plugin runs correctly. Dify offers remote debugging—go to ["Plugin Management"](https://cloud.dify.ai/plugins) to obtain your debug key and remote server address. -
+![](https://assets-docs.dify.ai/2024/12/053415ef127f1f4d6dd85dd3ae79626a.png) Back in your plugin project, copy `.env.example` to `.env` and insert the relevant remote server and debug key info. @@ -1147,7 +1145,6 @@ REMOTE_INSTALL_PORT=5003 REMOTE_INSTALL_KEY=****-****-****-****-**** ``` - Then run: ```bash @@ -1156,8 +1153,6 @@ python -m main You'll see the plugin installed in your Workspace, and team members can also access it. -

Browser Plugins

- ### Packaging the Plugin (Optional) Once everything works, you can package your plugin by running: @@ -1181,3 +1176,5 @@ You can now upload it to the [Dify Plugins repository](https://github.com/langge ### Further Exploration Complex tasks often need multiple rounds of thinking and tool calls, typically repeating **model invoke → tool use** until the task ends or a maximum iteration limit is reached. Managing prompts effectively is crucial in this process. Check out the [complete Function Calling implementation](https://github.com/langgenius/dify-official-plugins/blob/main/agent-strategies/cot_agent/strategies/function_calling.py) for a standardized approach to letting models call external tools and handle their outputs. + +testing diff --git a/en/plugins/quick-start/develop-plugins/bundle.mdx b/en/plugins/quick-start/develop-plugins/bundle.mdx index 637a5f0f..6ed8b759 100644 --- a/en/plugins/quick-start/develop-plugins/bundle.mdx +++ b/en/plugins/quick-start/develop-plugins/bundle.mdx @@ -16,7 +16,7 @@ You can package multiple plugins into a Bundle using the Dify CLI tool. Bundle p * Dify plugin scaffolding tool * Python environment, version ≥ 3.11; -For detailed instructions on preparing the plugin development scaffolding tool, please refer to [Initializing Development Tools](initialize-development-tools.md). +For detailed instructions on preparing the plugin development scaffolding tool, please refer to [Initializing Development Tools](initialize-development-tools). ### **Create Bundle Project** diff --git a/en/plugins/quick-start/develop-plugins/extension-plugin.mdx b/en/plugins/quick-start/develop-plugins/extension-plugin.mdx index b837ad84..e4a83720 100644 --- a/en/plugins/quick-start/develop-plugins/extension-plugin.mdx +++ b/en/plugins/quick-start/develop-plugins/extension-plugin.mdx @@ -109,7 +109,7 @@ Plugin functionality: Request the plugin service to output a cat. Write the plugin's implementation code in the `endpoints/test_plugin.py` file, referring to the following example code: -```python +```python [expandable] from typing import Mapping from werkzeug import Request, Response from flask import Flask, render_template_string diff --git a/en/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx b/en/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx index ec747796..2285ce3a 100644 --- a/en/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx +++ b/en/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx @@ -2,7 +2,6 @@ title: Integrate the Customizable Model --- - A **custom model** refers to an LLM that you deploy or configure on your own. This document uses the [Xinference model](https://inference.readthedocs.io/en/latest/) as an example to demonstrate how to integrate a custom model into your **model plugin**. By default, a custom model automatically includes two parameters—its **model type** and **model name**—and does not require additional definitions in the provider YAML file. @@ -322,7 +321,7 @@ After finishing development, test the plugin to ensure it runs correctly. For mo If you’d like to list this plugin on the Dify Marketplace, see: - + publish-to-dify-marketplace diff --git a/en/plugins/quick-start/install-plugins.mdx b/en/plugins/quick-start/install-plugins.mdx index a64235d2..222cb077 100644 --- a/en/plugins/quick-start/install-plugins.mdx +++ b/en/plugins/quick-start/install-plugins.mdx @@ -25,9 +25,7 @@ Install plugins directly using GitHub repository links. This method requires plu Local files refer to file packages with the `.difypkg` extension, commonly used in offline environments or testing environments. Developers can use this method to install plugin files outside the official marketplace. For organizations, this allows developing and maintaining internal plugins and installing them through local upload to avoid exposing sensitive information. -#### Authorizing Plugins - -For detailed instructions on packaging plugins and obtaining .difypkg files, please refer to: [Package Plugins](../publish-plugins/package-plugin-file-and-publish.mdx) +For detailed instructions on packaging plugins and obtaining `.difypkg` files, please refer to: [Package Plugins](../publish-plugins/package-plugin-file-and-publish) *** diff --git a/en/plugins/schema-definition/agent.mdx b/en/plugins/schema-definition/agent.mdx index 61a6b990..d2c710bb 100644 --- a/en/plugins/schema-definition/agent.mdx +++ b/en/plugins/schema-definition/agent.mdx @@ -21,7 +21,7 @@ plugins: - "provider/agent.yaml" ``` -Some unrelated fields in the manifest file are omitted. For detailed Manifest format, refer to [Manifest](manifest.md). +Some unrelated fields in the manifest file are omitted. For detailed Manifest format, refer to [Manifest](manifest). ### **Defining the Agent Provider** @@ -90,7 +90,7 @@ extra: source: strategies/function_calling.py ``` -The code format is similar to the [Tool](tool.md) standard format and defines four parameters: `model`, `tools`, `query`, and `max_iterations` to implement the most basic Agent strategy. This means that users can: +The code format is similar to the [Tool](tool) standard format and defines four parameters: `model`, `tools`, `query`, and `max_iterations` to implement the most basic Agent strategy. This means that users can: * Select which model to use * Choose which tools to utilize diff --git a/en/plugins/schema-definition/endpoint.mdx b/en/plugins/schema-definition/endpoint.mdx index 929e5ca7..cd54facf 100644 --- a/en/plugins/schema-definition/endpoint.mdx +++ b/en/plugins/schema-definition/endpoint.mdx @@ -3,7 +3,7 @@ title: Endpoint --- -In this article, we will use the [Quick Start: Rainbow Cat project](../develop-plugins/extension-plugin.md) as an example to illustrate the structure of Endpoint within the plugin. For the complete plugin code, please refer to the [Github repository](https://github.com/langgenius/dify-plugin-sdks/tree/main/python/examples/neko). +In this article, we will use the [Quick Start: Rainbow Cat project](../quick-start/develop-plugins/extension-plugin) as an example to illustrate the structure of Endpoint within the plugin. For the complete plugin code, please refer to the [Github repository](https://github.com/langgenius/dify-plugin-sdks/tree/main/python/examples/neko). ### **Group Definition** diff --git a/en/plugins/schema-definition/manifest.mdx b/en/plugins/schema-definition/manifest.mdx index ebe05440..a0742fcc 100644 --- a/en/plugins/schema-definition/manifest.mdx +++ b/en/plugins/schema-definition/manifest.mdx @@ -86,9 +86,9 @@ The version of the plugin is managed by the `version` field in manifest file. Th * `size` (int64): Maximum allowed persistent memory size in bytes * `plugins` (object, required): List of YAML files defining specific plugin capabilities, absolute paths within plugin package * Format - * `tools` (list\[string]): Extended [tool](tool.md) providers + * `tools` (list\[string]): Extended [tool](tool) providers * `models` (list\[string]): Extended [model](model/) providers - * `endpoints` (list\[string]): Extended [Endpoints](endpoint.md) providers + * `endpoints` (list\[string]): Extended [Endpoints](endpoint) providers * `agent_strategies` (list\[string]): Extended Agent strategy providers * Limitations * Cannot extend both tools and models simultaneously diff --git a/en/plugins/schema-definition/persistent-storage.mdx b/en/plugins/schema-definition/persistent-storage.mdx index 982dc4c5..aef541c7 100644 --- a/en/plugins/schema-definition/persistent-storage.mdx +++ b/en/plugins/schema-definition/persistent-storage.mdx @@ -54,4 +54,3 @@ You can notice that a bytes is passed in, so you can actually store files in it. pass ``` -\ diff --git a/en/plugins/schema-definition/tool.mdx b/en/plugins/schema-definition/tool.mdx index b560d10d..6fb7ba1e 100644 --- a/en/plugins/schema-definition/tool.mdx +++ b/en/plugins/schema-definition/tool.mdx @@ -3,7 +3,7 @@ title: Tool --- -Before reading the detailed interface documentation, make sure you have read [Quick start: Tools](../develop-plugins/tool-plugin.md) and have a general understanding of the Dify plugin's tool access process. +Before reading the detailed interface documentation, make sure you have read [Quick start: Tools](../quick-start/develop-plugins/tool-plugin) and have a general understanding of the Dify plugin's tool access process. ### **Data Structures** diff --git a/en/policies/agreement/privacy.mdx b/en/policies/agreement/privacy.mdx new file mode 100644 index 00000000..19b443a5 --- /dev/null +++ b/en/policies/agreement/privacy.mdx @@ -0,0 +1,6 @@ +--- +title: "Privacy Policy" +url: "https://dify.ai/privacy" +--- + +Please refer to the [Privacy Policy](https://dify.ai/privacy) for more information. diff --git a/en/policies/agreement/tos.mdx b/en/policies/agreement/tos.mdx new file mode 100644 index 00000000..7c70cd1c --- /dev/null +++ b/en/policies/agreement/tos.mdx @@ -0,0 +1,6 @@ +--- +title: "Terms of Service" +url: "https://dify.ai/terms" +--- + +Please refer to the [Terms of Service](https://dify.ai/terms) for more information. diff --git a/ja-jp/community/contribution.mdx b/ja-jp/community/contribution.mdx index 577b988b..ebf965aa 100644 --- a/ja-jp/community/contribution.mdx +++ b/ja-jp/community/contribution.mdx @@ -9,7 +9,7 @@ Difyに貢献したいと思っていることには素晴らしいと思いま このガイドは、Dify自体と同様に、常に改善されています。時折プロジェクトの実態よりも遅れることがあるかもしれませんが、ご理解と改善のためのフィードバックを心から歓迎します。 -ライセンスに関しては、時間を取って短い[ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE)を読んでください。また、コミュニティは[行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md)にも従います。 +ライセンスに関しては、時間を取って短い[ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE)を読んでください。また、コミュニティは[行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT)にも従います。 ## 始める前に @@ -100,7 +100,7 @@ Difyは以下のツールとライブラリに依存しています: ### 4. インストール -Difyはバックエンドとフロントエンドで構成されています。`cd api/`を使ってバックエンドディレクトリに移動し、次は[バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README.md)に従ってインストールして下さい。別のターミナルで`cd web/`を使ってフロントエンドディレクトリに移動し、そして[フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README.md)に従ってインストールして下さい。 +Difyはバックエンドとフロントエンドで構成されています。`cd api/`を使ってバックエンドディレクトリに移動し、次は[バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README)に従ってインストールして下さい。別のターミナルで`cd web/`を使ってフロントエンドディレクトリに移動し、そして[フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README)に従ってインストールして下さい。 一般的な問題とトラブルシューティングの手順については[インストールFAQ](/ja-jp/learn-more/faq/install-faq)を参照してください。 @@ -110,9 +110,9 @@ Difyはバックエンドとフロントエンドで構成されています。` ## 開発 -モデルを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README.md)を参照してください。 +モデルを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README)を参照してください。 -エージェントやワークフローにツールを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md)を参照してください。 +エージェントやワークフローにツールを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README)を参照してください。 > 注意点:新しいツールを提供したい場合は、必ずツールの YAML 説明ページに連絡先を残し、ドキュメント[Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) のコードリポジトリに対応するPRを提出してください。 @@ -174,7 +174,7 @@ DifyのバックエンドはPythonで書かれており、[Flask](https://flask. 最後に、私たちのリポジトリにプルリクエスト(PR)を提出する時が来ました。重要な機能の場合、最初に `deploy/dev` ブランチにマージしてテストを行い、その後 `main` ブランチにマージします。マージコンフリクトが発生した場合や、プルリクエストの提出方法が分からない場合は、[GitHubのプルリクエストチュートリアル](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests)を参照してください。 -これで完了です!あなたのPRがマージされると、あなたは私たちの[README](https://github.com/langgenius/dify/blob/main/README_JA.md)に貢献者として掲載されます。 +これで完了です!あなたのPRがマージされると、あなたは私たちの[README](https://github.com/langgenius/dify/blob/main/README_JA)に貢献者として掲載されます。 ## ヘルプを求める diff --git a/ja-jp/community/contribution.mdx.bak b/ja-jp/community/contribution.mdx.bak index fc8fb6de..47c080e6 100644 --- a/ja-jp/community/contribution.mdx.bak +++ b/ja-jp/community/contribution.mdx.bak @@ -9,7 +9,7 @@ Difyに貢献したいと思っていることには素晴らしいと思いま このガイドは、Dify自体と同様に、常に改善されています。時折プロジェクトの実態よりも遅れることがあるかもしれませんが、ご理解と改善のためのフィードバックを心から歓迎します。 -ライセンスに関しては、時間を取って短い[ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE)を読んでください。また、コミュニティは[行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md)にも従います。 +ライセンスに関しては、時間を取って短い[ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE)を読んでください。また、コミュニティは[行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT)にも従います。 ## 始める前に @@ -100,7 +100,7 @@ Difyは以下のツールとライブラリに依存しています: ### 4. インストール -Difyはバックエンドとフロントエンドで構成されています。`cd api/`を使ってバックエンドディレクトリに移動し、次は[バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README.md)に従ってインストールして下さい。別のターミナルで`cd web/`を使ってフロントエンドディレクトリに移動し、そして[フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README.md)に従ってインストールして下さい。 +Difyはバックエンドとフロントエンドで構成されています。`cd api/`を使ってバックエンドディレクトリに移動し、次は[バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README)に従ってインストールして下さい。別のターミナルで`cd web/`を使ってフロントエンドディレクトリに移動し、そして[フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README)に従ってインストールして下さい。 一般的な問題とトラブルシューティングの手順については[インストールFAQ](https://docs.dify.ai/v/ja-jp/learn-more/faq/install-faq)を参照してください。 @@ -110,9 +110,9 @@ Difyはバックエンドとフロントエンドで構成されています。` ## 開発 -モデルを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README.md)を参照してください。 +モデルを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README)を参照してください。 -エージェントやワークフローにツールを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md)を参照してください。 +エージェントやワークフローにツールを追加提供する場合は、[このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README)を参照してください。 > 注意点:新しいツールを提供したい場合は、必ずツールの YAML 説明ページに連絡先を残し、ドキュメント[Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) のコードリポジトリに対応するPRを提出してください。 @@ -174,7 +174,7 @@ DifyのバックエンドはPythonで書かれており、[Flask](https://flask. 最後に、私たちのリポジトリにプルリクエスト(PR)を提出する時が来ました。重要な機能の場合、最初に `deploy/dev` ブランチにマージしてテストを行い、その後 `main` ブランチにマージします。マージコンフリクトが発生した場合や、プルリクエストの提出方法が分からない場合は、[GitHubのプルリクエストチュートリアル](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests)を参照してください。 -これで完了です!あなたのPRがマージされると、あなたは私たちの[README](https://github.com/langgenius/dify/blob/main/README_JA.md)に貢献者として掲載されます。 +これで完了です!あなたのPRがマージされると、あなたは私たちの[README](https://github.com/langgenius/dify/blob/main/README_JA)に貢献者として掲載されます。 ## ヘルプを求める diff --git a/ja-jp/development/backend/sandbox/README.mdx b/ja-jp/development/backend/sandbox/README.mdx index 9eeb4550..a746325e 100644 --- a/ja-jp/development/backend/sandbox/README.mdx +++ b/ja-jp/development/backend/sandbox/README.mdx @@ -69,7 +69,7 @@ DifySandboxには以下のPython依存関係があらかじめ設定されてい 追加のPython依存関係が必要な場合は、以下の手順に従ってください: 1. プロジェクトのルートディレクトリにある`dependencies/python-requirements.txt`ファイルを見つけます。 -2. 必要なパッケージ名とバージョンをファイルに追加します。権限変更が必要な場合は、[FAQ](https://github.com/langgenius/dify-sandbox/blob/main/FAQ.md)を参照してください。 +2. 必要なパッケージ名とバージョンをファイルに追加します。権限変更が必要な場合は、[FAQ](https://github.com/langgenius/dify-sandbox/blob/main/FAQ)を参照してください。 3. DifySandboxを再構築します。 diff --git a/ja-jp/development/backend/sandbox/README.mdx.bak b/ja-jp/development/backend/sandbox/README.mdx.bak index 3a9fd162..91090391 100644 --- a/ja-jp/development/backend/sandbox/README.mdx.bak +++ b/ja-jp/development/backend/sandbox/README.mdx.bak @@ -16,4 +16,4 @@ title: DifySandbox プロジェクトのソースコードの入手や、導入・使用方法に関する詳細な情報については、[DifySandbox](https://github.com/langgenius/dify-sandbox)リポジトリをご覧ください。 ### 貢献 -`DifySandbox`の開発に参加する方法については、[貢献ガイド](contribution.md)をご参照ください。 +`DifySandbox`の開発に参加する方法については、[貢献ガイド](contribution)をご参照ください。 diff --git a/ja-jp/development/models-integration/localai.mdx b/ja-jp/development/models-integration/localai.mdx index 5889558b..c120b9f1 100644 --- a/ja-jp/development/models-integration/localai.mdx +++ b/ja-jp/development/models-integration/localai.mdx @@ -15,7 +15,7 @@ title: LocalAIでデプロイしたローカルモデルを統合 公式の[入門ガイド](https://localai.io/basics/getting_started/)を参考にデプロイを行うか、以下の手順で迅速に接続を行うことができます: -(以下の手順は[LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md)から引用しています) +(以下の手順は[LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README)から引用しています) 1. まず、LocalAIのコードリポジトリをクローンし、指定のディレクトリに移動します diff --git a/ja-jp/development/models-integration/ollama.mdx b/ja-jp/development/models-integration/ollama.mdx index 1ad6e5bd..18909cf5 100644 --- a/ja-jp/development/models-integration/ollama.mdx +++ b/ja-jp/development/models-integration/ollama.mdx @@ -132,4 +132,4 @@ Ollamaはデフォルトで127.0.0.1のポート11434にバインドされてい Ollamaの詳細については、以下を参照してください。 * [Ollama](https://github.com/jmorganca/ollama) -* [Ollama FAQ](https://github.com/ollama/ollama/blob/main/docs/faq.md) \ No newline at end of file +* [Ollama FAQ](https://github.com/ollama/ollama/blob/main/docs/faq) \ No newline at end of file diff --git a/ja-jp/development/models-integration/xinference.mdx b/ja-jp/development/models-integration/xinference.mdx index 02ff69c3..50092a6f 100644 --- a/ja-jp/development/models-integration/xinference.mdx +++ b/ja-jp/development/models-integration/xinference.mdx @@ -54,4 +54,4 @@ alt="" Difyはまた、[Xinference埋め込みモデル](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E5%86%85%E7%BD%AE%E6%A8%A1%E5%9E%8B)をEmbeddingモデルとして使用することもサポートしています。設定ボックスで`Embeddings`タイプを選択するだけで使用可能です。 -Xinferenceの詳細については、[Xorbits推論](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md)を参照してください。 +Xinferenceの詳細については、[Xorbits推論](https://github.com/xorbitsai/inference/blob/main/README_zh_CN)を参照してください。 diff --git a/ja-jp/getting-started/cloud.mdx b/ja-jp/getting-started/cloud.mdx index 7c458c63..d674d606 100644 --- a/ja-jp/getting-started/cloud.mdx +++ b/ja-jp/getting-started/cloud.mdx @@ -12,7 +12,7 @@ Difyは誰でも[手軽にご利用いただける](https://cloud.dify.ai/apps) 1. [Difyクラウド](https://cloud.dify.ai)にサインアップし、新しいワークスペースを作成するか、既存のワークスペースに参加します。 2. モデルプロバイダーを設定するか、Dify提供のモデルプロバイダーを使えます。 -3. 以上で、[アプリケーションを作成](../guides/application-orchestrate/creating-an-application.md)できます! +3. 以上で、[アプリケーションを作成](../guides/application-orchestrate/creating-an-application)できます! ### よくある質問 diff --git a/ja-jp/getting-started/cloud.mdx.bak b/ja-jp/getting-started/cloud.mdx.bak index 75949c38..3d4c0226 100644 --- a/ja-jp/getting-started/cloud.mdx.bak +++ b/ja-jp/getting-started/cloud.mdx.bak @@ -11,7 +11,7 @@ Difyはすべてのユーザーに[クラウドサービス](http://cloud.dify.a 1. [Difyクラウドサービス](https://cloud.dify.ai)にログインし、新しいワークスペースを作成するか、既存のワークスペースに参加します。 2. モデルプロバイダーを設定するか、提供されているホスト型モデルプロバイダーを使用します。 -3. [アプリケーションを作成](../guides/application-orchestrate/creating-an-application.md)しましょう! +3. [アプリケーションを作成](../guides/application-orchestrate/creating-an-application)しましょう! ### サブスクリプションプラン diff --git a/ja-jp/getting-started/install-self-hosted/README.mdx b/ja-jp/getting-started/install-self-hosted/README.mdx index ac831577..f05ae4e2 100644 --- a/ja-jp/getting-started/install-self-hosted/README.mdx +++ b/ja-jp/getting-started/install-self-hosted/README.mdx @@ -14,4 +14,4 @@ GitHub で [Dify コミュニティ版](https://github.com/langgenius/dify) を 正確な審査を確保するため、直接変更をコミットする権限を持つ寄稿者を含むすべてのコードの寄稿は、PR(プルリクエスト)を提出し、マージされる前にコア開発者の承認を得る必要があります。 -私たちはすべての人のPRを歓迎します!ご協力いただける場合は、[寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA.md) でプロジェクトに貢献する方法についての詳細を確認できます。 +私たちはすべての人のPRを歓迎します!ご協力いただける場合は、[寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA) でプロジェクトに貢献する方法についての詳細を確認できます。 diff --git a/ja-jp/getting-started/install-self-hosted/README.mdx.bak b/ja-jp/getting-started/install-self-hosted/README.mdx.bak index 2feeb81e..ccdc1759 100644 --- a/ja-jp/getting-started/install-self-hosted/README.mdx.bak +++ b/ja-jp/getting-started/install-self-hosted/README.mdx.bak @@ -14,4 +14,4 @@ GitHub で [Dify コミュニティ版](https://github.com/langgenius/dify) を 正確な審査を確保するため、直接変更をコミットする権限を持つ寄稿者を含むすべてのコードの寄稿は、PR(プルリクエスト)を提出し、マージされる前にコア開発者の承認を得る必要があります。 -私たちはすべての人のPRを歓迎します!ご協力いただける場合は、[寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA.md) でプロジェクトに貢献する方法についての詳細を確認できます。 +私たちはすべての人のPRを歓迎します!ご協力いただける場合は、[寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA) でプロジェクトに貢献する方法についての詳細を確認できます。 diff --git a/ja-jp/getting-started/install-self-hosted/docker-compose.mdx.bak b/ja-jp/getting-started/install-self-hosted/docker-compose.mdx.bak index 6f3c1bf6..c54e6b1a 100644 --- a/ja-jp/getting-started/install-self-hosted/docker-compose.mdx.bak +++ b/ja-jp/getting-started/install-self-hosted/docker-compose.mdx.bak @@ -169,4 +169,4 @@ docker compose up -d ### もっと -もし疑問があれば、[よくある質問](faq.md)をご覧ください。 +もし疑問があれば、[よくある質問](faq)をご覧ください。 diff --git a/ja-jp/getting-started/install-self-hosted/environments.mdx b/ja-jp/getting-started/install-self-hosted/environments.mdx index f54bdf9d..58d36b7f 100644 --- a/ja-jp/getting-started/install-self-hosted/environments.mdx +++ b/ja-jp/getting-started/install-self-hosted/environments.mdx @@ -463,6 +463,10 @@ dockerイメージまたはdocker-composeによる起動時にのみ有効です 例:`http://unstructured:8000/general/v0/general` +* TOP_K_MAX_VALUE + + RAG の最大の上位 k 値。デフォルトは 10。 + #### マルチモーダルモデル設定 * MULTIMODAL_SEND_IMAGE_FORMAT @@ -637,7 +641,7 @@ API サービスによってインターフェース ID 検証にのみ使用さ ### 文書チャンク長の設定 -#### MAXIMUM_CHUNK_TOKEN_LENGTH +#### INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH 文書チャンク長の設定。長文処理時のテキストセグメントサイズを制御するために使用。デフォルト値:500。最大値:4000。 diff --git a/ja-jp/getting-started/install-self-hosted/faq.mdx b/ja-jp/getting-started/install-self-hosted/faq.mdx index 4723409d..57b123b0 100644 --- a/ja-jp/getting-started/install-self-hosted/faq.mdx +++ b/ja-jp/getting-started/install-self-hosted/faq.mdx @@ -84,7 +84,7 @@ docker exec -it docker-db-1 sh -c "echo 'host all all 172.19.0.0/16 trust' >> /v docker-compose restart ``` -他のデプロイに関する質問は[ローカルデプロイに関する](../../learn-more/faq/install-faq.md)をご確認ください。 +他のデプロイに関する質問は[ローカルデプロイに関する](../../learn-more/faq/install-faq)をご確認ください。 ### 7. ナレッジベースのファイルアップロードサイズ制限を変更するには? diff --git a/ja-jp/getting-started/install-self-hosted/faq.mdx.bak b/ja-jp/getting-started/install-self-hosted/faq.mdx.bak index 0a357ef9..265663c7 100644 --- a/ja-jp/getting-started/install-self-hosted/faq.mdx.bak +++ b/ja-jp/getting-started/install-self-hosted/faq.mdx.bak @@ -68,4 +68,4 @@ EXPOSE_NGINX_SSL_PORT=443 ``` -他のデプロイに関する質問は[ここに](../../learn-more/faq/install-faq.md)います。 \ No newline at end of file +他のデプロイに関する質問は[ここに](../../learn-more/faq/install-faq)います。 \ No newline at end of file diff --git a/ja-jp/getting-started/readme/model-providers.mdx.bak b/ja-jp/getting-started/readme/model-providers.mdx.bak index 6bd2ba78..bb099604 100644 --- a/ja-jp/getting-started/readme/model-providers.mdx.bak +++ b/ja-jp/getting-started/readme/model-providers.mdx.bak @@ -381,4 +381,4 @@ Difyは以下のモデルプロバイダーをサポートしています: その中で (🛠️) は関数呼び出しをサポートすることを、(👓) は視覚能力を持つことを示します。 -この表は常に更新されています。また、コミュニティメンバーからのモデル供給者に関する様々な[リクエスト](https://github.com/langgenius/dify/discussions/categories/ideas)も注視しています。必要なモデル供給者がこのリストにない場合は、プルリクエストを提出して貢献することができます。詳しくは、[contribution](../../community/contribution.md)ガイドをご覧ください。 +この表は常に更新されています。また、コミュニティメンバーからのモデル供給者に関する様々な[リクエスト](https://github.com/langgenius/dify/discussions/categories/ideas)も注視しています。必要なモデル供給者がこのリストにない場合は、プルリクエストを提出して貢献することができます。詳しくは、[contribution](../../community/contribution)ガイドをご覧ください。 diff --git a/ja-jp/guides/application-orchestrate/app-toolkits/README.mdx.bak b/ja-jp/guides/application-orchestrate/app-toolkits/README.mdx.bak index e511de1b..d68790a2 100644 --- a/ja-jp/guides/application-orchestrate/app-toolkits/README.mdx.bak +++ b/ja-jp/guides/application-orchestrate/app-toolkits/README.mdx.bak @@ -54,10 +54,10 @@ alt="" AIアプリと対話する際には、内容の安全性、ユーザー体験、法律規制など、さまざまな厳しい要求があります。このような場合には「センシティブコンテンツレビュー」機能が必要で、エンドユーザーにより良い対話環境を提供します。 -詳しい説明は[センシティブコンテンツレビュー](moderation-tool.md)をご覧ください。 +詳しい説明は[センシティブコンテンツレビュー](moderation-tool)をご覧ください。 ### 注釈付き返信 注釈付き返信機能は、人工的に編集された注釈によって、アプリにカスタマイズされた高品質な質問応答能力を提供します。 -詳しい説明は[注釈付き返信](../../biao-zhu/annotation-reply.md)をご覧ください。 +詳しい説明は[注釈付き返信](../../biao-zhu/annotation-reply)をご覧ください。 diff --git a/ja-jp/guides/application-orchestrate/chatbot-application.mdx b/ja-jp/guides/application-orchestrate/chatbot-application.mdx index f9a742bb..86092550 100644 --- a/ja-jp/guides/application-orchestrate/chatbot-application.mdx +++ b/ja-jp/guides/application-orchestrate/chatbot-application.mdx @@ -71,11 +71,11 @@ AIの対話範囲を[ナレッジベース](/ja-jp/guides/knowledge-base/readme) ![](https://assets-docs.dify.ai/dify-enterprise-mintlify/jp/guides/application-orchestrate/96c97bea71df343ddc8dc013602e8a32.jpeg) -単一モデルでのデバッグが効率的ではない場合、[**「複数のモデルでのデバッグ」**](./multiple-llms-debugging.md)機能を使用して、複数のモデルの回答効果を一括確認することもできます。 +単一モデルでのデバッグが効率的ではない場合、[**「複数のモデルでのデバッグ」**](./multiple-llms-debugging)機能を使用して、複数のモデルの回答効果を一括確認することもできます。 #### アプリの公開 -アプリのデバッグが完了したら、右上の**公開**ボタンをクリックして独立したAIアプリを生成します。公開URLを使用してアプリを体験するだけでなく、APIベースの開発やWebサイトへの組み込みなども行うことができます。詳細については[公開](../application-publishing/README.md)を参照してください。 +アプリのデバッグが完了したら、右上の**公開**ボタンをクリックして独立したAIアプリを生成します。公開URLを使用してアプリを体験するだけでなく、APIベースの開発やWebサイトへの組み込みなども行うことができます。詳細については[公開](../application-publishing/README)を参照してください。 公開されたアプリをカスタマイズしたい場合は、当社のオープンソースの[WebAppテンプレート](https://github.com/langgenius/webapp-conversation)をForkしてください。テンプレートをベースに、シチュエーションやスタイルに合わせたアプリを作成できます。 diff --git a/ja-jp/guides/application-orchestrate/chatbot-application.mdx.bak b/ja-jp/guides/application-orchestrate/chatbot-application.mdx.bak index a9bd83c0..4d5adef1 100644 --- a/ja-jp/guides/application-orchestrate/chatbot-application.mdx.bak +++ b/ja-jp/guides/application-orchestrate/chatbot-application.mdx.bak @@ -71,11 +71,11 @@ AIの対話範囲を[ナレッジベース](../knowledge-base/)内に制限し ![](https://assets-docs.dify.ai/dify-enterprise-mintlify/jp/guides/application-orchestrate/96c97bea71df343ddc8dc013602e8a32.jpeg) -単一モデルでのデバッグが効率的ではない場合、[**「複数のモデルでのデバッグ」**](./multiple-llms-debugging.md)機能を使用して、複数のモデルの回答効果を一括確認することもできます。 +単一モデルでのデバッグが効率的ではない場合、[**「複数のモデルでのデバッグ」**](./multiple-llms-debugging)機能を使用して、複数のモデルの回答効果を一括確認することもできます。 #### アプリの公開 -アプリのデバッグが完了したら、右上の**公開**ボタンをクリックして独立したAIアプリを生成します。公開URLを使用してアプリを体験するだけでなく、APIベースの開発やWebサイトへの組み込みなども行うことができます。詳細については[公開](../application-publishing/README.md)を参照してください。 +アプリのデバッグが完了したら、右上の**公開**ボタンをクリックして独立したAIアプリを生成します。公開URLを使用してアプリを体験するだけでなく、APIベースの開発やWebサイトへの組み込みなども行うことができます。詳細については[公開](../application-publishing/README)を参照してください。 公開されたアプリをカスタマイズしたい場合は、当社のオープンソースの[WebAppテンプレート](https://github.com/langgenius/webapp-conversation)をForkしてください。テンプレートをベースに、シチュエーションやスタイルに合わせたアプリを作成できます。 @@ -83,7 +83,7 @@ AIの対話範囲を[ナレッジベース](../knowledge-base/)内に制限し **チャットボット内にサードパーティツールを追加するにはどうすればよいですか?** -チャットボットアプリは、サードパーティツールの追加をサポートしていません。[エージェント](../application-orchestrate/agent.md) 内でサードパーティツールを追加できます。 +チャットボットアプリは、サードパーティツールの追加をサポートしていません。[エージェント](../application-orchestrate/agent) 内でサードパーティツールを追加できます。 **チャットボット作成時のメタデータフィルタリング活用方法とは? ** diff --git a/ja-jp/guides/application-publishing/launch-your-webapp-quickly/README.mdx.bak b/ja-jp/guides/application-publishing/launch-your-webapp-quickly/README.mdx.bak index 221564fe..afc0e534 100644 --- a/ja-jp/guides/application-publishing/launch-your-webapp-quickly/README.mdx.bak +++ b/ja-jp/guides/application-publishing/launch-your-webapp-quickly/README.mdx.bak @@ -18,8 +18,8 @@ Difyを使ってAIアプリを作成するメリットの一つは、数分で 以下の2種類のアプリには、きれいなWebアプリのインターフェースを提供しています: -* テキスト生成型([前往预览](text-generator.md)) -* 対話型([前往预览](conversation-application.md)) +* テキスト生成型([前往预览](text-generator)) +* 対話型([前往预览](conversation-application)) *** @@ -36,7 +36,7 @@ Webアプリのカード上の**設定**ボタンをクリックすると、AI * カスタム免責事項 -現在サポートされているインターフェース言語:英語、中国語(簡体字)、中国語(繁体字)、ポルトガル語、ドイツ語、日本語、韓国語、ウクライナ語、ベトナム語。追加の言語が必要な場合は、GitHubでイシューを提出するか、プルリクエストを提出してコードを提供してください。[サポートを求める](../../../community/support.md)。 +現在サポートされているインターフェース言語:英語、中国語(簡体字)、中国語(繁体字)、ポルトガル語、ドイツ語、日本語、韓国語、ウクライナ語、ベトナム語。追加の言語が必要な場合は、GitHubでイシューを提出するか、プルリクエストを提出してコードを提供してください。[サポートを求める](../../../community/support)。 *** diff --git a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx index 90970fde..7a4def63 100644 --- a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx +++ b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx @@ -159,5 +159,5 @@ title: 2. チャンクモードの指定 分割モードを選んだら、次にインデックスの設定や検索方法の調整を行い、ナレッジベースの構築を進めましょう。 -* [インデックス方式](./setting-indexing-methods.md) -* [検索オプションの設定](./selecting-retrieval-settings.md) +* [インデックス方式](./setting-indexing-methods) +* [検索オプションの設定](./selecting-retrieval-settings) diff --git a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx.bak b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx.bak index 90970fde..7a4def63 100644 --- a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx.bak +++ b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/chunking-and-cleaning-text.mdx.bak @@ -159,5 +159,5 @@ title: 2. チャンクモードの指定 分割モードを選んだら、次にインデックスの設定や検索方法の調整を行い、ナレッジベースの構築を進めましょう。 -* [インデックス方式](./setting-indexing-methods.md) -* [検索オプションの設定](./selecting-retrieval-settings.md) +* [インデックス方式](./setting-indexing-methods) +* [検索オプションの設定](./selecting-retrieval-settings) diff --git a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/readme.mdx.bak b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/readme.mdx.bak index 67c9e6ef..bf07796f 100644 --- a/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/readme.mdx.bak +++ b/ja-jp/guides/knowledge-base/create-knowledge-and-upload-documents/readme.mdx.bak @@ -23,7 +23,7 @@ title: 知识库创建步骤 5. 等待分段嵌入 -6. 完成上传,在应用内关联知识库并使用。你可以参考[在应用内集成知识库](../integrate-knowledge-within-application.md),搭建出能够基于知识库进行问答的 LLM 应用。如需修改或管理知识库,请参考[知识库管理与文档维护](../knowledge-and-documents-maintenance/)。 +6. 完成上传,在应用内关联知识库并使用。你可以参考[在应用内集成知识库](../integrate-knowledge-within-application),搭建出能够基于知识库进行问答的 LLM 应用。如需修改或管理知识库,请参考[知识库管理与文档维护](../knowledge-and-documents-maintenance/)。 ![完成知识库的创建](https://assets-docs.dify.ai/2024/12/a3362a1cd384cb2b539c9858de555518.png) diff --git a/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents.mdx b/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents.mdx index f5a85964..2027ff84 100644 --- a/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents.mdx +++ b/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/maintain-knowledge-documents.mdx @@ -53,7 +53,7 @@ title: ナレッジベース内のドキュメントの管理 ![ドキュメント分割のフィルタリング](https://assets-docs.dify.ai/2025/01/47ef07319175a102bfd1692dcc6cac9b.png) -なお、各種[テキスト分割モード](../create-knowledge-and-upload-documents/chunking-and-cleaning-text.md)により、分割表示の方法が異なります。 +なお、各種[テキスト分割モード](../create-knowledge-and-upload-documents/chunking-and-cleaning-text)により、分割表示の方法が異なります。 diff --git a/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/readme.mdx b/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/readme.mdx index e43cc5b5..669ca91b 100644 --- a/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/readme.mdx +++ b/ja-jp/guides/knowledge-base/knowledge-and-documents-maintenance/readme.mdx @@ -13,9 +13,9 @@ Difyチームのホームページで、「ナレッジベース」ボタンを - **ナレッジベースの名前**:異なるナレッジベースを区別するために使用されます。 - **ナレッジの説明**:ナレッジベースのドキュメントで表現される情報を説明するために使用されます。 - **表示権限**:ナレッジベースへのアクセス制御を定義します。3つのレベルがあります:**「自分だけ」**、**「全チームメンバー」** と **「一部のチームメンバー」**。権限のない方はナレッジベースをアクセスできません。このナレッジベースを他のメンバーと共有すると、そのメンバーもこのナレッジベースに対する完全な権限を持ちます。 -- **索引方法**:詳細な説明については、[ドキュメント](./create-knowledge-and-upload-documents/setting-indexing-methods.md)を参照してください。 +- **索引方法**:詳細な説明については、[ドキュメント](./create-knowledge-and-upload-documents/setting-indexing-methods)を参照してください。 - **埋め込みモデル**:ナレッジベースの埋め込みモデルを変更できます。埋め込みモデルを変更すると、ナレッジベース内のすべてのドキュメントが再埋め込みされ、元の埋め込みが削除されます。 -- **検索設定**:詳細な説明については、[ドキュメント](./create-knowledge-and-upload-documents/selecting-retrieval-settings.md)を参照してください。 +- **検索設定**:詳細な説明については、[ドキュメント](./create-knowledge-and-upload-documents/selecting-retrieval-settings)を参照してください。 --- @@ -29,7 +29,7 @@ Difyチームのホームページで、「ナレッジベース」ボタンを ### ナレッジベースAPIの管理 -Difyのナレッジベースは、標準APIの完全なセットを提供しています。開発者はAPI呼び出しを行うことで、ナレッジベース内のドキュメントやチャンクの追加、削除、変更、クエリなどの日常的な管理およびメンテナンス操作を実行できます。詳細については、[ナレッジベースAPIドキュメント](maintain-dataset-via-api.md)を参照してください。 +Difyのナレッジベースは、標準APIの完全なセットを提供しています。開発者はAPI呼び出しを行うことで、ナレッジベース内のドキュメントやチャンクの追加、削除、変更、クエリなどの日常的な管理およびメンテナンス操作を実行できます。詳細については、[ナレッジベースAPIドキュメント](maintain-dataset-via-api)を参照してください。 ![ナレッジベースAPIの管理](../../.gitbook/assets/knowledge-base-api.png) @@ -85,13 +85,13 @@ Difyのナレッジベースは、標準APIの完全なセットを提供して ![チャンクを展開する](https://assets-docs.dify.ai/2024/12/86cc80f17fab1eea75aa73ee681e4663.png) -[テキストチャンク](./create-knowledge-and-upload-documents/chunking-and-cleaning-text.md)を表示する方法にはいくつかのモードがあり、それぞれでテキストの見せ方が異なります: +[テキストチャンク](./create-knowledge-and-upload-documents/chunking-and-cleaning-text)を表示する方法にはいくつかのモードがあり、それぞれでテキストの見せ方が異なります: **汎用モード** - [汎用モード](./create-knowledge-and-upload-documents/chunking-and-cleaning-text.md)では、各テキストチャンクが独立したブロックとして扱われます。全内容を表示したい場合は、右上にある全画面表示ボタンをタップしてください。 + [汎用モード](./create-knowledge-and-upload-documents/chunking-and-cleaning-text)では、各テキストチャンクが独立したブロックとして扱われます。全内容を表示したい場合は、右上にある全画面表示ボタンをタップしてください。 ![全画面表示への切り替え](https://assets-docs.dify.ai/2024/12/c37a1a247092cda9433a10243543698f.png) @@ -103,7 +103,7 @@ Difyのナレッジベースは、標準APIの完全なセットを提供して **親子モード** - [親子モード](./create-knowledge-and-upload-documents/chunking-and-cleaning-text.md)では、テキストが親チャンクと子チャンクに分かれて表示されます。 + [親子モード](./create-knowledge-and-upload-documents/chunking-and-cleaning-text)では、テキストが親チャンクと子チャンクに分かれて表示されます。 * **親チャンク** diff --git a/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx b/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx index d09635be..87fea5c5 100644 --- a/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx +++ b/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx @@ -4,7 +4,7 @@ title: ナレッジベース作成 ナレッジベースの作成および文書のアップロード手順は、主に以下のステップから成り立っています: -1. ナレッジベースを新規作成し、ローカルの文書や[オンラインのデータ](./import-online-datasource/README.md)を取り込みます。 +1. ナレッジベースを新規作成し、ローカルの文書や[オンラインのデータ](./import-online-datasource/README)を取り込みます。 2. 文書を分割する際のモードを選び、その効果をプレビューします。 3. 検索機能のためのインデックス設定と検索オプションを構成します。 4. 文書の分割処理が完了するまで待ちます。 @@ -26,13 +26,13 @@ Difyプラットフォームのトップメニューより **「ナレッジベ ![ナレッジベースの作成](https://assets-docs.dify.ai/2024/12/effc826d2584d5f2983cdcd746099bb6.png) -* オンラインデータの取り込み:ナレッジベース作成時に[オンラインデータの取り込み](./import-online-datasource/README.md)が可能で、詳細はオンラインデータ取り込みのガイドを参照してください。オンラインデータソースを利用するナレッジベースには、後からローカルの文書を追加したり、ローカルファイルタイプのナレッジベースへ変更したりすることはできません。これは、複数のデータソースが混在すると管理が複雑になるためです。 +* オンラインデータの取り込み:ナレッジベース作成時に[オンラインデータの取り込み](./import-online-datasource/README)が可能で、詳細はオンラインデータ取り込みのガイドを参照してください。オンラインデータソースを利用するナレッジベースには、後からローカルの文書を追加したり、ローカルファイルタイプのナレッジベースへ変更したりすることはできません。これは、複数のデータソースが混在すると管理が複雑になるためです。 * 文書がまだ準備できていない場合でも、空のナレッジベースを先に作成し、後ほどローカル文書をアップロードしたり、オンラインデータを取り込んだりすることができます。 ## 2. コンテンツ分割の指定方法 -コンテンツをナレッジベースにアップロードした後の次のステップは、コンテンツの分割とデータのクレンジングです。**このステップでは、コンテンツの前処理とデータの構造化が行われ、長いテキストは複数のセクションに分けられます。** LLMはユーザーからの質問を受け取った際、ナレッジベース内のセクションをどれだけ正確に検索し取り出せるかで、その質問に対する正確な回答が可能かどうかが決まります。詳細については、[コンテンツ分割の指定方法](./chunking-and-cleaning-text.md)をご参照ください。 +コンテンツをナレッジベースにアップロードした後の次のステップは、コンテンツの分割とデータのクレンジングです。**このステップでは、コンテンツの前処理とデータの構造化が行われ、長いテキストは複数のセクションに分けられます。** LLMはユーザーからの質問を受け取った際、ナレッジベース内のセクションをどれだけ正確に検索し取り出せるかで、その質問に対する正確な回答が可能かどうかが決まります。詳細については、[コンテンツ分割の指定方法](./chunking-and-cleaning-text)をご参照ください。 以下の2つの分割モードがあります: @@ -48,7 +48,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ 二層の構造を採用し、検索精度とコンテキスト情報のバランスを取ります。このモードでは、親セクション(Parent-chunk)がより大きなテキスト単位(例えば段落)を包含し、豊富なコンテキスト情報を提供します。子セクション(Child-chunk)はより小さなテキスト単位(例えば文)で、精確な検索に利用されます。システムは最初に子セクションを通じて精確な検索を行い関連性を確保した後、対応する親セクションを取得しコンテキスト情報を補完し、レスポンスを生成する際に正確さを保ちながら完全な背景情報を提供します。セクションの分割方法は、区切り文字と最大長さの設定を通してカスタマイズできます。 -ナレッジベースを初めて作成する際は、[親子分割モード](./chunking-and-cleaning-text.md)を選択し、デフォルトのオプションを使用してナレッジベースの作成を行うことを推奨します。コンテンツセクションをカスタマイズしたい場合は、[分割ルール](./chunking-and-cleaning-text.md)を参照し、正規表現の文法に従って設定してください。 +ナレッジベースを初めて作成する際は、[親子分割モード](./chunking-and-cleaning-text)を選択し、デフォルトのオプションを使用してナレッジベースの作成を行うことを推奨します。コンテンツセクションをカスタマイズしたい場合は、[分割ルール](./chunking-and-cleaning-text)を参照し、正規表現の文法に従って設定してください。 ![汎用分割モードと親子分割モード](https://assets-docs.dify.ai/2024/12/b3052a6aae6e4d0e5701dde3a859e326.png) @@ -60,7 +60,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ コンテンツを構造化する前処理(分割とクリーニング)を行った後、構造化されたコンテンツに対してどのように検索を行うかの設定が必要です。検索エンジンが効率的なインデックスアルゴリズムを用いて、ユーザーの問い合わせに最も関連性の高い検索結果を提供できるように、インデックスの設定方法が重要です。これは、LLMがナレッジベースから情報を検索する効率と回答の精度に直接影響します。 -以下に、三つのインデックス設定方法を紹介します。詳細は[インデックス設定方法](./setting-indexing-methods.md)をご覧ください。 +以下に、三つのインデックス設定方法を紹介します。詳細は[インデックス設定方法](./setting-indexing-methods)をご覧ください。 * **高品質** @@ -82,7 +82,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ ユーザーからの問い合わせを受けた後、ナレッジベースは関連する情報を既存のドキュメントから見つけ出すために検索方法を用いる。ビジネスの要求やデータの特徴に合わせて、検索方法を柔軟に組み合わせたり変更したりすることで、より効果的かつ正確な検索結果を提供できる。 -異なるインデックス作成方法によって、様々な検索オプションが提供される。詳細は[検索方法の選定](./selecting-retrieval-settings.md)セクションを参照。 +異なるインデックス作成方法によって、様々な検索オプションが提供される。詳細は[検索方法の選定](./selecting-retrieval-settings)セクションを参照。 * **高品質インデックス** diff --git a/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx.bak b/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx.bak index d09635be..87fea5c5 100644 --- a/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx.bak +++ b/ja-jp/guides/knowledge-base/knowledge-base-creation/introduction.mdx.bak @@ -4,7 +4,7 @@ title: ナレッジベース作成 ナレッジベースの作成および文書のアップロード手順は、主に以下のステップから成り立っています: -1. ナレッジベースを新規作成し、ローカルの文書や[オンラインのデータ](./import-online-datasource/README.md)を取り込みます。 +1. ナレッジベースを新規作成し、ローカルの文書や[オンラインのデータ](./import-online-datasource/README)を取り込みます。 2. 文書を分割する際のモードを選び、その効果をプレビューします。 3. 検索機能のためのインデックス設定と検索オプションを構成します。 4. 文書の分割処理が完了するまで待ちます。 @@ -26,13 +26,13 @@ Difyプラットフォームのトップメニューより **「ナレッジベ ![ナレッジベースの作成](https://assets-docs.dify.ai/2024/12/effc826d2584d5f2983cdcd746099bb6.png) -* オンラインデータの取り込み:ナレッジベース作成時に[オンラインデータの取り込み](./import-online-datasource/README.md)が可能で、詳細はオンラインデータ取り込みのガイドを参照してください。オンラインデータソースを利用するナレッジベースには、後からローカルの文書を追加したり、ローカルファイルタイプのナレッジベースへ変更したりすることはできません。これは、複数のデータソースが混在すると管理が複雑になるためです。 +* オンラインデータの取り込み:ナレッジベース作成時に[オンラインデータの取り込み](./import-online-datasource/README)が可能で、詳細はオンラインデータ取り込みのガイドを参照してください。オンラインデータソースを利用するナレッジベースには、後からローカルの文書を追加したり、ローカルファイルタイプのナレッジベースへ変更したりすることはできません。これは、複数のデータソースが混在すると管理が複雑になるためです。 * 文書がまだ準備できていない場合でも、空のナレッジベースを先に作成し、後ほどローカル文書をアップロードしたり、オンラインデータを取り込んだりすることができます。 ## 2. コンテンツ分割の指定方法 -コンテンツをナレッジベースにアップロードした後の次のステップは、コンテンツの分割とデータのクレンジングです。**このステップでは、コンテンツの前処理とデータの構造化が行われ、長いテキストは複数のセクションに分けられます。** LLMはユーザーからの質問を受け取った際、ナレッジベース内のセクションをどれだけ正確に検索し取り出せるかで、その質問に対する正確な回答が可能かどうかが決まります。詳細については、[コンテンツ分割の指定方法](./chunking-and-cleaning-text.md)をご参照ください。 +コンテンツをナレッジベースにアップロードした後の次のステップは、コンテンツの分割とデータのクレンジングです。**このステップでは、コンテンツの前処理とデータの構造化が行われ、長いテキストは複数のセクションに分けられます。** LLMはユーザーからの質問を受け取った際、ナレッジベース内のセクションをどれだけ正確に検索し取り出せるかで、その質問に対する正確な回答が可能かどうかが決まります。詳細については、[コンテンツ分割の指定方法](./chunking-and-cleaning-text)をご参照ください。 以下の2つの分割モードがあります: @@ -48,7 +48,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ 二層の構造を採用し、検索精度とコンテキスト情報のバランスを取ります。このモードでは、親セクション(Parent-chunk)がより大きなテキスト単位(例えば段落)を包含し、豊富なコンテキスト情報を提供します。子セクション(Child-chunk)はより小さなテキスト単位(例えば文)で、精確な検索に利用されます。システムは最初に子セクションを通じて精確な検索を行い関連性を確保した後、対応する親セクションを取得しコンテキスト情報を補完し、レスポンスを生成する際に正確さを保ちながら完全な背景情報を提供します。セクションの分割方法は、区切り文字と最大長さの設定を通してカスタマイズできます。 -ナレッジベースを初めて作成する際は、[親子分割モード](./chunking-and-cleaning-text.md)を選択し、デフォルトのオプションを使用してナレッジベースの作成を行うことを推奨します。コンテンツセクションをカスタマイズしたい場合は、[分割ルール](./chunking-and-cleaning-text.md)を参照し、正規表現の文法に従って設定してください。 +ナレッジベースを初めて作成する際は、[親子分割モード](./chunking-and-cleaning-text)を選択し、デフォルトのオプションを使用してナレッジベースの作成を行うことを推奨します。コンテンツセクションをカスタマイズしたい場合は、[分割ルール](./chunking-and-cleaning-text)を参照し、正規表現の文法に従って設定してください。 ![汎用分割モードと親子分割モード](https://assets-docs.dify.ai/2024/12/b3052a6aae6e4d0e5701dde3a859e326.png) @@ -60,7 +60,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ コンテンツを構造化する前処理(分割とクリーニング)を行った後、構造化されたコンテンツに対してどのように検索を行うかの設定が必要です。検索エンジンが効率的なインデックスアルゴリズムを用いて、ユーザーの問い合わせに最も関連性の高い検索結果を提供できるように、インデックスの設定方法が重要です。これは、LLMがナレッジベースから情報を検索する効率と回答の精度に直接影響します。 -以下に、三つのインデックス設定方法を紹介します。詳細は[インデックス設定方法](./setting-indexing-methods.md)をご覧ください。 +以下に、三つのインデックス設定方法を紹介します。詳細は[インデックス設定方法](./setting-indexing-methods)をご覧ください。 * **高品質** @@ -82,7 +82,7 @@ Difyプラットフォームのトップメニューより **「ナレッジベ ユーザーからの問い合わせを受けた後、ナレッジベースは関連する情報を既存のドキュメントから見つけ出すために検索方法を用いる。ビジネスの要求やデータの特徴に合わせて、検索方法を柔軟に組み合わせたり変更したりすることで、より効果的かつ正確な検索結果を提供できる。 -異なるインデックス作成方法によって、様々な検索オプションが提供される。詳細は[検索方法の選定](./selecting-retrieval-settings.md)セクションを参照。 +異なるインデックス作成方法によって、様々な検索オプションが提供される。詳細は[検索方法の選定](./selecting-retrieval-settings)セクションを参照。 * **高品質インデックス** diff --git a/ja-jp/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx.bak b/ja-jp/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx.bak index cf2c9dbb..b4d9941d 100644 --- a/ja-jp/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx.bak +++ b/ja-jp/guides/knowledge-base/knowledge-base-creation/upload-documents.mdx.bak @@ -225,7 +225,7 @@ version: '简体中文' ## 5 完成上传 -配置完上文所述的各项配置后,轻点“保存并处理”即可完成知识库的创建。你可以参考 [在应用内集成知识库](integrate-knowledge-within-application.md),搭建出能够基于知识库进行问答的 LLM 应用。 +配置完上文所述的各项配置后,轻点“保存并处理”即可完成知识库的创建。你可以参考 [在应用内集成知识库](integrate-knowledge-within-application),搭建出能够基于知识库进行问答的 LLM 应用。 *** diff --git a/ja-jp/guides/knowledge-base/readme.mdx b/ja-jp/guides/knowledge-base/readme.mdx index 472d32ad..b971eab5 100644 --- a/ja-jp/guides/knowledge-base/readme.mdx +++ b/ja-jp/guides/knowledge-base/readme.mdx @@ -36,4 +36,4 @@ Difyプラットフォームでは、RAG(検索強化生成)ソリューシ Difyでのナレッジベースは、複数のドキュメント(Documents)から構成され、一つのドキュメントは複数のコンテンツブロック(Chunk)を含むことがあります。このナレッジベースは、アプリケーション全体で検索の対象として統合することが可能です。ドキュメントは、開発者や運営スタッフによってアップロードされるか、他のデータソースから同期されます。 -独自のドキュメントライブラリを構築している場合、Difyの[外部ナレッジベース機能](./connect-external-knowledge-base.md)を利用して、自身のナレッジベースをDifyプラットフォームにリンクさせることができます。これにより、Difyプラットフォーム内で内容を再度アップロードすることなく、大規模な言語モデルがリアルタイムで独自のナレッジベースの内容を参照することが可能になります。 \ No newline at end of file +独自のドキュメントライブラリを構築している場合、Difyの[外部ナレッジベース機能](./connect-external-knowledge-base)を利用して、自身のナレッジベースをDifyプラットフォームにリンクさせることができます。これにより、Difyプラットフォーム内で内容を再度アップロードすることなく、大規模な言語モデルがリアルタイムで独自のナレッジベースの内容を参照することが可能になります。 \ No newline at end of file diff --git a/ja-jp/guides/management/personal-account-management.mdx b/ja-jp/guides/management/personal-account-management.mdx index 6f8207a6..32195ec8 100644 --- a/ja-jp/guides/management/personal-account-management.mdx +++ b/ja-jp/guides/management/personal-account-management.mdx @@ -67,7 +67,7 @@ Difyでは、3つのログイン方法を提供しています。それは、メ * インドネシア語 * ウクライナ語(ウクライナ) -Difyはコミュニティのボランティアによる追加の言語バージョンの提供を歓迎しています。貢献をご希望の方は、[GitHubリポジトリ](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)をご覧ください。 +Difyはコミュニティのボランティアによる追加の言語バージョンの提供を歓迎しています。貢献をご希望の方は、[GitHubリポジトリ](https://github.com/langgenius/dify/blob/main/CONTRIBUTING)をご覧ください。 ### アカウントにリンクされたアプリを確認 diff --git a/ja-jp/guides/model-configuration/README.mdx.bak b/ja-jp/guides/model-configuration/README.mdx.bak index a37773b5..e9f5f7ae 100644 --- a/ja-jp/guides/model-configuration/README.mdx.bak +++ b/ja-jp/guides/model-configuration/README.mdx.bak @@ -69,10 +69,10 @@ Difyは[PKCS1\_OAEP](https://pycryptodome.readthedocs.io/en/latest/src/cipher/oa ホストタイプのプロバイダーには多くの第三者モデルがあります。モデルの接続には個別に追加が必要です。具体的な接続方法は以下の通りです: -* [Hugging Face](hugging-face.md) -* [Replicate](replicate.md) -* [Xinference](xinference.md) -* [OpenLLM](openllm.md) +* [Hugging Face](hugging-face) +* [Replicate](replicate) +* [Xinference](xinference) +* [OpenLLM](openllm) ### モデルの使用 diff --git a/ja-jp/guides/model-configuration/customizable-model.mdx b/ja-jp/guides/model-configuration/customizable-model.mdx index 4b78c797..5aeff3e5 100644 --- a/ja-jp/guides/model-configuration/customizable-model.mdx +++ b/ja-jp/guides/model-configuration/customizable-model.mdx @@ -300,4 +300,4 @@ provider_credential_schema: """ ``` -インターフェース方法の詳細については:[インターフェース](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces.md)をご覧ください。具体的な実装例については、[llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py)を参照してください。 +インターフェース方法の詳細については:[インターフェース](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces)をご覧ください。具体的な実装例については、[llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py)を参照してください。 diff --git a/ja-jp/guides/model-configuration/new-provider.mdx b/ja-jp/guides/model-configuration/new-provider.mdx index 3038293f..36bd8b41 100644 --- a/ja-jp/guides/model-configuration/new-provider.mdx +++ b/ja-jp/guides/model-configuration/new-provider.mdx @@ -33,7 +33,7 @@ title: 新しいプロバイダーの追加 新しいプロバイダーを追加するには主にいくつかのステップがあります。ここでは簡単に列挙し、具体的な手順は以下で詳しく説明します。 -* プロバイダーのYAMLファイルを作成し、[プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)に基づいて記述します。 +* プロバイダーのYAMLファイルを作成し、[プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)に基づいて記述します。 * プロバイダーのコードを作成し、`class`を実装します。 * モデルタイプに応じて、プロバイダーの`モジュール`内に対応するモデルタイプの`モジュール`を作成します。例えば`llm`や`text_embedding`。 * モデルタイプに応じて、対応するモデル`モジュール`内に同名のコードファイルを作成し、例えば`llm.py`、`class`を実装します。 @@ -82,7 +82,7 @@ provider_credential_schema: # プロバイダーのクレデンシャルルー en_US: Enter your API URL ``` -カスタマイズ可能なモデルを提供するプロバイダー、例えば`OpenAI`が微調整モデルを提供する場合、[`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)を追加する必要があります。以下は`OpenAI`を例にしたものです: +カスタマイズ可能なモデルを提供するプロバイダー、例えば`OpenAI`が微調整モデルを提供する場合、[`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)を追加する必要があります。以下は`OpenAI`を例にしたものです: ```yaml model_credential_schema: @@ -122,7 +122,7 @@ model_credential_schema: en_US: Enter your API Base ``` -`model_providers`ディレクトリ内の他のプロバイダーディレクトリの[YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)も参考にできます。 +`model_providers`ディレクトリ内の他のプロバイダーディレクトリの[YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)も参考にできます。 **プロバイダーコードの実装** diff --git a/ja-jp/guides/model-configuration/new-provider.mdx.bak b/ja-jp/guides/model-configuration/new-provider.mdx.bak index 31cd4ff0..4a48d817 100644 --- a/ja-jp/guides/model-configuration/new-provider.mdx.bak +++ b/ja-jp/guides/model-configuration/new-provider.mdx.bak @@ -33,7 +33,7 @@ title: 新しいプロバイダーの追加 新しいプロバイダーを追加するには主にいくつかのステップがあります。ここでは簡単に列挙し、具体的な手順は以下で詳しく説明します。 -* プロバイダーのYAMLファイルを作成し、[プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)に基づいて記述します。 +* プロバイダーのYAMLファイルを作成し、[プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)に基づいて記述します。 * プロバイダーのコードを作成し、`class`を実装します。 * モデルタイプに応じて、プロバイダーの`モジュール`内に対応するモデルタイプの`モジュール`を作成します。例えば`llm`や`text_embedding`。 * モデルタイプに応じて、対応するモデル`モジュール`内に同名のコードファイルを作成し、例えば`llm.py`、`class`を実装します。 @@ -82,7 +82,7 @@ provider_credential_schema: # プロバイダーのクレデンシャルルー en_US: Enter your API URL ``` -カスタマイズ可能なモデルを提供するプロバイダー、例えば`OpenAI`が微調整モデルを提供する場合、[`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)を追加する必要があります。以下は`OpenAI`を例にしたものです: +カスタマイズ可能なモデルを提供するプロバイダー、例えば`OpenAI`が微調整モデルを提供する場合、[`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)を追加する必要があります。以下は`OpenAI`を例にしたものです: ```yaml model_credential_schema: @@ -122,7 +122,7 @@ model_credential_schema: en_US: Enter your API Base ``` -`model_providers`ディレクトリ内の他のプロバイダーディレクトリの[YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md)も参考にできます。 +`model_providers`ディレクトリ内の他のプロバイダーディレクトリの[YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema)も参考にできます。 **プロバイダーコードの実装** diff --git a/ja-jp/guides/model-configuration/predefined-model.mdx b/ja-jp/guides/model-configuration/predefined-model.mdx index d4b1ac95..a53e92a3 100644 --- a/ja-jp/guides/model-configuration/predefined-model.mdx +++ b/ja-jp/guides/model-configuration/predefined-model.mdx @@ -169,7 +169,7 @@ pricing: # 価格情報 """ ``` -インターフェースメソッドの説明については:[Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces.md)をご覧ください。具体的な実装については:[llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py)を参照してください。 +インターフェースメソッドの説明については:[Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces)をご覧ください。具体的な実装については:[llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py)を参照してください。 [^1]: #### プロバイダー diff --git a/ja-jp/guides/workflow/bulletin.mdx b/ja-jp/guides/workflow/bulletin.mdx index 0526d4dd..f8696aed 100644 --- a/ja-jp/guides/workflow/bulletin.mdx +++ b/ja-jp/guides/workflow/bulletin.mdx @@ -13,7 +13,7 @@ description: 作者:Evanchen , Allen. alt="チャットフローの機能メニュー" /> -* **ワークフローの機能および`sys.files`[変数](./variables.md)にあった画像アップロードオプションは、将来的に廃止されます。** 両方とも`LEGACY`としてマークされ、開発者にはワークフローにファイルアップロード機能を追加するためにカスタムファイル変数の使用が推奨されています。 +* **ワークフローの機能および`sys.files`[変数](./variables)にあった画像アップロードオプションは、将来的に廃止されます。** 両方とも`LEGACY`としてマークされ、開発者にはワークフローにファイルアップロード機能を追加するためにカスタムファイル変数の使用が推奨されています。 通常のノードの変数もコンテキスト変数に入力可能ですが、例えば開始ノードの文字列型変数など、**引用と帰属** 機能は機能しません。 @@ -358,7 +358,7 @@ LLMノードの出力変数をクリックし、構造化スイッチの設定 * LLMノードの前段階にドキュメント抽出ノードを設置し、ファイル変数を入力として利用する; * 抽出ノードからの**出力変数** `text` をLLMノードへの入力プロンプトとして設定する。 -さらなる情報は、[ファイルアップロード](../file-upload.md)を参照してください。 +さらなる情報は、[ファイルアップロード](../file-upload)を参照してください。 ![入力システムプロンプト](../../../.gitbook/assets/image (137).png) @@ -375,45 +375,14 @@ LLMノードの出力変数をクリックし、構造化スイッチの設定 * **構造化出力** -**シナリオ**: Difyワークフローを使用してユーザーフィードバック分析ワークフローを構築する際に、LLMノードはユーザー評価を読み取り、標準化された評価とコメントを返します。これにより、後続ノードがデータを正しく処理できるよう、データ形式の一貫性を保ちます。 +以下の動画を通じて、構造化出力機能を使用して顧客情報を収集する方法を理解することができます: -**解決策**: ワークフローのLLMノードで、**JSONスキーマエディタ**を使用してLLM出力の構造化フォーマットを定義できます。これにより、LLM は自由形式のテキストではなく、定義済みのフォーマットに従って結果を出力します。 - -**操作手順**: - -1. **LLM**ノードの**JSONスキーマエディタ**で、以下のフィールドを追加します。これによりLLMは指定の構造でデータを出力します。 - -```json -{ - "type": "object", - "properties": { - "rating": { - "type": "integer", - "description": "ユーザー評価" - }, - "comment": { - "type": "string", - "description": "ユーザーコメント" - } - }, - "required": [ - "rating", - "comment" - ] -} -``` - -2. ワークフローの**開始**ノードで、ユーザー評価を入力します。例: - -> "この製品はとても素晴らしいです。使用体験も良好です!" - -3. **JSONスキーマエディタ**による処理後、LLMから出力される**構造化データ**は以下のようになります。 - -```json -{ - "structured_output": { - "comment": "この製品はとても素晴らしいです。使用体験も良好です!", - "rating": 5 - } -} -``` + diff --git a/ja-jp/guides/workspace/readme.mdx.bak b/ja-jp/guides/workspace/readme.mdx.bak index 160ddd2b..96783270 100644 --- a/ja-jp/guides/workspace/readme.mdx.bak +++ b/ja-jp/guides/workspace/readme.mdx.bak @@ -2,7 +2,7 @@ title: コラボレーション --- -Dify は複数ユーザー向けのプラットフォームであり、ワークスペースはチームの基本的な協同単位です。ワークスペースのメンバーは、アプリやナレッジベースの作成・編集が可能で、[発見](app.md)エリアで他のチームメンバーが作成した公開アプリを直接利用することもできます。 +Dify は複数ユーザー向けのプラットフォームであり、ワークスペースはチームの基本的な協同単位です。ワークスペースのメンバーは、アプリやナレッジベースの作成・編集が可能で、[発見](app)エリアで他のチームメンバーが作成した公開アプリを直接利用することもできます。 ### ログイン方式 diff --git a/ja-jp/learn-more/extended-reading/what-is-array-variable.mdx.bak b/ja-jp/learn-more/extended-reading/what-is-array-variable.mdx.bak index 84651318..00694457 100644 --- a/ja-jp/learn-more/extended-reading/what-is-array-variable.mdx.bak +++ b/ja-jp/learn-more/extended-reading/what-is-array-variable.mdx.bak @@ -35,6 +35,6 @@ title: 配列変数とは何ですか? ``` ### 可能な使用シーン -* [ワークフロー - リスト操作](../../guides/workflow/node/list-operator.md):リスト操作ノードは、ファイルの形式、ファイル名、サイズなどの属性をフィルタリングおよび抽出し、異なる形式のファイルを対応する処理ノードに渡して、異なるファイル処理フローを正確に制御します。 +* [ワークフロー - リスト操作](../../guides/workflow/node/list-operator):リスト操作ノードは、ファイルの形式、ファイル名、サイズなどの属性をフィルタリングおよび抽出し、異なる形式のファイルを対応する処理ノードに渡して、異なるファイル処理フローを正確に制御します。 -* [ワークフロー - イテレーション](../../guides/workflow/node/iteration.md):配列内の要素に対して同じ操作ステップを順番に実行し、すべての結果を出力するまで、タスクのバッチ処理機として理解できます。 +* [ワークフロー - イテレーション](../../guides/workflow/node/iteration):配列内の要素に対して同じ操作ステップを順番に実行し、すべての結果を出力するまで、タスクのバッチ処理機として理解できます。 diff --git a/ja-jp/learn-more/use-cases/dify-model-arena.mdx b/ja-jp/learn-more/use-cases/dify-model-arena.mdx index 2dbadd08..becb25ed 100644 --- a/ja-jp/learn-more/use-cases/dify-model-arena.mdx +++ b/ja-jp/learn-more/use-cases/dify-model-arena.mdx @@ -19,7 +19,7 @@ Difyのチャットボットタイプのアプリケーションにプリイン ### 1. LLM APIキーの設定 -テストを開始する前に、**「右上」→[「新しいプロバイダーを追加」](../../guides/model-configuration/README.md)** をクリックし、表示される指示に従って、複数のモデルのAPIキーを手動で追加してください。 +テストを開始する前に、**「右上」→[「新しいプロバイダーを追加」](../../guides/model-configuration/README)** をクリックし、表示される指示に従って、複数のモデルのAPIキーを手動で追加してください。 ### 2. アプリケーションの作成 diff --git a/ja-jp/learn-more/use-cases/dify-model-arena.mdx.bak b/ja-jp/learn-more/use-cases/dify-model-arena.mdx.bak index 536475fc..87c07482 100644 --- a/ja-jp/learn-more/use-cases/dify-model-arena.mdx.bak +++ b/ja-jp/learn-more/use-cases/dify-model-arena.mdx.bak @@ -5,7 +5,7 @@ title: Difyで大規模言語モデルの「競技場」を体験する方法: ## 概要 -Difyのチャットボットタイプのアプリケーションにプリインストールされている[複数モデルのデバッグ](../../guides/application-orchestrate/multiple-llms-debugging.md)機能を使うと、同じ質問に対する異なるLLMの回答効果を同時に比較できます。この記事では、DeepSeek R1とo1を例に、Dify内でさまざまな大規模言語モデルの回答品質を直感的に比較する方法をご紹介します。 +Difyのチャットボットタイプのアプリケーションにプリインストールされている[複数モデルのデバッグ](../../guides/application-orchestrate/multiple-llms-debugging)機能を使うと、同じ質問に対する異なるLLMの回答効果を同時に比較できます。この記事では、DeepSeek R1とo1を例に、Dify内でさまざまな大規模言語モデルの回答品質を直感的に比較する方法をご紹介します。 ![](https://assets-docs.dify.ai/2025/02/dd2a54e05cf5bfa252ac980ec478e3d5.png) @@ -19,7 +19,7 @@ Difyのチャットボットタイプのアプリケーションにプリイン ### 1. LLM APIキーの設定 -テストを開始する前に、**「右上」→[「新しいプロバイダーを追加」](../../guides/model-configuration/README.md)** をクリックし、表示される指示に従って、複数のモデルのAPIキーを手動で追加してください。 +テストを開始する前に、**「右上」→[「新しいプロバイダーを追加」](../../guides/model-configuration/README)** をクリックし、表示される指示に従って、複数のモデルのAPIキーを手動で追加してください。 ### 2. アプリケーションの作成 @@ -39,4 +39,4 @@ Difyのチャットボットタイプのアプリケーションにプリイン ![](https://assets-docs.dify.ai/2025/02/03ac1c1da6705d76b01f5867a1e24e32.gif) -詳細や利用に関するご質問は、[複数モデルのデバッグ](../../guides/application-orchestrate/multiple-llms-debugging.md)をご覧ください。 +詳細や利用に関するご質問は、[複数モデルのデバッグ](../../guides/application-orchestrate/multiple-llms-debugging)をご覧ください。 diff --git a/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx b/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx index ffabd264..c7081408 100644 --- a/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx +++ b/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx @@ -22,7 +22,7 @@ Localtunnelを使用して、FastAPIのローカルホストをインターネ - AIチャットボットのテスト用にWhatsAppをインストールしたスマートフォン - Python 3.6+を使用してAPIを構築するためのフレームワークであるFastAPIの基本的な理解 -## 3. Difyの基本的なチャットボットアプリケーションの作成([DifyをWeChatエコシステムに接続する方法](./dify-on-wechat.md)からの抜粋) +## 3. Difyの基本的なチャットボットアプリケーションの作成([DifyをWeChatエコシステムに接続する方法](./dify-on-wechat)からの抜粋) まず、[Dify公式アプリケーションプラットフォーム](https://cloud.dify.ai/signin)にログインします。GithubまたはGoogleのアカウントでログインすることができます。また、Dify公式チュートリアル[Docker Composeによるデプロイ | 日本語 | Dify](/ja-jp/getting-started/install-self-hosted/docker-compose)を参照して、プライベートデプロイを行うことも可能です。Difyはオープンソースプロジェクトであり、プライベートデプロイをサポートしています。 diff --git a/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx.bak b/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx.bak index 335a9d23..1d5ff7df 100644 --- a/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx.bak +++ b/ja-jp/learn-more/use-cases/dify-on-whatsapp.mdx.bak @@ -22,7 +22,7 @@ Localtunnelを使用して、FastAPIのローカルホストをインターネ - AIチャットボットのテスト用にWhatsAppをインストールしたスマートフォン - Python 3.6+を使用してAPIを構築するためのフレームワークであるFastAPIの基本的な理解 -## 3. Difyの基本的なチャットボットアプリケーションの作成([DifyをWeChatエコシステムに接続する方法](./dify-on-wechat.md)からの抜粋) +## 3. Difyの基本的なチャットボットアプリケーションの作成([DifyをWeChatエコシステムに接続する方法](./dify-on-wechat)からの抜粋) まず、[Dify公式アプリケーションプラットフォーム](https://cloud.dify.ai/signin)にログインします。GithubまたはGoogleのアカウントでログインすることができます。また、Dify公式チュートリアル[Docker Composeによるデプロイ | 日本語 | Dify](https://docs.dify.ai/v/ja-jp/getting-started/install-self-hosted/docker-compose)を参照して、プライベートデプロイを行うことも可能です。Difyはオープンソースプロジェクトであり、プライベートデプロイをサポートしています。 diff --git a/ja-jp/learn-more/use-cases/how-to-connect-aws-bedrock.mdx.bak b/ja-jp/learn-more/use-cases/how-to-connect-aws-bedrock.mdx.bak index 0de73659..391c94ba 100644 --- a/ja-jp/learn-more/use-cases/how-to-connect-aws-bedrock.mdx.bak +++ b/ja-jp/learn-more/use-cases/how-to-connect-aws-bedrock.mdx.bak @@ -23,7 +23,7 @@ alt="" ### 2. バックエンドAPIサービスの構築 -Difyプラットフォームは、直接的にAWS Bedrock Knowledge Baseに接続することができません。開発チームは、Difyの外部ナレッジベース接続に関する[API定義](../../guides/knowledge-base/external-knowledge-api-documentation.md)を参照し、バックエンドAPIサービスを手動で構築してAWS Bedrockと接続する必要があります。具体的なアーキテクチャの概要は以下の通りです: +Difyプラットフォームは、直接的にAWS Bedrock Knowledge Baseに接続することができません。開発チームは、Difyの外部ナレッジベース接続に関する[API定義](../../guides/knowledge-base/external-knowledge-api-documentation)を参照し、バックエンドAPIサービスを手動で構築してAWS Bedrockと接続する必要があります。具体的なアーキテクチャの概要は以下の通りです: 金融や法律など、コンプライアンスが重視される業界向けに、Difyは **[DeepSeek + Difyのプライベートデプロイ:独自のAIアシスタントを構築](./private-ai-ollama-deepseek-dify.md)** を提供しています。 +> 金融や法律など、コンプライアンスが重視される業界向けに、Difyは **[DeepSeek + Difyのプライベートデプロイ:独自のAIアシスタントを構築](./private-ai-ollama-deepseek-dify)** を提供しています。 > * DeepSeekモデルとDifyプラットフォームをプライベートネットワークに同期デプロイ > * 完全なデータ主権を保証 @@ -31,7 +31,7 @@ DifyとDeepSeekの連携により、開発者はインフラの複雑さを気 [DeepSeek APIプラットフォーム](https://platform.deepseek.com/)にアクセスし、指示に従ってAPIキーをリクエストしてください。 -> 上記リンクにアクセスできない場合は、DeepSeekのローカルデプロイをご検討ください。詳細については、[ローカルデプロイガイド](./private-ai-ollama-deepseek-dify.md)を参照してください。 +> 上記リンクにアクセスできない場合は、DeepSeekのローカルデプロイをご検討ください。詳細については、[ローカルデプロイガイド](./private-ai-ollama-deepseek-dify)を参照してください。 ### 2. Difyへの登録 @@ -99,4 +99,4 @@ AIアプリの **コンテキスト** 設定で、作成した知識ベースを * [ワークフロー](/ja-jp/guides/workflow/publish) * [ファイルのアップロード](/ja-jp/guides/workflow/file-upload) -* [DeepSeek + DifyをローカルにデプロイしてプライベートAIアシスタントを構築](./private-ai-ollama-deepseek-dify.md) +* [DeepSeek + DifyをローカルにデプロイしてプライベートAIアシスタントを構築](./private-ai-ollama-deepseek-dify) diff --git a/ja-jp/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app.mdx.bak b/ja-jp/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app.mdx.bak index 1e249372..dc7034a2 100644 --- a/ja-jp/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app.mdx.bak +++ b/ja-jp/learn-more/use-cases/integrate-deepseek-to-build-an-ai-app.mdx.bak @@ -17,7 +17,7 @@ title: DeepSeek & Dify連携ガイド - 多段階推論を活用したAIアプ * **インテリジェントチャットボットの開発** - DeepSeek R1の連鎖的思考(chain-of-thought)推論機能を直接活用 * **知識強化型アプリケーションの構築** - プライベートな知識ベースを利用して、正確な情報検索と生成を実現 -> 金融や法律など、コンプライアンスが重視される業界向けに、Difyは **[DeepSeek + Difyのプライベートデプロイ:独自のAIアシスタントを構築](./private-ai-ollama-deepseek-dify.md)** を提供しています。 +> 金融や法律など、コンプライアンスが重視される業界向けに、Difyは **[DeepSeek + Difyのプライベートデプロイ:独自のAIアシスタントを構築](./private-ai-ollama-deepseek-dify)** を提供しています。 > * DeepSeekモデルとDifyプラットフォームをプライベートネットワークに同期デプロイ > * 完全なデータ主権を保証 @@ -31,7 +31,7 @@ DifyとDeepSeekの連携により、開発者はインフラの複雑さを気 [DeepSeek APIプラットフォーム](https://platform.deepseek.com/)にアクセスし、指示に従ってAPIキーをリクエストしてください。 -> 上記リンクにアクセスできない場合は、DeepSeekのローカルデプロイをご検討ください。詳細については、[ローカルデプロイガイド](./private-ai-ollama-deepseek-dify.md)を参照してください。 +> 上記リンクにアクセスできない場合は、DeepSeekのローカルデプロイをご検討ください。詳細については、[ローカルデプロイガイド](./private-ai-ollama-deepseek-dify)を参照してください。 ### 2. Difyへの登録 @@ -99,4 +99,4 @@ AIアプリの **コンテキスト** 設定で、作成した知識ベースを * [ワークフロー](../../guides/workflow) * [ファイルのアップロード](../../guides/workflow/file-upload) -* [DeepSeek + DifyをローカルにデプロイしてプライベートAIアシスタントを構築](./private-ai-ollama-deepseek-dify.md) +* [DeepSeek + DifyをローカルにデプロイしてプライベートAIアシスタントを構築](./private-ai-ollama-deepseek-dify) diff --git a/ja-jp/link-check-report-error.md b/ja-jp/link-check-report-error.md index 6f12c910..4f5fa9c4 100644 --- a/ja-jp/link-check-report-error.md +++ b/ja-jp/link-check-report-error.md @@ -5,7 +5,7 @@ ## 来自 community/contribution.md -* [貢献者ガイド](./community/contribution) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md) ❌ +* [貢献者ガイド](./community/contribution) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README) ❌ ## 来自 development/models-integration/hugging-face.md @@ -13,7 +13,7 @@ ## 来自 development/models-integration/localai.md -* [LocalAIでデプロイしたローカルモデルを統合](./development/models-integration/localai) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md) ❌ +* [LocalAIでデプロイしたローカルモデルを統合](./development/models-integration/localai) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README) ❌ ## 来自 getting-started/install-self-hosted/environments.md diff --git a/ja-jp/link-check-report.md b/ja-jp/link-check-report.md index d30d4707..22953c30 100644 --- a/ja-jp/link-check-report.md +++ b/ja-jp/link-check-report.md @@ -10,7 +10,7 @@ * [特性と技術仕様](./getting-started/readme/features-and-specifications) ✅ * [モデルプロバイダーリスト](./getting-started/readme/model-providers) ✅ | [リクエスト](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [contribution.md](../../community/contribution.md "mention") ❌ * [クラウドサービス](./getting-started/cloud) ✅ | [クラウドサービス](http://cloud.dify.ai) ✅ | [Difyクラウドサービス](https://cloud.dify.ai) ✅ | [アプリケーションを作成](../guides/application-orchestrate/creating-an-application) ✅ | [ここ](https://dify.ai/pricing) ✅ -* [コミュニティ版](./getting-started/install-self-hosted/README) ✅ | [Docker Compose デプロイ](https://docs.dify.ai/v/ja-jp/getting-started/install-self-hosted/docker-compose) ✅ | [ローカルソースコードで起動](https://docs.dify.ai/v/ja-jp/getting-started/install-self-hosted/local-source-code) ✅ | [Dify コミュニティ版](https://github.com/langgenius/dify) ✅ | [寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA.md) ✅ +* [コミュニティ版](./getting-started/install-self-hosted/README) ✅ | [Docker Compose デプロイ](https://docs.dify.ai/v/ja-jp/getting-started/install-self-hosted/docker-compose) ✅ | [ローカルソースコードで起動](https://docs.dify.ai/v/ja-jp/getting-started/install-self-hosted/local-source-code) ✅ | [Dify コミュニティ版](https://github.com/langgenius/dify) ✅ | [寄稿ガイド](https://github.com/langgenius/dify/blob/main/CONTRIBUTING_JA) ✅ * [Docker Compose デプロイ](./getting-started/install-self-hosted/docker-compose) ✅ | [MacにDocker Desktopをインストール](https://docs.docker.com/desktop/mac/install/) ✅ | [Dockerのインストール](https://docs.docker.com/engine/install/) ✅ | [Docker Composeのインストール](https://docs.docker.com/compose/install/) ✅ | [WSL 2バックエンドを使用してWindowsにDocker Desktopをインストール](https://docs.docker.com/desktop/windows/install/#wsl-2-backend) ✅ | [Docker ドキュメント](https://docs.docker.com/compose/#compose-v2-and-the-new-docker-compose-command) ✅ | [よくある質問](./faq) ✅ * [ローカルソースコードで起動](./getting-started/install-self-hosted/local-source-code) ✅ | [MacにDocker Desktopをインストールする](https://docs.docker.com/desktop/mac/install/) ✅ | [Dockerをインストールする](https://docs.docker.com/engine/install/) ✅ | [Docker Composeをインストールする](https://docs.docker.com/compose/install/) ✅ | [WSL 2バックエンドを使用してWindowsにDocker Desktopをインストールする](https://docs.docker.com/desktop/windows/install/#wsl-2-backend) ✅ | [リンク](https://docs.dify.ai/v/ja-jp/learn-more/faq/install-faq#id-15-tekisutomigeniopenai-error-ffmpeg-is-not-installedtoiuergashitano) ✅ | [pyenv](https://github.com/pyenv/pyenv) ✅ | [Poetry](https://python-poetry.org/docs/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org) ✅ | [NPMバージョン8.x.x](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ * [aaPanelでのデプロイ方法](./getting-started/install-self-hosted/bt-panel) ✅ | [aaPanelインストールガイド](https://www.aapanel.com/new/download.html#install) ✅ @@ -22,9 +22,9 @@ ## マニュアル * [モデル](./guides/model-configuration/README) ✅ | [OpenAI](https://platform.openai.com/account/api-keys) ✅ | [Azure OpenAIサービス](https://azure.microsoft.com/en-us/products/ai-services/openai-service/) ❌ | [Anthropic](https://console.anthropic.com/account/keys) ✅ | [讯飞星火](https://www.xfyun.cn/solutions/xinghuoAPI) ✅ | [文心一言](https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application) ✅ | [通义千问](https://dashscope.console.aliyun.com/api-key\_management?spm=a2c4g.11186623.0.0.3bbc424dxZms9k) ✅ | [Minimax](https://api.minimax.chat/user-center/basic-information/interface-key) ✅ | [Jina Embeddings](https://jina.ai/embeddings/) ✅ | [**Rerankモデル**](https://docs.dify.ai/v/ja-jp/learn-more/extended-reading/retrieval-augment/rerank) ✅ | [Jina Reranker](https://jina.ai/reranker) ✅ | [PKCS1\_OAEP](https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html) ✅ | [Hugging Face](./hugging-face) ❌ | [Replicate](./replicate) ❌ | [Xinference](./xinference) ❌ | [OpenLLM](./openllm) ❌ - * [新しいプロバイダーの追加](./guides/model-configuration/new-provider) ✅ | [プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [AIモデルエンティティ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md#aimodelentity) ✅ | [`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md) ✅ | [AnthropicProvider](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/anthropic/anthropic.py) ❌ | [**事前定義モデルの追加**](https://docs.dify.ai/v/ja-jp/guides/model-configuration/predefined-model) ✅ | [**カスタマイズ可能モデルの追加**](https://docs.dify.ai/v/ja-jp/guides/model-configuration/customizable-model) ✅ - * [事前定義されたモデルの追加](./guides/model-configuration/predefined-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces.md) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ - * [カスタムモデルの追加](./guides/model-configuration/customizable-model) ✅ | [インターフェース](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces.md) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ + * [新しいプロバイダーの追加](./guides/model-configuration/new-provider) ✅ | [プロバイダースキーマ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [AIモデルエンティティ](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema.md#aimodelentity) ✅ | [`モデルクレデンシャルスキーマ`](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [YAML設定情報](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/schema) ✅ | [AnthropicProvider](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/anthropic/anthropic.py) ❌ | [**事前定義モデルの追加**](https://docs.dify.ai/v/ja-jp/guides/model-configuration/predefined-model) ✅ | [**カスタマイズ可能モデルの追加**](https://docs.dify.ai/v/ja-jp/guides/model-configuration/customizable-model) ✅ + * [事前定義されたモデルの追加](./guides/model-configuration/predefined-model) ✅ | [Interfaces](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ + * [カスタムモデルの追加](./guides/model-configuration/customizable-model) ✅ | [インターフェース](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/docs/en_US/interfaces) ✅ | [llm.py](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ * [インタフェース](./guides/model-configuration/interfaces) ✅ | [[PromptMessage](#PromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [SystemPromptMessage](#SystemPromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [AssistantPromptMessage](#AssistantPromptMessage) ✅ | [ToolPromptMessage](#ToolPromptMessage) ✅ | [[PromptMessageTool](#PromptMessageTool) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [openai](https://github.com/langgenius/dify-runtime/blob/main/lib/model_providers/anthropic/llm/llm.py) ❌ | [TextEmbeddingResult](#TextEmbeddingResult) ✅ | [RerankResult](#RerankResult) ✅ | [[PromptMessage](#PromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [SystemPromptMessage](#SystemPromptMessage) ✅ | [UserPromptMessage](#UserPromptMessage) ✅ | [AssistantPromptMessage](#AssistantPromptMessage) ✅ | [ToolPromptMessage](#ToolPromptMessage) ✅ | [[PromptMessageTool](#PromptMessageTool) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [[LLMResultChunk](#LLMResultChunk) ✅ | [LLMResult](#LLMResult) ✅ | [TextEmbeddingResult](#TextEmbeddingResult) ✅ | [RerankResult](#RerankResult) ✅ * [配置ルール](./guides/model-configuration/schema) ✅ | [Provider](#Provider) ✅ | [AIModelEntity](#AIModelEntity) ✅ | [[ModelType](#ModelType) ✅ | [[ConfigurateMethod](#ConfigurateMethod) ✅ | [ProviderCredentialSchema](#ProviderCredentialSchema) ✅ | [ModelCredentialSchema](#ModelCredentialSchema) ✅ | [ModelType](#ModelType) ✅ | [[ModelFeature](#ModelFeature) ✅ | [LLMMode](#LLMMode) ✅ | [[ParameterRule](#ParameterRule) ✅ | [PriceConfig](#PriceConfig) ✅ | [[CredentialFormSchema](#CredentialFormSchema) ✅ | [[CredentialFormSchema](#CredentialFormSchema) ✅ | [FormType](#FormType) ✅ | [[FormOption](#FormOption) ✅ | [[FormShowOnObject](#FormShowOnObject) ✅ | [[FormShowOnObject](#FormShowOnObject) ✅ * [負荷分散](./guides/model-configuration/load-balancing) ✅ | [SaaS有料サービスのサブスクリプション](../../getting-started/cloud) ✅ @@ -89,7 +89,7 @@ * [ナレッジベースの要求頻度制限](./guides/knowledge-base/knowledge-request-rate-limit) ✅ * [外部ナレッジベースとの接続](./guides/knowledge-base/connect-external-knowledge-base) ✅ | [AWS Bedrock](https://aws.amazon.com/bedrock/) ✅ | [外部ナレッジベースAPI](./external-knowledge-api-documentation) ✅ | [外部ナレッジベースAPI](./external-knowledge-api-documentation) ✅ | [外部ナレッジベースAPI](./external-knowledge-api-documentation) ✅ | [how-to-connect-aws-bedrock.md](../../learn-more/use-cases/how-to-connect-aws-bedrock.md "mention") ❌ * [外部ナレッジベースAPI](./guides/knowledge-base/external-knowledge-api-documentation) ✅ | [外部ナレッジベースへの接続](https://docs.dify.ai/guides/knowledge-base/connect-external-knowledge-base) ✅ -* [ツール](./guides/tools/README) ✅ | [プラグイン開発](https://docs.dify.ai/ja-jp/plugins/quick-start/install-plugins) ✅ | [Dify開発貢献ドキュメント](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) ✅ | [公式ドキュメント](https://swagger.io/specification/) ✅ | [dify-tools-worker](https://github.com/crazywoola/dify-tools-worker) ✅ +* [ツール](./guides/tools/README) ✅ | [プラグイン開発](https://docs.dify.ai/ja-jp/plugins/quick-start/install-plugins) ✅ | [Dify開発貢献ドキュメント](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) ✅ | [公式ドキュメント](https://swagger.io/specification/) ✅ | [dify-tools-worker](https://github.com/crazywoola/dify-tools-worker) ✅ * [クイック統合ツール](./guides/tools/quick-tool-integration) ✅ | [プラグイン開発](https://docs.dify.ai/ja-jp/plugins/quick-start/develop-plugins) ✅ * [高度統合ツール](./guides/tools/advanced-tool-integration) ✅ | [プラグイン開発](https://docs.dify.ai/ja-jp/plugins/quick-start/develop-plugins) ✅ | [クイック接続](https://docs.dify.ai/v/ja-jp/guides/tools/quick-tool-integration) ✅ * [ツールの設定](./guides/tools/tool-configuration/README) ✅ | [プラグイン開発](https://docs.dify.ai/ja-jp/plugins/quick-start/install-plugins) ✅ | [StableDiffusion](./stable-diffusion) ✅ | [SearXNG](./searxng) ✅ @@ -135,7 +135,7 @@ * [管理](./guides/management/README) ✅ * [アプリの管理](./guides/management/app-management) ✅ | [Difyのアップグレード](https://docs.dify.ai/ja-jp/getting-started/install-self-hosted/docker-compose#upgrade-dify) ✅ * [チームメンバーの管理](./guides/management/team-members-management) ✅ | [環境変数](../../getting-started/install-self-hosted/environments) ✅ - * [個人アカウントの管理](./guides/management/personal-account-management) ✅ | [GitHubリポジトリ](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) ✅ + * [個人アカウントの管理](./guides/management/personal-account-management) ✅ | [GitHubリポジトリ](https://github.com/langgenius/dify/blob/main/CONTRIBUTING) ✅ * [サブスクリプション管理](./guides/management/subscription-management) ✅ | [マーク付き返信](https://docs.dify.ai/v/ja-jp/guides/biao-zhu/logs) ✅ | [Difyの価格設定](https://dify.ai/pricing) ✅ * [バージョン管理](./guides/management/version-control) ✅ @@ -151,7 +151,7 @@ ## コミュニティ * [サポートの求め](./community/support) ✅ | [Github](https://github.com/langgenius/dify) ✅ | [Discord](https://discord.gg/8Tpq4AcN9c) ✅ | [hello@dify.ai](mailto:hello@dify.ai) ✅ -* [貢献者ガイド](./community/contribution) ✅ | [ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE) ✅ | [行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md) ✅ | [既存のイシューを探す](https://github.com/langgenius/dify/issues?q=is:issue+is:closed) ✅ | [作成する](https://github.com/langgenius/dify/issues/new/choose) ✅ | [@perzeusss](https://github.com/perzeuss) ✅ | [機能リクエスト助手](https://udify.app/chat/MK2kVSnw1gakVwMX) ✅ | [@yeuoly](https://github.com/Yeuoly) ✅ | [@jyong](https://github.com/JohnJyong) ✅ | [@GarfieldDai](https://github.com/GarfieldDai) ✅ | [@iamjoel](https://github.com/iamjoel) ✅ | [@zxhlyh](https://github.com/zxhlyh) ✅ | [@guchenhe](https://github.com/guchenhe) ✅ | [@crazywoola](https://github.com/crazywoola) ✅ | [@takatost](https://github.com/takatost) ✅ | [community feedback board](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [Docker](https://www.docker.com/) ✅ | [Docker Compose](https://docs.docker.com/compose/install/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org) ✅ | [npm](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ | [Python](https://www.python.org/) ✅ | [バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README.md) ✅ | [フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README.md) ✅ | [インストールFAQ](https://docs.dify.ai/v/ja-jp/learn-more/faq/install-faq) ✅ | [http://localhost:3000](http://localhost:3000) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README.md) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README.md) ❌ | [Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) ✅ | [Flask](https://flask.palletsprojects.com/en/3.0.x/) ✅ | [SQLAlchemy](https://www.sqlalchemy.org/) ✅ | [Celery](https://docs.celeryq.dev/en/stable/getting-started/introduction.html) ✅ | [Next.js](https://nextjs.org/) ✅ | [Tailwind CSS](https://tailwindcss.com/) ✅ | [React-i18next](https://react.i18next.com/) ✅ | [GitHubのプルリクエストチュートリアル](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests) ✅ | [README](https://github.com/langgenius/dify/blob/main/README_JA.md) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ +* [貢献者ガイド](./community/contribution) ✅ | [ライセンスと貢献者協定](https://github.com/langgenius/dify/blob/main/LICENSE) ✅ | [行動規範](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT) ✅ | [既存のイシューを探す](https://github.com/langgenius/dify/issues?q=is:issue+is:closed) ✅ | [作成する](https://github.com/langgenius/dify/issues/new/choose) ✅ | [@perzeusss](https://github.com/perzeuss) ✅ | [機能リクエスト助手](https://udify.app/chat/MK2kVSnw1gakVwMX) ✅ | [@yeuoly](https://github.com/Yeuoly) ✅ | [@jyong](https://github.com/JohnJyong) ✅ | [@GarfieldDai](https://github.com/GarfieldDai) ✅ | [@iamjoel](https://github.com/iamjoel) ✅ | [@zxhlyh](https://github.com/zxhlyh) ✅ | [@guchenhe](https://github.com/guchenhe) ✅ | [@crazywoola](https://github.com/crazywoola) ✅ | [@takatost](https://github.com/takatost) ✅ | [community feedback board](https://github.com/langgenius/dify/discussions/categories/ideas) ✅ | [Docker](https://www.docker.com/) ✅ | [Docker Compose](https://docs.docker.com/compose/install/) ✅ | [Node.js v18.x (LTS)](http://nodejs.org) ✅ | [npm](https://www.npmjs.com/) ✅ | [Yarn](https://yarnpkg.com/) ✅ | [Python](https://www.python.org/) ✅ | [バックエンドREADME](https://github.com/langgenius/dify/blob/main/api/README) ✅ | [フロントエンドREADME](https://github.com/langgenius/dify/blob/main/web/README) ✅ | [インストールFAQ](https://docs.dify.ai/v/ja-jp/learn-more/faq/install-faq) ✅ | [http://localhost:3000](http://localhost:3000) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README) ✅ | [このガイド](https://github.com/langgenius/dify/blob/main/api/core/tools/README) ❌ | [Dify-docs](https://github.com/langgenius/dify-docs/tree/main/en/guides/tools/tool-configuration) ✅ | [Flask](https://flask.palletsprojects.com/en/3.0.x/) ✅ | [SQLAlchemy](https://www.sqlalchemy.org/) ✅ | [Celery](https://docs.celeryq.dev/en/stable/getting-started/introduction.html) ✅ | [Next.js](https://nextjs.org/) ✅ | [Tailwind CSS](https://tailwindcss.com/) ✅ | [React-i18next](https://react.i18next.com/) ✅ | [GitHubのプルリクエストチュートリアル](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests) ✅ | [README](https://github.com/langgenius/dify/blob/main/README_JA) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ * [ドキュメントへの貢献](./community/docs-contribution) ✅ | [オープンソースプロジェクト](https://github.com/langgenius/dify-docs) ✅ | [Issues ページ](https://github.com/langgenius/dify-docs/issues) ✅ | [Discord](https://discord.com/invite/8Tpq4AcN9c) ✅ ## プラグイン @@ -204,10 +204,10 @@ * [モデルの統合](./development/models-integration/README) ✅ * [Hugging Faceのオープンソースモデルを統合](./development/models-integration/hugging-face) ✅ | [text-generation](https://huggingface.co/models?pipeline\_tag=text-generation\&sort=trending) ✅ | [text2text-generation](https://huggingface.co/models?pipeline\_tag=text2text-generation\&sort=trending) ✅ | [feature-extraction](https://huggingface.co/models?pipeline\_tag=feature-extraction\&sort=trending) ✅ | [登録はこちら](https://huggingface.co/join) ❌ | [取得はこちら](https://huggingface.co/settings/tokens) ✅ | [Hugging Faceのモデル一覧ページ](https://huggingface.co/models) ✅ | [Inference Endpoints](https://huggingface.co/docs/inference-endpoints/guides/access) ✅ | [ユーザー名](https://huggingface.co/settings/account) ✅ | [組織名](https://ui.endpoints.huggingface.co/) ✅ * [Replicateのオープンソースモデルを統合](./development/models-integration/replicate) ✅ | [言語モデル](https://replicate.com/collections/language-models) ✅ | [埋め込みモデル](https://replicate.com/collections/embedding-models) ✅ | [登録ページ](https://replicate.com/signin?next=/docs) ✅ | [取得ページ](https://replicate.com/account/api-tokens) ✅ | [言語モデル](https://replicate.com/collections/language-models) ✅ | [埋め込みモデル](https://replicate.com/collections/embedding-models) ✅ - * [Xinferenceでデプロイしたローカルモデルを統合](./development/models-integration/xinference) ✅ | [Xorbits推論](https://github.com/xorbitsai/inference) ✅ | [ローカルデプロイ](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2) ✅ | [分散デプロイ](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E5%88%86%E5%B8%83%E5%BC%8F%E9%83%A8%E7%BD%B2) ✅ | [Xinference内蔵モデル](https://inference.readthedocs.io/en/latest/models/builtin/index.html) ✅ | [Xinference埋め込みモデル](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E5%86%85%E7%BD%AE%E6%A8%A1%E5%9E%8B) ✅ | [Xorbits推論](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md) ✅ + * [Xinferenceでデプロイしたローカルモデルを統合](./development/models-integration/xinference) ✅ | [Xorbits推論](https://github.com/xorbitsai/inference) ✅ | [ローカルデプロイ](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E6%9C%AC%E5%9C%B0%E9%83%A8%E7%BD%B2) ✅ | [分散デプロイ](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E5%88%86%E5%B8%83%E5%BC%8F%E9%83%A8%E7%BD%B2) ✅ | [Xinference内蔵モデル](https://inference.readthedocs.io/en/latest/models/builtin/index.html) ✅ | [Xinference埋め込みモデル](https://github.com/xorbitsai/inference/blob/main/README_zh_CN.md#%E5%86%85%E7%BD%AE%E6%A8%A1%E5%9E%8B) ✅ | [Xorbits推論](https://github.com/xorbitsai/inference/blob/main/README_zh_CN) ✅ * [OpenLLMでデプロイしたローカルモデルを統合](./development/models-integration/openllm) ✅ | [OpenLLM](https://github.com/bentoml/OpenLLM) ✅ | [サポートされているモデル一覧](https://github.com/bentoml/OpenLLM#-supported-models) ✅ | [OpenLLM](https://github.com/bentoml/OpenLLM) ✅ - * [LocalAIでデプロイしたローカルモデルを統合](./development/models-integration/localai) ✅ | [LocalAI](https://github.com/go-skynet/LocalAI) ✅ | [入門ガイド](https://localai.io/basics/getting_started/) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README.md) ❌ - * [Ollamaでデプロイしたローカルモデルを統合](./development/models-integration/ollama) ✅ | [Ollama](https://github.com/jmorganca/ollama) ✅ | [https://ollama.com/download](https://ollama.com/download) ✅ | [Ollama Models](https://ollama.com/library) ✅ | [FAQ](#faq) ✅ | [Ollama](https://github.com/jmorganca/ollama) ✅ | [Ollama FAQ](https://github.com/ollama/ollama/blob/main/docs/faq.md) ✅ + * [LocalAIでデプロイしたローカルモデルを統合](./development/models-integration/localai) ✅ | [LocalAI](https://github.com/go-skynet/LocalAI) ✅ | [入門ガイド](https://localai.io/basics/getting_started/) ✅ | [LocalAI Data query example](https://github.com/go-skynet/LocalAI/blob/master/examples/langchain-chroma/README) ❌ + * [Ollamaでデプロイしたローカルモデルを統合](./development/models-integration/ollama) ✅ | [Ollama](https://github.com/jmorganca/ollama) ✅ | [https://ollama.com/download](https://ollama.com/download) ✅ | [Ollama Models](https://ollama.com/library) ✅ | [FAQ](#faq) ✅ | [Ollama](https://github.com/jmorganca/ollama) ✅ | [Ollama FAQ](https://github.com/ollama/ollama/blob/main/docs/faq) ✅ * [LiteLLM Proxyを使用してモデルを統合する](./development/models-integration/litellm) ✅ | [LiteLLM Proxy](https://github.com/BerriAI/litellm) ✅ | [LiteLLM構成の設定方法のドキュメント - こちら](https://docs.litellm.ai/docs/proxy/configs) ✅ | [LiteLLM](https://github.com/BerriAI/litellm) ✅ | [LiteLLM Proxyサーバー](https://docs.litellm.ai/docs/simple_proxy) ✅ * [GPUStackとの統合によるローカルモデルのデプロイ](./development/models-integration/gpustack) ✅ | [GPUStack](https://github.com/gpustack/gpustack) ✅ | [ドキュメント](https://docs.gpustack.ai) ✅ | [Github Repo](https://github.com/gpustack/gpustack) ✅ * [AWS Bedrock上のモデル(DeepSeek)の接続](./development/models-integration/aws-bedrock-deepseek) ✅ | [AWS Bedrock マーケットプレイス](https://aws.amazon.com/bedrock/marketplace/) ✅ | [Bedrock](https://aws.amazon.com/bedrock/) ✅ | [Dify.AI アカウント](https://cloud.dify.ai/) ✅ diff --git a/ja-jp/plugins/introduction.mdx.bak b/ja-jp/plugins/introduction.mdx.bak index 14deb39a..c2b7d902 100644 --- a/ja-jp/plugins/introduction.mdx.bak +++ b/ja-jp/plugins/introduction.mdx.bak @@ -33,17 +33,17 @@ alt="" これらのプラグインは、さまざまなAIモデル(主要なLLMプロバイダーやカスタムモデルを含む)を統合し、LLM APIの設定とリクエストを処理します。モデルプラグインの作成の詳細については、[クイックスタート:モデルプラグイン](https://docs.dify.ai/plugins/quick-start/develop-plugins/model-plugin)をご覧ください。 * **ツール** - ツールとは、Chatflow、Workflow、Agentタイプのアプリケーションから呼び出すことができるサードパーティのサービスのことです。Difyアプリケーションの機能を拡張するためのAPI実装を提供します。たとえば、Google検索プラグインの開発については、[クイックスタート:ツールプラグイン](quick-start/develop-plugins/tool-plugin.md)をご参照ください。 + ツールとは、Chatflow、Workflow、Agentタイプのアプリケーションから呼び出すことができるサードパーティのサービスのことです。Difyアプリケーションの機能を拡張するためのAPI実装を提供します。たとえば、Google検索プラグインの開発については、[クイックスタート:ツールプラグイン](quick-start/develop-plugins/tool-plugin)をご参照ください。 * **エージェント戦略** エージェント戦略プラグインは、エージェントノード内の推論および意思決定ロジックを定義します。これには、ツール選択、呼び出し、および結果処理などが含まれます。 -* エージェント戦略プラグインは、エージェントノード内部の推論および意思決定ロジックを定義します。これには、ツールの選択、実行、およびLLMから返された結果の処理ロジックが含まれます。詳細な開発ガイダンスについては、[クイックスタート:エージェント戦略プラグイン](quick-start/develop-plugins/agent-strategy-plugin.md)をご参照ください。 +* エージェント戦略プラグインは、エージェントノード内部の推論および意思決定ロジックを定義します。これには、ツールの選択、実行、およびLLMから返された結果の処理ロジックが含まれます。詳細な開発ガイダンスについては、[クイックスタート:エージェント戦略プラグイン](quick-start/develop-plugins/agent-strategy-plugin)をご参照ください。 * **拡張機能** - よりシンプルなシナリオのエンドポイント機能のみを提供する軽量プラグインで、HTTPサービスを介して迅速な拡張を可能にします。基本的なAPI呼び出しを必要とする簡単な統合に最適です。詳細については、[クイックスタート:拡張機能プラグイン](quick-start/develop-plugins/extension-plugin.md)をご参照ください。 + よりシンプルなシナリオのエンドポイント機能のみを提供する軽量プラグインで、HTTPサービスを介して迅速な拡張を可能にします。基本的なAPI呼び出しを必要とする簡単な統合に最適です。詳細については、[クイックスタート:拡張機能プラグイン](quick-start/develop-plugins/extension-plugin)をご参照ください。 * **バンドル** - 「プラグインバンドル」は、複数のプラグインをまとめたものです。バンドルを使用すると、厳選されたプラグインセットを一度にインストールできます。プラグインを1つずつ追加する手間が省けます。プラグインバンドルの作成の詳細については、[プラグイン開発:バンドルプラグイン](quick-start/develop-plugins/bundle.md)をご覧ください。 + 「プラグインバンドル」は、複数のプラグインをまとめたものです。バンドルを使用すると、厳選されたプラグインセットを一度にインストールできます。プラグインを1つずつ追加する手間が省けます。プラグインバンドルの作成の詳細については、[プラグイン開発:バンドルプラグイン](quick-start/develop-plugins/bundle)をご覧ください。 ### **プラグインの新機能** diff --git a/ja-jp/plugins/publish-plugins/README.mdx b/ja-jp/plugins/publish-plugins/README.mdx index e2a29c66..6da7af2c 100644 --- a/ja-jp/plugins/publish-plugins/README.mdx +++ b/ja-jp/plugins/publish-plugins/README.mdx @@ -66,4 +66,4 @@ title: プラグインの公開 * オープンソースプロジェクトの共有 → GitHubの利用を推奨。バージョン管理とコミュニティコラボレーションが容易です。 * 迅速な配布や内部テスト → プラグインファイルの利用を推奨。簡単かつ効率的なインストールと共有が可能です。 -> Difyマーケットプレイス以外のプラグインをインストールする際、サードパーティの署名検証に関する問題が発生する可能性があります。対処方法については、[第三者署名検証のためにプラグインに署名する](./signing-plugins-for-third-party-signature-verification.md)をご参照ください。 +> Difyマーケットプレイス以外のプラグインをインストールする際、サードパーティの署名検証に関する問題が発生する可能性があります。対処方法については、[第三者署名検証のためにプラグインに署名する](./signing-plugins-for-third-party-signature-verification)をご参照ください。 diff --git a/ja-jp/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx.bak b/ja-jp/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx.bak index 165c47fa..8f9e0d1a 100644 --- a/ja-jp/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx.bak +++ b/ja-jp/plugins/publish-plugins/publish-to-dify-marketplace/plugin-developer-guidelines.mdx.bak @@ -12,7 +12,7 @@ title: プラグイン開発者ガイドライン * セットアップと使用方法の説明 * プラグインをサービスに接続するためのコード、API、認証情報などの情報 * 収集したユーザー情報は、サービスの接続とプラグインの改善のみに利用することを徹底してください。 -* [プラグインプライバシー保護ガイドライン](plugin-developer-guidelines.md)に従って、プラグインのプライバシーポリシーファイルまたはURLを用意してください。 +* [プラグインプライバシー保護ガイドライン](plugin-developer-guidelines)に従って、プラグインのプライバシーポリシーファイルまたはURLを用意してください。 2. **プラグインの提案価値を検証する** diff --git a/ja-jp/plugins/quick-start/develop-plugins/README.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/README.mdx.bak index 3b07812e..c4d549c3 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/README.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/README.mdx.bak @@ -38,28 +38,28 @@ Extensionプラグインにより、開発者はビジネスロジックをプ プラグインの詳細なインターフェース仕様が必要な場合は、以下の標準仕様書を参照してください: -1. [一般的な構造の標準定義](../../schema-definition/general-specifications.md) -2. [マニフェストの標準定義](../../schema-definition/manifest.md) -3. [ツールとの接続の標準定義](../../schema-definition/tool.md) +1. [一般的な構造の標準定義](../../schema-definition/general-specifications) +2. [マニフェストの標準定義](../../schema-definition/manifest) +3. [ツールとの接続の標準定義](../../schema-definition/tool) 4. [モデルとの接続の標準定義](../../schema-definition/model/) -5. [エンドポイントの標準定義](../../schema-definition/endpoint.md) -6. [拡張エージェント策略](../../schema-definition/agent.md) +5. [エンドポイントの標準定義](../../schema-definition/endpoint) +6. [拡張エージェント策略](../../schema-definition/agent) 7. Difyサービスの逆呼び出し機能 1. [アプリ](../../schema-definition/reverse-invocation-of-the-dify-service/app.md "mention")の逆呼び出し 2. [モデル](../../schema-definition/reverse-invocation-of-the-dify-service/model.md "mention")の逆呼び出し 3. [ノード](../../schema-definition/reverse-invocation-of-the-dify-service/node.md "mention")の逆呼び出し 4. [ツール](../../schema-definition/reverse-invocation-of-the-dify-service/tool.md "mention")の逆呼び出し -8. [プラグインの永続化されたストレージ機能](../../schema-definition/persistent-storage.md) +8. [プラグインの永続化されたストレージ機能](../../schema-definition/persistent-storage) ### 貢献ガイド Difyプラグインにコードや機能を提供し、公式プラグインに貢献したいとお考えですか?開発者がプラグインの開発と貢献のプロセスをスムーズに理解し、参加できるように、詳細なガイドを用意しています: -* [マーケットプレイスの公開ガイド](../../publish-plugins/publish-to-dify-marketplace.md) +* [マーケットプレイスの公開ガイド](../../publish-plugins/publish-to-dify-marketplace) あなたのプラグインを Dify Marketplace に公開し、多くの開発者と成果を共有する方法についてご案内します。 -* [GitHub での公開ガイド](../../publish-plugins/publish-plugin-on-personal-github-repo.md) +* [GitHub での公開ガイド](../../publish-plugins/publish-plugin-on-personal-github-repo) GitHub でプラグインを公開・管理する方法を学び、プラグインの継続的な最適化とコミュニティとの協力を促進します。 diff --git a/ja-jp/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx b/ja-jp/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx index f9c2e947..695969df 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx @@ -11,7 +11,7 @@ title: エージェント戦略プラグイン * Difyプラグインの足場ツール * Python環境(バージョン3.12以上) -プラグイン開発の足場ツールを準備する方法については、[開発ツールの初期化](initialize-development-tools.md)を参照してください。 +プラグイン開発の足場ツールを準備する方法については、[開発ツールの初期化](initialize-development-tools)を参照してください。 **ヒント**:ターミナルで `dify version` コマンドを実行し、バージョン番号が表示されることを確認することで、足場ツールが正常にインストールされたことを確認できます。 @@ -1163,7 +1163,7 @@ dify plugin package ./basic_agent/ ### プラグインの公開(オプション) -作成したプラグインは、[Dify Plugins コードリポジトリ](https://github.com/langgenius/dify-plugins)にアップロードして公開できます。アップロードする前に、プラグインが[プラグイン公開規約](../../publish-plugins/publish-to-dify-marketplace.md)に準拠していることをご確認ください。審査に合格すると、コードはメインブランチにマージされ、[Dify Marketplace](https://marketplace.dify.ai/)に自動的に公開されます。 +作成したプラグインは、[Dify Plugins コードリポジトリ](https://github.com/langgenius/dify-plugins)にアップロードして公開できます。アップロードする前に、プラグインが[プラグイン公開規約](../../publish-plugins/publish-to-dify-marketplace)に準拠していることをご確認ください。審査に合格すると、コードはメインブランチにマージされ、[Dify Marketplace](https://marketplace.dify.ai/)に自動的に公開されます。 ### さらに詳しく diff --git a/ja-jp/plugins/quick-start/develop-plugins/bundle.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/bundle.mdx.bak index 1961720d..6c88442e 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/bundle.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/bundle.mdx.bak @@ -16,7 +16,7 @@ Dify CLIツールを使用すると、複数のプラグインをバンドルと * Difyプラグインのひな形ツール * Python環境(バージョン3.10以上) -プラグイン開発のひな形ツールを準備する方法の詳細については、「[開発ツールの初期化](initialize-development-tools.md)」を参照してください。 +プラグイン開発のひな形ツールを準備する方法の詳細については、「[開発ツールの初期化](initialize-development-tools)」を参照してください。 ### バンドルプロジェクトの作成 diff --git a/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx b/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx index acb5aa04..9708d2b2 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx @@ -113,7 +113,7 @@ extra: プラグインの機能実装コードを`endpoints/test_plugin.py`ファイルに記述します。以下のサンプルコードを参考にしてください。 -```python +```python [expandable] from typing import Mapping from werkzeug import Request, Response from flask import Flask, render_template_string diff --git a/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx.bak index a1e15ad9..2d8a4966 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/extension-plugin.mdx.bak @@ -10,7 +10,7 @@ title: 拡張機能型プラグイン * Difyプラグインの足場ツール * Python環境、バージョン番号 ≥ 3.12 -プラグイン開発の足場ツールの準備方法については、[開発ツールの初期化](initialize-development-tools.md)を参照してください。 +プラグイン開発の足場ツールの準備方法については、[開発ツールの初期化](initialize-development-tools)を参照してください。 ### 新規プロジェクトの作成 @@ -261,19 +261,19 @@ dify plugin package ./neko **クイックスタート:** -* [バンドルタイププラグイン:複数のプラグインをまとめる](bundle.md) -* [ツールタイププラグイン:Google検索](tool-plugin.md) +* [バンドルタイププラグイン:複数のプラグインをまとめる](bundle) +* [ツールタイププラグイン:Google検索](tool-plugin) * [モデルタイププラグイン](model/) **プラグインインターフェースドキュメント:** -* [マニフェスト](../../schema-definition/manifest.md)構造 -* [エンドポイント](../../schema-definition/endpoint.md)詳細定義 +* [マニフェスト](../../schema-definition/manifest)構造 +* [エンドポイント](../../schema-definition/endpoint)詳細定義 * [Dify機能の逆呼び出し](../../schema-definition/reverse-invocation-of-the-dify-service/) -* [ツール](../../schema-definition/tool.md) +* [ツール](../../schema-definition/tool) * [モデル](../../schema-definition/model/) -* [拡張エージェント戦略](../../schema-definition/agent.md) +* [拡張エージェント戦略](../../schema-definition/agent) **ベストプラクティス:** -[Slack Botプラグインの開発](../../best-practice/develop-a-slack-bot-plugin.md) \ No newline at end of file +[Slack Botプラグインの開発](../../best-practice/develop-a-slack-bot-plugin) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/README.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/README.mdx.bak index f174e375..b6216c53 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/README.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/README.mdx.bak @@ -66,6 +66,6 @@ OpenAIを例にとると、複数のモデルタイプをサポートしてい モデルプラグインを作成するには、以下の手順に従ってください。具体的な作成ガイドは、各ドキュメントのタイトルをクリックして参照してください。 -1. [モデルプロバイダーの作成](create-model-providers.md) -2. [事前定義済み](../../../guides/model-configuration/predefined-model.md)モデル、または[カスタム](../../../guides/model-configuration/customizable-model.md)モデルの統合 -3. [モデルプラグインのデバッグ](../../debug-plugin.md) \ No newline at end of file +1. [モデルプロバイダーの作成](create-model-providers) +2. [事前定義済み](../../../guides/model-configuration/predefined-model)モデル、または[カスタム](../../../guides/model-configuration/customizable-model)モデルの統合 +3. [モデルプラグインのデバッグ](../../debug-plugin) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx.bak index c49471f4..d2a03e0f 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/create-model-providers.mdx.bak @@ -9,7 +9,7 @@ Modelタイプのプラグインを作成する最初のステップは、プラ * Difyプラグインのスキャフォールディングツール * Python環境(バージョン3.12以上) -プラグイン開発用のスキャフォールディングツールの準備方法については、[開発ツールの初期化](../initialize-development-tools.md)を参照してください。 +プラグイン開発用のスキャフォールディングツールの準備方法については、[開発ツールの初期化](../initialize-development-tools)を参照してください。 ### 新規プロジェクトの作成 @@ -169,7 +169,7 @@ model_credential_schema: en_US: Enter your API Base ``` -より詳細なモデルプロバイダーYAMLの仕様については、[モデルインターフェースドキュメント](../../../schema-definition/model/model-schema.md)を参照してください。 +より詳細なモデルプロバイダーYAMLの仕様については、[モデルインターフェースドキュメント](../../../schema-definition/model/model-schema)を参照してください。 #### 2. **モデルプロバイダーコードの記述** @@ -241,5 +241,5 @@ class XinferenceProvider(Provider): モデルプロバイダーを初期化した後、プロバイダーが提供する具体的なLLMモデルを接続する必要があります。詳細については、以下を参照してください。 -* [定義済みモデルの接続](../../../../guides/model-configuration/predefined-model.md) -* [カスタムモデルの接続](../../../../guides/model-configuration/customizable-model.md) \ No newline at end of file +* [定義済みモデルの接続](../../../../guides/model-configuration/predefined-model) +* [カスタムモデルの接続](../../../../guides/model-configuration/customizable-model) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx index 0ed12329..7066b8c9 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx @@ -332,7 +332,7 @@ def _invoke_error_mapping(self) -> dict[type[InvokeError], list[type[Exception]] **クイックスタート:** * [拡張タイププラグインの開発](/ja-jp/plugins/quick-start/develop-plugins/extension-plugin) -* [モデルタイププラグインの開発](README.md) +* [モデルタイププラグインの開発](README) * [バンドルタイププラグイン:複数のプラグインをパッケージ化](/ja-jp/plugins/quick-start/develop-plugins/bundle) **プラグインインターフェースドキュメント:** diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx.bak index 99856b10..7ef08561 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/customizable-model.mdx.bak @@ -210,7 +210,7 @@ def validate_credentials(self, model: str, credentials: dict) -> None: * **モデルパラメータのスキーマ** - [事前定義されたモデルタイプ](integrate-the-predefined-model.md)とは異なり、YAMLファイルにモデルがサポートするパラメータが事前に定義されていないため、モデルパラメータのスキーマを動的に生成する必要があります。 + [事前定義されたモデルタイプ](integrate-the-predefined-model)とは異なり、YAMLファイルにモデルがサポートするパラメータが事前に定義されていないため、モデルパラメータのスキーマを動的に生成する必要があります。 例えば、Xinferenceは`max_tokens`、`temperature`、`top_p`の3つのモデルパラメータをサポートしています。ただし、サプライヤによっては、モデルごとに異なるパラメータをサポートする場合があります(例:OpenLLM)。 @@ -331,15 +331,15 @@ def _invoke_error_mapping(self) -> dict[type[InvokeError], list[type[Exception]] **クイックスタート:** -* [拡張タイププラグインの開発](../extension-plugin.md) -* [モデルタイププラグインの開発](README.md) -* [バンドルタイププラグイン:複数のプラグインをパッケージ化](../bundle.md) +* [拡張タイププラグインの開発](../extension-plugin) +* [モデルタイププラグインの開発](README) +* [バンドルタイププラグイン:複数のプラグインをパッケージ化](../bundle) **プラグインインターフェースドキュメント:** -* [マニフェスト](../../../schema-definition/manifest.md) 構造 -* [エンドポイント](../../../schema-definition/endpoint.md) 詳細定義 +* [マニフェスト](../../../schema-definition/manifest) 構造 +* [エンドポイント](../../../schema-definition/endpoint) 詳細定義 * [Difyサービスの逆呼び出し](../../../schema-definition/reverse-invocation-of-the-dify-service/) -* [ツール](../../../schema-definition/tool.md) +* [ツール](../../../schema-definition/tool) * [モデル](../../../schema-definition/model/) -* [拡張エージェント戦略](../../../schema-definition/agent.md) \ No newline at end of file +* [拡張エージェント戦略](../../../schema-definition/agent) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx index eafbe9c4..1433bc12 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx @@ -265,7 +265,7 @@ REMOTE_INSTALL_KEY=****-****-****-****-**** **クイックスタート:** * [拡張タイププラグインの開発](/ja-jp/plugins/quick-start/develop-plugins/extension-plugin) -* [モデルタイププラグインの開発](README.md) +* [モデルタイププラグインの開発](README) * [バンドルタイププラグイン:複数のプラグインをパッケージ化](/ja-jp/plugins/quick-start/develop-plugins/bundle) **プラグインインターフェースドキュメント:** diff --git a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx.bak index 7a88206a..22385845 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/model-plugin/integrate-the-predefined-model.mdx.bak @@ -2,7 +2,7 @@ title: 定義済みモデルの組み込み --- -[モデルプロバイダーの作成](create-model-providers.md)が完了していることを確認してください。事前定義済みモデルを組み込むには、以下の手順に従います。 +[モデルプロバイダーの作成](create-model-providers)が完了していることを確認してください。事前定義済みモデルを組み込むには、以下の手順に従います。 1. **モデルタイプに応じたモジュール構造の作成** @@ -83,7 +83,7 @@ title: 定義済みモデルの組み込み │ │ └── tts.py ``` -すべてのモデル設定を準備してから、モデルコードの実装を開始することをお勧めします。完全なYAMLの記述規則については、[モデル設計規則](../../../schema-definition/model/model-designing-rules.md)を参照してください。詳細なコードについては、[Githubコードリポジトリ](https://github.com/langgenius/dify-official-plugins/tree/main/models)の例を参照してください。 +すべてのモデル設定を準備してから、モデルコードの実装を開始することをお勧めします。完全なYAMLの記述規則については、[モデル設計規則](../../../schema-definition/model/model-designing-rules)を参照してください。詳細なコードについては、[Githubコードリポジトリ](https://github.com/langgenius/dify-official-plugins/tree/main/models)の例を参照してください。 ### 2. **モデル呼び出しコードの記述** @@ -264,15 +264,15 @@ REMOTE_INSTALL_KEY=****-****-****-****-**** **クイックスタート:** -* [拡張タイププラグインの開発](../extension-plugin.md) -* [モデルタイププラグインの開発](README.md) -* [バンドルタイププラグイン:複数のプラグインをパッケージ化](../bundle.md) +* [拡張タイププラグインの開発](../extension-plugin) +* [モデルタイププラグインの開発](README) +* [バンドルタイププラグイン:複数のプラグインをパッケージ化](../bundle) **プラグインインターフェースドキュメント:** -* [マニフェスト](../../../schema-definition/manifest.md) 構造 -* [エンドポイント](../../../schema-definition/endpoint.md) 詳細定義 +* [マニフェスト](../../../schema-definition/manifest) 構造 +* [エンドポイント](../../../schema-definition/endpoint) 詳細定義 * [Difyサービスの逆呼び出し](../../../schema-definition/reverse-invocation-of-the-dify-service/) -* [ツール](../../../schema-definition/tool.md) +* [ツール](../../../schema-definition/tool) * [モデル](../../../schema-definition/model/) -* [拡張エージェント戦略](../../../schema-definition/agent.md) \ No newline at end of file +* [拡張エージェント戦略](../../../schema-definition/agent) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx b/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx index 4ae42537..c8bf5cf3 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx @@ -50,7 +50,7 @@ dify plugin init プラグインには、ツール、モデル、そしてエクステンションの3種類があります。SDK内のすべてのテンプレートには、完全なコードプロジェクトが付属しています。以下の部分では、**ツールプラグイン**テンプレートを例として使用します。 -> プラグイン開発に精通されている方は、各種プラグインの実装にあたり、[スキーマ仕様](../../schema-definition/README.md)をご参照ください。 +> プラグイン開発に精通されている方は、各種プラグインの実装にあたり、[スキーマ仕様](../../schema-definition/README)をご参照ください。 ![プラグインタイプ: ツール](https://assets-docs.dify.ai/2024/12/dd3c0f9a66454e15868eabced7b74fd6.png) diff --git a/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx.bak b/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx.bak index 9ca08442..dfa2f725 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx.bak +++ b/ja-jp/plugins/quick-start/develop-plugins/tool-plugin.mdx.bak @@ -28,7 +28,7 @@ alt="" * Dify プラグインの Scaffolding(スキャフォールディング)ツール * Python 環境 (バージョン 3.12 以上) -プラグイン開発用のScaffoldingツールの準備方法については、[初期化開発ツール](initialize-development-tools.md)をご参照ください。 +プラグイン開発用のScaffoldingツールの準備方法については、[初期化開発ツール](initialize-development-tools)をご参照ください。 ### 新規プロジェクトの作成 @@ -50,7 +50,7 @@ dify plugin init プラグインには、ツール、モデル、そしてエクステンションの3種類があります。SDK内のすべてのテンプレートには、完全なコードプロジェクトが付属しています。以下の部分では、**ツールプラグイン**テンプレートを例として使用します。 -> プラグイン開発に精通されている方は、各種プラグインの実装にあたり、[スキーマ仕様](../../schema-definition/README.md)をご参照ください。 +> プラグイン開発に精通されている方は、各種プラグインの実装にあたり、[スキーマ仕様](../../schema-definition/README)をご参照ください。 ![プラグインタイプ: ツール](https://assets-docs.dify.ai/2024/12/dd3c0f9a66454e15868eabced7b74fd6.png) @@ -298,7 +298,7 @@ class GoogleSearchTool(Tool): yield self.create_json_message(valuable_res) ``` -この例では、`serpapi` にリクエストを送信し、`self.create_json_message` を使用して `json` 形式のデータを返しています。その他の戻り値の型については、[ツールインターフェースドキュメント](../../schema-definition/tool.md)を参照してください。 +この例では、`serpapi` にリクエストを送信し、`self.create_json_message` を使用して `json` 形式のデータを返しています。その他の戻り値の型については、[ツールインターフェースドキュメント](../../schema-definition/tool)を参照してください。 #### 4. ツールプロバイダーコードの作成 @@ -373,15 +373,15 @@ dify plugin package ./google **クイックスタート:** -* [拡張タイププラグインの開発](extension-plugin.md) +* [拡張タイププラグインの開発](extension-plugin) * [モデルタイププラグインの開発](model-plugin/) -* [バンドルタイププラグイン:複数のプラグインをパッケージ化](bundle.md) +* [バンドルタイププラグイン:複数のプラグインをパッケージ化](bundle) **プラグインインターフェースドキュメント:** -* [マニフェスト](../../schema-definition/manifest.md) 構造 -* [エンドポイント](../../schema-definition/endpoint.md) 詳細定義 +* [マニフェスト](../../schema-definition/manifest) 構造 +* [エンドポイント](../../schema-definition/endpoint) 詳細定義 * [Difyサービスの逆呼び出し](../../schema-definition/reverse-invocation-of-the-dify-service/) -* [ツール](../../schema-definition/tool.md) +* [ツール](../../schema-definition/tool) * [モデル](../../schema-definition/model/) -* [拡張エージェント戦略](../../schema-definition/agent.md) \ No newline at end of file +* [拡張エージェント戦略](../../schema-definition/agent) \ No newline at end of file diff --git a/ja-jp/plugins/quick-start/install-plugins.mdx.bak b/ja-jp/plugins/quick-start/install-plugins.mdx.bak index 338d2ca2..c3412e94 100644 --- a/ja-jp/plugins/quick-start/install-plugins.mdx.bak +++ b/ja-jp/plugins/quick-start/install-plugins.mdx.bak @@ -25,7 +25,7 @@ alt="" ### GitHub -GitHubのリポジトリリンクを使用して、直接プラグインをインストールすることもできます。この方法でインストールする際は、プラグインがコードの基準を満たしているか確認することが大切です。プラグインのリポジトリはリリースを作成し、プラグインのパッケージファイルを添付する必要があります。詳細は、[プラグインの公開:GitHub](../publish-plugins/publish-plugin-on-personal-github-repo.md)をご覧ください。 +GitHubのリポジトリリンクを使用して、直接プラグインをインストールすることもできます。この方法でインストールする際は、プラグインがコードの基準を満たしているか確認することが大切です。プラグインのリポジトリはリリースを作成し、プラグインのパッケージファイルを添付する必要があります。詳細は、[プラグインの公開:GitHub](../publish-plugins/publish-plugin-on-personal-github-repo)をご覧ください。  著者: Steven Lynn。Difyのテクニカルライター。 -前回の実験[AI画像生成アプリの構築方法](build-ai-image-generation-app.md)では、エージェントの概念を初めて理解し、システムのプロンプトワードを試してみました。 +前回の実験[AI画像生成アプリの構築方法](build-ai-image-generation-app)では、エージェントの概念を初めて理解し、システムのプロンプトワードを試してみました。 今回は、エージェントのプロンプトワードをさらに深く探求し、より体系的なプロンプトワードの書き方を学んでいきます。 @@ -19,7 +19,7 @@ title: AIエージェントの実践:個人のオンライン旅行アシス エージェントを新しく作成する前に、以下の手順を完了させてください: -* [Dify](https://dify.ai)に登録とログインします。ローカルに展開したい場合は、[コミュニティ版 - Docker Composeデプロイ](../../getting-started/install-self-hosted/docker-compose.md)を参照してください。 +* [Dify](https://dify.ai)に登録とログインします。ローカルに展開したい場合は、[コミュニティ版 - Docker Composeデプロイ](../../getting-started/install-self-hosted/docker-compose)を参照してください。 * 少なくとも1つのモデルプロバイダを設定します(Difyは200回のOpenAIメッセージクレジットを提供していますが、実験を円滑に進行させるためには、独自にLLMのAPIキーを設定することをお勧めします)。 ### 2. ツールの設定 diff --git a/ja-jp/workshop/intermediate/article-reader.mdx.bak b/ja-jp/workshop/intermediate/article-reader.mdx.bak index 95dbc5ce..0b5cf0bb 100644 --- a/ja-jp/workshop/intermediate/article-reader.mdx.bak +++ b/ja-jp/workshop/intermediate/article-reader.mdx.bak @@ -29,7 +29,7 @@ DifyでChatflowを作成し、モデルプロバイダーを追加して、十 開始ノードでは、ファイル変数を追加する必要があります。Difyの0.10.0バージョンでは、ファイルのアップロード機能をサポートしており、ファイルを変数として追加できます。 -ファイルのアップロードに関する詳細なドキュメントは、こちらを参照してください:[ファイルアップロード](../../guides/workflow/file-upload.md) +ファイルのアップロードに関する詳細なドキュメントは、こちらを参照してください:[ファイルアップロード](../../guides/workflow/file-upload) 開始ノードにファイル変数を追加し、サポートされているファイルタイプの中でドキュメントにチェックを入れる必要があります。 diff --git a/scripts/doc_migration_helper.py b/scripts/doc_migration_helper.py index 52684902..d1c44ed5 100644 --- a/scripts/doc_migration_helper.py +++ b/scripts/doc_migration_helper.py @@ -90,7 +90,7 @@ class DocMigrationHelper: # 收集可能的路径 potential_paths = [] - # 处理文件扩展名 (.mdx -> .md) + # 处理文件扩展名 (.mdx -> ) rest_path = os.path.join(*parts[1:]) if rest_path.endswith(".mdx"): rest_path = rest_path[:-4] + ".md" @@ -489,7 +489,7 @@ class DocMigrationHelper: changes.append((full_match, new_text, 'Frame组件图片')) # 3. 查找并替换文档引用链接 - # [link text](./path/to/file.md) 或 [link text](path/to/file.md) + # [link text](./path/to/file) 或 [link text](path/to/file) doc_link_pattern = re.compile(r'\[([^\]]+)\]\((\./[^)]+\.md(?:#[^)]*)?|\.\./[^)]+\.md(?:#[^)]*)?|[^)]+\.md(?:#[^)]*)?)\)') for match in doc_link_pattern.finditer(content): link_text = match.group(1) diff --git a/scripts/fix_markdown_links.py b/scripts/fix_markdown_links.py index 83b6f038..3c501535 100644 --- a/scripts/fix_markdown_links.py +++ b/scripts/fix_markdown_links.py @@ -2,7 +2,7 @@ """ This script automatically fixes relative path references in Markdown files. It searches for links to .md and .mdx files and replaces them with the correct format -for Mintlify documentation, changing links like [text](file.md) or [text](file.mdx) to [text](./file). +for Mintlify documentation, changing links like [text](file) or [text](file.mdx) to [text](./file). 使用方法: 1. 在命令行中运行: python fix_markdown_links.py [directory] diff --git a/zh-hans/community/docs-contribution.mdx b/zh-hans/community/docs-contribution.mdx index 45fe804f..ac21da76 100644 --- a/zh-hans/community/docs-contribution.mdx +++ b/zh-hans/community/docs-contribution.mdx @@ -41,6 +41,34 @@ git clone https://github.com//dify-docs.git 提交 pull request 时,请使用 `Docs: add xxx` 的格式,并在描述栏内简单说明文档的大致内容,我们在收到请求后进行 review,无误后将合并你的修改。 +### 最佳实践 + +我们非常欢迎你分享使用 Dify 搭建的创新应用案例!为了帮助社区成员更好地理解和复现你的实践经验,建议按照以下框架来组织内容: + +```text +1. 项目简介 + - 应用场景和解决的问题 + - 核心功能和特点介绍 + - 最终效果展示 + +2. 项目原理/流程介绍 + +3. 前置准备(如有) + - 所需资源清单 + - 工具依赖要求 + +4. Dify 平台实践步骤(参考) + - 应用创建和基础配置 + - 应用流程搭建详解 + - 关键节点配置说明 + +5. 常见问题 +``` + +> 为了便于用户理解,建议为文章添加必要说明截图。请以在线图床链接的形式提交图片内容。 + +我们期待你的精彩分享,一起助力 Dify 社区的知识积累! + ## 获取帮助 如果你在贡献过程中遇到困难或者有任何问题,可以通过相关的 GitHub 问题提出你的疑问,或者加入我们的 [Discord](https://discord.com/invite/8Tpq4AcN9c) 进行快速交流。 diff --git a/zh-hans/development/backend/sandbox/README.mdx b/zh-hans/development/backend/sandbox/README.mdx index 8fa54ed2..d408d7a5 100644 --- a/zh-hans/development/backend/sandbox/README.mdx +++ b/zh-hans/development/backend/sandbox/README.mdx @@ -69,7 +69,7 @@ DifySandbox 已预先配置了以下 Python 依赖: 若需要额外的 Python 依赖,请遵循以下步骤 1. 找到项目根目录下的 `dependencies/python-requirements.txt` 文件。 -2. 在文件中添加所需的依赖包名及版本。若涉及权限变更,请参考[常见问题](https://github.com/langgenius/dify-sandbox/blob/main/FAQ.md)。 +2. 在文件中添加所需的依赖包名及版本。若涉及权限变更,请参考[常见问题](https://github.com/langgenius/dify-sandbox/blob/main/FAQ)。 3. 重新构建 DifySandbox。 diff --git a/zh-hans/getting-started/cloud.mdx b/zh-hans/getting-started/cloud.mdx index 06e670f8..cee84b27 100644 --- a/zh-hans/getting-started/cloud.mdx +++ b/zh-hans/getting-started/cloud.mdx @@ -12,7 +12,7 @@ title: 云服务 1. 注册 [Dify 云服务](https://cloud.dify.ai) 并创建一个新的工作区(Workspace),或加入已有的工作区。 2. 配置你的模型提供商或使用我们托管的模型提供商。 -3. 现在你可以 [创建应用](../guides/application-orchestrate/creating-an-application.md) 了! +3. 现在你可以 [创建应用](../guides/application-orchestrate/creating-an-application) 了! ### 常见问题 diff --git a/zh-hans/getting-started/install-self-hosted/environments.mdx b/zh-hans/getting-started/install-self-hosted/environments.mdx index ed90f002..86412ada 100644 --- a/zh-hans/getting-started/install-self-hosted/environments.mdx +++ b/zh-hans/getting-started/install-self-hosted/environments.mdx @@ -1,404 +1,611 @@ --- -title: 环境变量说明 +title: 环境变量说明 (待处理) --- 本文档可能未及时更新,请优先参考最新的配置文件: - [docker-compose.yaml](https://github.com/langgenius/dify/blob/5f8d20b5b2bb51f19547467167b18d9c0f6ffbb8/docker/docker-compose.yaml) + - [.env.example](https://github.com/langgenius/dify/blob/5f8d20b5b2bb51f19547467167b18d9c0f6ffbb8/docker/.env.example) - + -本文档详细说明了 Dify 自托管安装时可配置的环境变量。这些配置项在 `.env` 文件中设置,您可以基于 `.env.example` 文件进行修改。 +### 公共变量 -## 通用配置 +#### CONSOLE_API_URL -这些变量影响 Dify 的基本功能和服务地址。 +控制台 API 后端 URL,用于拼接授权回调,传空则为同域。范例:`https://api.console.dify.ai`。 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `CONSOLE_API_URL` | 控制台 API 的后端 URL,用于拼接授权回调地址。如果为空,则使用相同域名。 | 空 | -| `CONSOLE_WEB_URL` | 控制台 Web 的前端 URL,用于拼接前端地址和配置 CORS。如果为空,则使用相同域名。 | 空 | -| `SERVICE_API_URL` | 服务 API URL,用于在前端显示服务 API 基础 URL。如果为空,则使用相同域名。 | 空 | -| `APP_API_URL` | WebApp API 后端 URL,用于声明前端 API 的后端 URL。如果为空,则使用相同域名。 | 空 | -| `APP_WEB_URL` | WebApp URL,用于在前端显示 WebApp API 基础 URL。如果为空,则使用相同域名。 | 空 | -| `FILES_URL` | 文件预览或下载 URL 前缀,用于在前端显示文件预览或下载 URL,或作为多模型输入。URL 是签名的并具有过期时间。 | 空 | +#### CONSOLE_WEB_URL -## 服务器配置 +控制台 web **前端** URL,用于拼接部分前端地址,以及 CORS 配置使用,传空则为同域。范例:`https://console.dify.ai` -控制 Dify 服务器的基本行为。 +#### SERVICE_API_URL -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `LOG_LEVEL` | 应用程序的日志级别。支持的值为 `DEBUG`、`INFO`、`WARNING`、`ERROR`、`CRITICAL`。 | `INFO` | -| `LOG_FILE` | 日志文件路径 | `/app/logs/server.log` | -| `LOG_FILE_MAX_SIZE` | 日志文件最大大小,单位为 MB | `20` | -| `LOG_FILE_BACKUP_COUNT` | 日志文件最大备份数量 | `5` | -| `LOG_DATEFORMAT` | 日志日期格式 | `%Y-%m-%d %H:%M:%S` | -| `LOG_TZ` | 日志时区 | `UTC` | -| `DEBUG` | 调试模式,默认为 false。建议在本地开发时打开此配置,以防止由猴子补丁引起的一些问题。 | `false` | -| `FLASK_DEBUG` | Flask 调试模式,开启后可以在接口处输出跟踪信息,方便调试。 | `false` | -| `SECRET_KEY` | 用于安全签署会话 cookie 和加密数据库上的敏感信息的密钥。可以使用 `openssl rand -base64 42` 生成强密钥。 | `sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U` | -| `INIT_PASSWORD` | 管理员用户初始化密码。如果不设置,创建初始管理员账户时将不会提示输入密码。密码长度不能超过 30 个字符。 | 空 | -| `DEPLOY_ENV` | 部署环境。支持的值为 `PRODUCTION`、`TESTING`。默认为 `PRODUCTION`。测试环境下,前端页面上将有明显的颜色标签,表明此环境是测试环境。 | `PRODUCTION` | -| `CHECK_UPDATE_URL` | 是否启用版本检查策略。如果设置为空,将调用 https://updates.dify.ai 进行版本检查。 | `https://updates.dify.ai` | -| `OPENAI_API_BASE` | 用于更改 OpenAI 基础地址,默认为 https://api.openai.com/v1。当在中国无法访问 OpenAI 时,可替换为国内镜像地址,或当本地模型提供 OpenAI 兼容 API 时,可以替换。 | `https://api.openai.com/v1` | -| `MIGRATION_ENABLED` | 启用后,将在应用程序启动前执行迁移,应用程序将在迁移完成后启动。 | `true` | -| `FILES_ACCESS_TIMEOUT` | 文件访问时间,指定文件被访问的时间间隔(秒)。默认值为 300 秒。 | `300` | -| `ACCESS_TOKEN_EXPIRE_MINUTES` | 访问令牌过期时间(分钟) | `60` | -| `REFRESH_TOKEN_EXPIRE_DAYS` | 刷新令牌过期时间(天) | `30` | -| `APP_MAX_ACTIVE_REQUESTS` | 应用程序的最大活动请求数,0 表示无限制,应为非负整数。 | `0` | -| `APP_MAX_EXECUTION_TIME` | 应用程序最大执行时间(秒) | `1200` | +Service API URL,用于 **前端** 展示 Service API Base URL,传空则为同域。范例:`https://api.dify.ai` -## 容器启动相关配置 +#### APP_API_URL -这些配置仅在使用 Docker 镜像或 Docker Compose 启动时有效。 +WebApp API 后端 URL,用于声明 **前端** API 后端地址,传空则为同域。范例:`https://app.dify.ai` -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `DIFY_BIND_ADDRESS` | API 服务绑定地址,默认:0.0.0.0,即所有地址都可以访问。 | `0.0.0.0` | -| `DIFY_PORT` | API 服务绑定端口号,默认 5001。 | `5001` | -| `SERVER_WORKER_AMOUNT` | API 服务器工作进程数量,即工作线程数。公式:CPU 核心数 x 2 + 1(同步)或 1(Gevent) | `1` | -| `SERVER_WORKER_CLASS` | 默认为 gevent。如果使用 Windows,可以切换为 sync 或 solo。 | `gevent` | -| `SERVER_WORKER_CONNECTIONS` | 默认工作连接数,默认为 10。 | `10` | -| `CELERY_WORKER_CLASS` | 与 SERVER_WORKER_CLASS 类似。如果使用 Windows,可以切换为 sync 或 solo。 | 空 | -| `GUNICORN_TIMEOUT` | 请求处理超时时间。默认为 200,建议设为 360 以支持更长的 SSE 连接时间。 | `360` | -| `CELERY_WORKER_AMOUNT` | Celery 工作线程数。默认为 1,可根据需要设置。 | 空 | -| `CELERY_AUTO_SCALE` | 是否启用 Celery 工作线程自动缩放。自动缩放对于 CPU 密集型任务很有用,可以根据工作负载动态分配和释放。默认为 false(即禁用自动缩放)。 | `false` | -| `CELERY_MAX_WORKERS` | Celery 自动缩放的最大工作线程数。这是可选的,仅当启用自动缩放时使用。 | 空 | -| `CELERY_MIN_WORKERS` | Celery 自动缩放的最小工作线程数。这是可选的,仅当启用自动缩放时使用。 | 空 | -| `API_TOOL_DEFAULT_CONNECT_TIMEOUT` | API 工具默认连接超时时间 | `10` | -| `API_TOOL_DEFAULT_READ_TIMEOUT` | API 工具默认读取超时时间 | `60` | +#### APP_WEB_URL -## 数据源配置 +WebApp URL,用于预览文件、**前端** 展示下载用的 URL,以及作为多模型输入接口,传空则为同域。范例:`https://udify.app/` -为不同的网站爬虫引擎配置。 +#### FILES_URL -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `ENABLE_WEBSITE_JINAREADER` | 启用 Jina Reader 网站抓取 | `true` | -| `ENABLE_WEBSITE_FIRECRAWL` | 启用 Firecrawl 网站抓取 | `true` | -| `ENABLE_WEBSITE_WATERCRAWL` | 启用 Watercrawl 网站抓取 | `true` | +文件预览或下载 URL 前缀,用于将文件预览或下载 URL 给前端展示或作为多模态模型输入; 为了防止他人伪造,图片预览 URL 是带有签名的,并且有 5 分钟过期时间。 -## 数据库配置 +*** -Dify 使用 PostgreSQL 数据库。 +### 服务端 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `DB_USERNAME` | 数据库用户名 | `postgres` | -| `DB_PASSWORD` | 数据库密码 | `difyai123456` | -| `DB_HOST` | 数据库主机 | `db` | -| `DB_PORT` | 数据库端口 | `5432` | -| `DB_DATABASE` | 数据库名称 | `dify` | -| `SQLALCHEMY_POOL_SIZE` | 数据库连接池大小。默认为 30 个连接,可以适当增加。 | `30` | -| `SQLALCHEMY_POOL_RECYCLE` | 数据库连接池回收时间,默认为 3600 秒。 | `3600` | -| `SQLALCHEMY_ECHO` | 是否打印 SQL,默认为 false。 | `false` | -| `POSTGRES_MAX_CONNECTIONS` | 数据库最大连接数,默认为 100 | `100` | -| `POSTGRES_SHARED_BUFFERS` | PostgreSQL 共享缓冲区大小,默认为 128MB,建议值:可用内存的 25% | `128MB` | -| `POSTGRES_WORK_MEM` | 每个数据库工作进程的工作内存,默认为 4MB | `4MB` | -| `POSTGRES_MAINTENANCE_WORK_MEM` | 维护活动的保留内存,默认为 64MB | `64MB` | -| `POSTGRES_EFFECTIVE_CACHE_SIZE` | 规划器对有效缓存大小的假设,默认为 4096MB | `4096MB` | +#### MODE -## Redis 配置 +启动模式,仅使用 Docker 启动时可用,源码启动无效。 -Redis 用于缓存和会话期间的发布/订阅。 +* api -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `REDIS_HOST` | Redis 主机 | `redis` | -| `REDIS_PORT` | Redis 端口 | `6379` | -| `REDIS_USERNAME` | Redis 用户名 | 空 | -| `REDIS_PASSWORD` | Redis 密码 | `difyai123456` | -| `REDIS_USE_SSL` | 是否使用 SSL 连接 Redis | `false` | -| `REDIS_DB` | Redis 数据库编号 | `0` | -| `REDIS_USE_SENTINEL` | 是否使用 Redis Sentinel 模式 | `false` | -| `REDIS_SENTINELS` | Redis Sentinel 节点列表,格式:`:,:` | 空 | -| `REDIS_SENTINEL_SERVICE_NAME` | Redis Sentinel 服务名称 | 空 | -| `REDIS_SENTINEL_USERNAME` | Redis Sentinel 用户名 | 空 | -| `REDIS_SENTINEL_PASSWORD` | Redis Sentinel 密码 | 空 | -| `REDIS_SENTINEL_SOCKET_TIMEOUT` | Redis Sentinel 套接字超时 | `0.1` | -| `REDIS_USE_CLUSTERS` | 是否使用 Redis 集群 | `false` | -| `REDIS_CLUSTERS` | Redis 集群节点列表 | 空 | -| `REDIS_CLUSTERS_PASSWORD` | Redis 集群密码 | 空 | + 启动 API Server。 +* worker -## Celery 配置 + 启动异步队列 worker。 -用于任务队列和异步处理。 +#### DEBUG -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `CELERY_BROKER_URL` | Celery 代理 URL,使用 Redis 作为代理 | `redis://:difyai123456@redis:6379/1` | -| `BROKER_USE_SSL` | 是否使用 SSL 连接代理 | `false` | -| `CELERY_USE_SENTINEL` | 是否使用 Redis Sentinel | `false` | -| `CELERY_SENTINEL_MASTER_NAME` | Celery Sentinel 主节点名称 | 空 | -| `CELERY_SENTINEL_SOCKET_TIMEOUT` | Celery Sentinel 套接字超时 | `0.1` | +调试模式,默认 false,建议本地开发打开该配置,可防止 monkey patch 导致的一些问题出现。 -## CORS 配置 +#### FLASK_DEBUG + +Flask 调试模式,开启可在接口输出 trace 信息,方便调试。 + +#### SECRET_KEY + +一个用于安全地签名会话 cookie 并在数据库上加密敏感信息的密钥。初次启动需要设置改变量。可以运行 `openssl rand -base64 42` 生成一个强密钥。 + +#### DEPLOY_ENV + +部署环境。 + +* PRODUCTION(默认) + + 生产环境。 +* TESTING + + 测试环境,前端页面会有明显颜色标识,该环境为测试环境。 + +#### LOG_LEVEL + +日志输出等级,默认为 INFO。生产建议设置为 ERROR。 + +#### MIGRATION_ENABLED + +当设置为 true 时,会在容器启动时自动执行数据库迁移,仅使用 Docker 启动时可用,源码启动无效。源码启动需要在 api 目录手动执行 `flask db upgrade`。 + +#### CHECK_UPDATE_URL + +是否开启检查版本策略,若设置为 false,则不调用 `https://updates.dify.ai` 进行版本检查。由于目前国内无法直接访问基于 CloudFlare Worker 的版本接口,设置该变量为空,可以屏蔽该接口调用。 + +#### TEXT_GENERATION_TIMEOUT_MS + +默认 60000,单位为 ms,用于指定文本生成和工作流的超时时间,防止因某些进程运行超时而导致整体服务不可用。 + +#### CSP_WHITELIST + +内容安全策略(CSP)白名单,默认不开启。在此变量中填写被放行的域名列表后即视为开启,有助于减少潜在的 XSS 攻击。开启后,白名单将自动包含以下域名: + +```url +*.sentry.io http://localhost:* http://127.0.0.1:* https://analytics.google.com https://googletagmanager.com https://api.github.com +``` + +#### 容器启动相关配置 + +仅在使用 Docker 镜像或者 Docker-compose 启动时有效。 + +* DIFY_BIND_ADDRESS + + API 服务绑定地址,默认:0.0.0.0,即所有地址均可访问。 +* DIFY_PORT + + API 服务绑定端口号,默认 5001。 +* SERVER_WORKER_AMOUNT + + API 服务 Server worker 数量,即 gevent worker 数量,公式:`cpu 核心数 x 2 + 1` 可参考[文档](https://docs.gunicorn.org/en/stable/design.html#how-many-workers) + +* SERVER_WORKER_CLASS + + 默认为 gevent,若为 windows,可以切换为 sync 或 solo。 +* GUNICORN_TIMEOUT + + 请求处理超时时间,默认 200,建议 360,以支持更长的 sse 连接时间。 +* CELERY_WORKER_CLASS + + 和 `SERVER_WORKER_CLASS` 类似,默认 gevent,若为 windows,可以切换为 sync 或 solo。 +* CELERY_WORKER_AMOUNT + + Celery worker 数量,默认为 1,按需设置。 +* HTTP_PROXY + + HTTP 代理地址,用于解决国内无法访问 OpenAI、HuggingFace 的问题。注意,若代理部署在宿主机 (例如 `http://127.0.0.1:7890`),此处代理地址应当和接入本地模型时一样,使用 Docker 容器内部的宿主机地址(例如 `http://192.168.1.100:7890` 或 `http://172.17.0.1:7890`)。 +* HTTPS_PROXY + + HTTPS 代理地址,用于解决国内无法访问 OpenAI、HuggingFace 的问题。同上。 + +#### 数据库配置 + +数据库使用 PostgreSQL,请使用 public schema。 + +* DB_USERNAME:用户名 +* DB_PASSWORD:密码 +* DB_HOST:数据库 host +* DB_PORT:数据库端口号,默认 5432 +* DB_DATABASE:数据库 database +* SQLALCHEMY_POOL_SIZE:数据库连接池大小,默认 30 个连接数,可适当增加。 +* SQLALCHEMY_POOL_RECYCLE:数据库连接池回收时间,默认 3600 秒。 +* SQLALCHEMY_ECHO:是否打印 SQL,默认 false。 + +#### Redis 配置 + +该 Redis 配置用于缓存以及对话时的 pub/sub。 + +* REDIS_HOST:Redis host +* REDIS_PORT:Redis port,默认 6379 +* REDIS_DB:Redis Database,默认为 0,请和 Session Redis、Celery Broker 分开用不同 Database。 +* REDIS_USERNAME:Redis 用户名,默认为空 +* REDIS_PASSWORD:Redis 密码,默认为空,强烈建议设置密码。 +* REDIS_USE_SSL:是否使用 SSL 协议进行连接,默认 false +* REDIS_USE_SENTINEL:使用 Redis Sentinel 连接 Redis 服务器 +* REDIS_SENTINELS:哨兵节点,格式:`:,:,:` +* REDIS_SENTINEL_SERVICE_NAME:哨兵服务名,同 Master Name +* REDIS_SENTINEL_USERNAME:哨兵的用户名 +* REDIS_SENTINEL_PASSWORD:哨兵的密码 +* REDIS_SENTINEL_SOCKET_TIMEOUT:哨兵超时时间,默认值:0.1,单位:秒 + +#### Celery 配置 + +* CELERY_BROKER_URL + + 格式如下(直连模式): + + ``` + redis://:@:/ + ``` + + 范例:`redis://:difyai123456@redis:6379/1` + + 哨兵模式: + + ``` + sentinel://:@:/ + ``` + + 范例:`sentinel://localhost:26379/1;sentinel://localhost:26380/1;sentinel://localhost:26381/1` + +* BROKER_USE_SSL + + 若设置为 true,则使用 SSL 协议进行连接,默认 false。 + +* CELERY_USE_SENTINEL + + 若设置为 true,则启用哨兵模式,默认 false。 + +* CELERY_SENTINEL_MASTER_NAME + + 哨兵的服务名,即 Master Name。 + +* CELERY_SENTINEL_SOCKET_TIMEOUT + + 哨兵连接超时时间,默认值:0.1,单位:秒。 + +#### CORS 配置 用于设置前端跨域访问策略。 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `WEB_API_CORS_ALLOW_ORIGINS` | Web API 跨域请求允许的来源 | `*` | -| `CONSOLE_CORS_ALLOW_ORIGINS` | 控制台 API 跨域请求允许的来源 | `*` | +* CONSOLE_CORS_ALLOW_ORIGINS -## 文件存储配置 + 控制台 CORS 跨域策略,默认为 `*`,即所有域名均可访问。 +* WEB_API_CORS_ALLOW_ORIGINS -Dify 支持多种文件存储方式。 + WebAPP CORS 跨域策略,默认为 `*`,即所有域名均可访问。 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `STORAGE_TYPE` | 存储用户文件的存储类型 | `opendal` | -| `OPENDAL_SCHEME` | OpenDAL 存储的方案名称 | `fs` | -| `OPENDAL_FS_ROOT` | OpenDAL 本地文件系统根目录 | `storage` | +详细配置可参考:[跨域 / 身份相关指南](/zh-hans/learn-more/faq/install-faq#3-安装时后无法登录,登录成功,但后续接口均提示-401?) -此外,Dify 还支持配置 S3、Azure Blob、Google Storage、阿里云 OSS、腾讯 COS、Oracle Storage、华为 OBS、火山引擎 TOS、百度 OBS 和 Supabase Storage 等多种云存储服务。 +#### 文件存储配置 -## 向量数据库配置 +用于存储知识库上传的文件、团队 / 租户的加密密钥等等文件。 -Dify 支持多种向量数据库。 +* STORAGE_TYPE -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `VECTOR_STORE` | 要使用的向量存储类型 | `weaviate` | + 存储设施类型 -支持的向量数据库包括:`weaviate`、`qdrant`、`milvus`、`myscale`、`relyt`、`pgvector`、`pgvecto-rs`、`chroma`、`opensearch`、`tidb_vector`、`oracle`、`tencent`、`elasticsearch`、`elasticsearch-ja`、`analyticdb`、`couchbase`、`vikingdb`、`oceanbase`、`opengauss`、`tablestore` 等。 + * local(默认) -每种向量数据库都有其特定的配置变量,例如: + 本地文件存储,若选择此项则需要设置下方 `STORAGE_LOCAL_PATH` 配置。 + * s3 -### Weaviate 配置 -``` -WEAVIATE_ENDPOINT=http://weaviate:8080 -WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih -``` + S3 对象存储,若选择此项则需要设置下方 S3_ 开头的配置。 + * azure-blob -### Qdrant 配置 -``` -QDRANT_URL=http://qdrant:6333 -QDRANT_API_KEY=difyai123456 -QDRANT_CLIENT_TIMEOUT=20 -QDRANT_GRPC_ENABLED=false -QDRANT_GRPC_PORT=6334 -``` + Azure Blob 存储,若选择此项则需要设置下方 AZURE_BLOB_ 开头的配置。 + * huawei-obs -## 知识库配置 + Huawei OBS 存储,若选择此项则需要设置下方 HUAWEI_OBS_ 开头的配置。 + * volcengine-tos -控制文件上传和处理。 + Volcengine TOS 存储,若选择此项则需要设置下方 VOLCENGINE_TOS_ 开头的配置。 +* STORAGE_LOCAL_PATH -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `UPLOAD_FILE_SIZE_LIMIT` | 上传文件大小限制,默认 15M | `15` | -| `UPLOAD_FILE_BATCH_LIMIT` | 一次可以上传的最大文件数,默认 5 | `5` | -| `ETL_TYPE` | ETL 类型,支持:`dify`、`Unstructured` | `dify` | -| `UNSTRUCTURED_API_URL` | Unstructured API 路径 | 空 | -| `UNSTRUCTURED_API_KEY` | Unstructured API 密钥 | 空 | -| `SCARF_NO_ANALYTICS` | 不进行数据分析 | `true` | + 默认为 storage,即存储在当前目录的 storage 目录下。若使用 Docker 或 Docker-compose 进行部署,请务必将两个容器中 `/app/api/storage` 目录挂载到同一个本机目录,否则可能会出现文件找不到的报错。 +* S3_ENDPOINT:S3 端点地址 +* S3_BUCKET_NAME:S3 桶名称 +* S3_ACCESS_KEY:S3 Access Key +* S3_SECRET_KEY:S3 Secret Key +* S3_REGION:S3 地域信息,如:us-east-1 +* AZURE_BLOB_ACCOUNT_NAME: your-account-name 如 'difyai' +* AZURE_BLOB_ACCOUNT_KEY: your-account-key 如 'difyai' +* AZURE_BLOB_CONTAINER_NAME: your-container-name 如 'difyai-container' +* AZURE_BLOB_ACCOUNT_URL: 'https://\.blob.core.windows.net' +* ALIYUN_OSS_BUCKET_NAME: your-bucket-name 如 'difyai' +* ALIYUN_OSS_ACCESS_KEY: your-access-key 如 'difyai' +* ALIYUN_OSS_SECRET_KEY: your-secret-key 如 'difyai' +* ALIYUN_OSS_ENDPOINT: https://oss-ap-southeast-1-internal.aliyuncs.com # 参考[文档](https://help.aliyun.com/zh/oss/user-guide/regions-and-endpoints) +* ALIYUN_OSS_REGION: ap-southeast-1 # 参考[文档](https://help.aliyun.com/zh/oss/user-guide/regions-and-endpoints) +* ALIYUN_OSS_AUTH_VERSION: v4 +* ALIYUN_OSS_PATH: your-path # 路径不要使用斜线 "/" 开头,阿里云 OSS 不支持。参考[文档](https://api.aliyun.com/troubleshoot?q=0016-00000005) +* HUAWEI_OBS_BUCKET_NAME: your-bucket-name 如 'difyai' +* HUAWEI_OBS_SECRET_KEY: your-secret-key 如 'difyai' +* HUAWEI_OBS_ACCESS_KEY: your-access-key 如 'difyai' +* HUAWEI_OBS_SERVER: your-server-url # 参考[文档](https://support.huaweicloud.com/sdk-python-devg-obs/obs_22_0500.html)。 +* VOLCENGINE_TOS_BUCKET_NAME: your-bucket-name 如 'difyai'。 +* VOLCENGINE_TOS_SECRET_KEY: your-secret-key 如 'difyai'。 +* VOLCENGINE_TOS_ACCESS_KEY: your-access-key 如 'difyai'。 +* VOLCENGINE_TOS_REGION: your-region 如 'cn-guangzhou' # 参考[文档]( https://www.volcengine.com/docs/6349/107356)。 +* VOLCENGINE_TOS_ENDPOINT: your-endpoint 如 'tos-cn-guangzhou.volces.com' # 参考[文档](https://www.volcengine.com/docs/6349/107356)。 -## 模型配置 +#### 向量数据库配置 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `PROMPT_GENERATION_MAX_TOKENS` | 提示生成允许的最大令牌数 | `512` | -| `CODE_GENERATION_MAX_TOKENS` | 代码生成允许的最大令牌数 | `1024` | -| `PLUGIN_BASED_TOKEN_COUNTING_ENABLED` | 启用或禁用基于插件的令牌计数 | `false` | +* VECTOR_STORE -## 多模态配置 + **可使用的枚举类型包括:** -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `MULTIMODAL_SEND_FORMAT` | 多模态模型输入时发送图像/视频/音频/文档的格式,默认为 base64,可选 url | `base64` | -| `UPLOAD_IMAGE_FILE_SIZE_LIMIT` | 上传图像文件大小限制,默认 10M | `10` | -| `UPLOAD_VIDEO_FILE_SIZE_LIMIT` | 上传视频文件大小限制,默认 100M | `100` | -| `UPLOAD_AUDIO_FILE_SIZE_LIMIT` | 上传音频文件大小限制,默认 50M | `50` | + * `weaviate` + * `qdrant` + * `milvus` + * `zilliz` 与 `milvus` 一致 + * `myscale` + * `pinecone` (暂未开放) + * `tidb_vector` + * `analyticdb` + * `couchbase` +* WEAVIATE_ENDPOINT -## Sentry 配置 + Weaviate 端点地址,如:`http://weaviate:8080`。 +* WEAVIATE_API_KEY -用于应用程序监控和错误日志跟踪。 + 连接 Weaviate 使用的 api-key 凭据。 +* WEAVIATE_BATCH_SIZE -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `SENTRY_DSN` | Sentry DSN 地址 | 空 | -| `API_SENTRY_DSN` | API 服务 Sentry DSN 地址 | 空 | -| `API_SENTRY_TRACES_SAMPLE_RATE` | API 服务 Sentry 事件的报告比例 | `1.0` | -| `API_SENTRY_PROFILES_SAMPLE_RATE` | API 服务 Sentry 配置文件的报告比例 | `1.0` | -| `WEB_SENTRY_DSN` | Web 服务 Sentry DSN 地址 | 空 | + Weaviate 批量创建索引 Object 的数量,默认 100。可参考此[文档](https://weaviate.io/developers/weaviate/manage-data/import#how-to-set-batch-parameters)。 +* WEAVIATE_GRPC_ENABLED -## Notion 集成配置 + 是否使用 gRPC 方式与 Weaviate 进行交互,开启后性能会大大增加,本地可能无法使用,默认为 true。 +* QDRANT_URL -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `NOTION_INTEGRATION_TYPE` | 配置为 "public" 或 "internal" | `public` | -| `NOTION_CLIENT_SECRET` | Notion OAuth 客户端密钥 | 空 | -| `NOTION_CLIENT_ID` | Notion OAuth 客户端 ID | 空 | -| `NOTION_INTERNAL_SECRET` | Notion 内部集成密钥 | 空 | + Qdrant 端点地址,如:`https://your-qdrant-cluster-url.qdrant.tech/` +* QDRANT_API_KEY -## 邮件相关配置 + 连接 Qdrant 使用的 api-key 凭据。 +* PINECONE_API_KEY -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `MAIL_TYPE` | 邮件类型,支持:resend, smtp | `resend` | -| `MAIL_DEFAULT_SEND_FROM` | 默认发送邮件地址 | 空 | -| `RESEND_API_URL` | Resend 邮件提供商的 API-URL | `https://api.resend.com` | -| `RESEND_API_KEY` | Resend 邮件提供商的 API-Key | `your-resend-api-key` | -| `SMTP_SERVER` | SMTP 服务器地址 | 空 | -| `SMTP_PORT` | SMTP 端口 | `465` | -| `SMTP_USERNAME` | SMTP 用户名 | 空 | -| `SMTP_PASSWORD` | SMTP 密码 | 空 | -| `SMTP_USE_TLS` | 是否使用 TLS | `true` | -| `SMTP_OPPORTUNISTIC_TLS` | 是否使用投机式 TLS | `false` | + 连接 Pinecone 使用的 api-key 凭据。 +* PINECONE_ENVIRONMENT -## 其他配置 + Pinecone 所在的额环境,如:`us-east4-gcp` +* MILVUS_URI -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH` | 索引的最大分段令牌长度 | `4000` | -| `INVITE_EXPIRY_HOURS` | 成员邀请链接有效时间(小时) | `72` | -| `RESET_PASSWORD_TOKEN_EXPIRY_MINUTES` | 重置密码令牌有效时间(分钟) | `5` | -| `CODE_EXECUTION_ENDPOINT` | 沙盒服务端点 | `http://sandbox:8194` | -| `CODE_EXECUTION_API_KEY` | 代码执行 API 密钥 | `dify-sandbox` | -| `CODE_MAX_NUMBER` | 代码最大数字 | `9223372036854775807` | -| `CODE_MIN_NUMBER` | 代码最小数字 | `-9223372036854775808` | -| `CODE_MAX_DEPTH` | 代码最大深度 | `5` | -| `CODE_MAX_PRECISION` | 代码最大精度 | `20` | -| `CODE_MAX_STRING_LENGTH` | 代码最大字符串长度 | `80000` | -| `CODE_MAX_STRING_ARRAY_LENGTH` | 代码最大字符串数组长度 | `30` | -| `CODE_MAX_OBJECT_ARRAY_LENGTH` | 代码最大对象数组长度 | `30` | -| `CODE_MAX_NUMBER_ARRAY_LENGTH` | 代码最大数字数组长度 | `1000` | -| `CODE_EXECUTION_CONNECT_TIMEOUT` | 代码执行连接超时时间 | `10` | -| `CODE_EXECUTION_READ_TIMEOUT` | 代码执行读取超时时间 | `60` | -| `CODE_EXECUTION_WRITE_TIMEOUT` | 代码执行写入超时时间 | `10` | -| `TEMPLATE_TRANSFORM_MAX_LENGTH` | 模板转换最大长度 | `80000` | + Milvus 的 URI 配置。例如:`http://host.docker.internal:19530`。对于 [Zilliz Cloud](https://docs.zilliz.com.cn/docs/free-trials),请将 URI 和 TOKEN 分别设置为 Public Endpoint 和 API Key。 +* MILVUS_TOKEN -## 工作流配置 + Milvus TOKEN 配置,默认为空。 +* MILVUS_USER -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `WORKFLOW_MAX_EXECUTION_STEPS` | 工作流最大执行步骤数 | `500` | -| `WORKFLOW_MAX_EXECUTION_TIME` | 工作流最大执行时间(秒) | `1200` | -| `WORKFLOW_CALL_MAX_DEPTH` | 工作流调用最大深度 | `5` | -| `MAX_VARIABLE_SIZE` | 最大变量大小 | `204800` | -| `WORKFLOW_PARALLEL_DEPTH_LIMIT` | 工作流并行深度限制 | `3` | -| `WORKFLOW_FILE_UPLOAD_LIMIT` | 工作流文件上传限制 | `10` | -| `WORKFLOW_NODE_EXECUTION_STORAGE` | 工作流存储配置,选项:rdbms, hybrid | `rdbms` | -| `HTTP_REQUEST_NODE_MAX_BINARY_SIZE` | 工作流中 HTTP 请求节点的最大二进制大小 | `10485760` | -| `HTTP_REQUEST_NODE_MAX_TEXT_SIZE` | 工作流中 HTTP 请求节点的最大文本大小 | `1048576` | -| `HTTP_REQUEST_NODE_SSL_VERIFY` | 工作流中 HTTP 请求节点的 SSL 验证 | `True` | -| `SSRF_PROXY_HTTP_URL` | SSRF 代理服务器 HTTP URL | `http://ssrf_proxy:3128` | -| `SSRF_PROXY_HTTPS_URL` | SSRF 代理服务器 HTTPS URL | `http://ssrf_proxy:3128` | -| `LOOP_NODE_MAX_COUNT` | 工作流中最大循环次数 | `100` | -| `MAX_TOOLS_NUM` | 代理中可以使用的最大工具数量 | `10` | -| `MAX_PARALLEL_LIMIT` | 工作流中最大并行分支数 | `10` | -| `MAX_ITERATIONS_NUM` | 代理设置的最大迭代次数 | `5` | -| `MAX_SUBMIT_COUNT` | 并行节点执行的最大提交线程数 | `100` | -| `TOP_K_MAX_VALUE` | RAG 的最大 top-k 值 | `10` | + Milvus 用户名配置,默认为空。 +* MILVUS_PASSWORD -## Web 服务环境变量 + Milvus 密码配置,默认为空。 +* MYSCALE_HOST -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `TEXT_GENERATION_TIMEOUT_MS` | 文本生成超时时间(毫秒) | `60000` | + MyScale host 配置。 +* MYSCALE_PORT -## Nginx 反向代理配置 + MyScale port 配置。 +* MYSCALE_USER -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `NGINX_SERVER_NAME` | Nginx 服务器名称 | `_` | -| `NGINX_HTTPS_ENABLED` | 是否启用 HTTPS | `false` | -| `NGINX_PORT` | HTTP 端口 | `80` | -| `NGINX_SSL_PORT` | SSL 端口 | `443` | -| `NGINX_SSL_CERT_FILENAME` | SSL 证书文件名 | `dify.crt` | -| `NGINX_SSL_CERT_KEY_FILENAME` | SSL 证书密钥文件名 | `dify.key` | -| `NGINX_SSL_PROTOCOLS` | SSL 协议 | `TLSv1.1 TLSv1.2 TLSv1.3` | -| `NGINX_WORKER_PROCESSES` | Nginx 工作进程数 | `auto` | -| `NGINX_CLIENT_MAX_BODY_SIZE` | Nginx 客户端最大主体大小 | `15M` | -| `NGINX_KEEPALIVE_TIMEOUT` | Nginx keepalive 超时 | `65` | -| `NGINX_PROXY_READ_TIMEOUT` | Nginx 代理读取超时 | `3600s` | -| `NGINX_PROXY_SEND_TIMEOUT` | Nginx 代理发送超时 | `3600s` | -| `NGINX_ENABLE_CERTBOT_CHALLENGE` | 是否接受 /.well-known/acme-challenge/ 的请求 | `false` | -| `EXPOSE_NGINX_PORT` | 暴露的 Nginx 端口 | `80` | -| `EXPOSE_NGINX_SSL_PORT` | 暴露的 Nginx SSL 端口 | `443` | + MyScale 用户名配置,默认为 `default`。 +* MYSCALE_PASSWORD -## Certbot 配置 + MyScale 密码配置,默认为空。 +* MYSCALE_DATABASE -用于自动管理 SSL 证书。 + MyScale 数据库配置,默认为 `default`。 +* MYSCALE_FTS_PARAMS -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `CERTBOT_EMAIL` | 电子邮件地址(从 Let's Encrypt 获取证书所必需) | `your_email@example.com` | -| `CERTBOT_DOMAIN` | 域名 | `your_domain.com` | -| `CERTBOT_OPTIONS` | certbot 命令选项 | 空 | + MyScale 全文搜索配置,如需多语言支持,请参考 [MyScale 文档](https://myscale.com/docs/en/text-search/#understanding-fts-index-parameters),默认为空(仅支持英语)。 -## 插件守护程序配置 +* TIDB_VECTOR_HOST -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `DB_PLUGIN_DATABASE` | 插件数据库名称 | `dify_plugin` | -| `EXPOSE_PLUGIN_DAEMON_PORT` | 暴露的插件守护程序端口 | `5002` | -| `PLUGIN_DAEMON_PORT` | 插件守护程序端口 | `5002` | -| `PLUGIN_DAEMON_KEY` | 插件守护程序密钥 | `lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi` | -| `PLUGIN_DAEMON_URL` | 插件守护程序 URL | `http://plugin_daemon:5002` | -| `PLUGIN_MAX_PACKAGE_SIZE` | 插件最大包大小 | `52428800` | -| `PLUGIN_PPROF_ENABLED` | 是否启用插件性能分析 | `false` | -| `PLUGIN_DEBUGGING_HOST` | 插件调试主机 | `0.0.0.0` | -| `PLUGIN_DEBUGGING_PORT` | 插件调试端口 | `5003` | -| `EXPOSE_PLUGIN_DEBUGGING_HOST` | 暴露的插件调试主机 | `localhost` | -| `EXPOSE_PLUGIN_DEBUGGING_PORT` | 暴露的插件调试端口 | `5003` | -| `PLUGIN_DIFY_INNER_API_KEY` | 插件 Dify 内部 API 密钥 | `QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1` | -| `PLUGIN_DIFY_INNER_API_URL` | 插件 Dify 内部 API URL | `http://api:5001` | -| `ENDPOINT_URL_TEMPLATE` | 端点 URL 模板 | `http://localhost/e/{hook_id}` | -| `MARKETPLACE_ENABLED` | 是否启用市场 | `true` | -| `MARKETPLACE_API_URL` | 市场 API URL | `https://marketplace.dify.ai` | -| `FORCE_VERIFYING_SIGNATURE` | 是否强制验证签名 | `true` | -| `PLUGIN_PYTHON_ENV_INIT_TIMEOUT` | 插件 Python 环境初始化超时 | `120` | -| `PLUGIN_MAX_EXECUTION_TIMEOUT` | 插件最大执行超时 | `600` | -| `PIP_MIRROR_URL` | PIP 镜像 URL | 空 | + TiDB Vector host 配置,如:`xxx.eu-central-1.xxx.tidbcloud.com` +* TIDB_VECTOR_PORT -## SSRF 代理配置 + TiDB Vector 端口号配置,如:`4000` +* TIDB_VECTOR_USER -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `SSRF_HTTP_PORT` | SSRF HTTP 端口 | `3128` | -| `SSRF_COREDUMP_DIR` | SSRF 核心转储目录 | `/var/spool/squid` | -| `SSRF_REVERSE_PROXY_PORT` | SSRF 反向代理端口 | `8194` | -| `SSRF_SANDBOX_HOST` | SSRF 沙盒主机 | `sandbox` | -| `SSRF_DEFAULT_TIME_OUT` | SSRF 默认超时 | `5` | -| `SSRF_DEFAULT_CONNECT_TIME_OUT` | SSRF 默认连接超时 | `5` | -| `SSRF_DEFAULT_READ_TIME_OUT` | SSRF 默认读取超时 | `5` | -| `SSRF_DEFAULT_WRITE_TIME_OUT` | SSRF 默认写入超时 | `5` | + TiDB Vector 用户配置,如:`xxxxxx.root` +* TIDB_VECTOR_PASSWORD -## 模型提供商和工具位置配置 + TiDB Vector 密码配置 +* TIDB_VECTOR_DATABASE -用于指定应用程序中可以使用的模型提供商和工具。 + TiDB Vector 数据库配置,如:`dify` -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `POSITION_TOOL_PINS` | 固定工具,用逗号分隔值,不要在项目之间加空格 | 空 | -| `POSITION_TOOL_INCLUDES` | 包含工具 | 空 | -| `POSITION_TOOL_EXCLUDES` | 排除工具 | 空 | -| `POSITION_PROVIDER_PINS` | 固定模型提供商 | 空 | -| `POSITION_PROVIDER_INCLUDES` | 包含模型提供商 | 空 | -| `POSITION_PROVIDER_EXCLUDES` | 排除模型提供商 | 空 | +* ANALYTICDB_KEY_ID -## OTLP 收集器配置 + 用于阿里云 OpenAPI 认证的访问密钥 ID。请阅读 [Analyticdb 文档](https://help.aliyun.com/zh/analyticdb/analyticdb-for-postgresql/support/create-an-accesskey-pair) 来创建你的 AccessKey。 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `ENABLE_OTEL` | 是否启用 OTEL | `false` | -| `OTLP_BASE_ENDPOINT` | OTLP 基础端点 | `http://localhost:4318` | -| `OTLP_API_KEY` | OTLP API 密钥 | 空 | -| `OTEL_EXPORTER_TYPE` | OTEL 导出器类型 | `otlp` | -| `OTEL_SAMPLING_RATE` | OTEL 采样率 | `0.1` | -| `OTEL_BATCH_EXPORT_SCHEDULE_DELAY` | OTEL 批量导出调度延迟 | `5000` | -| `OTEL_MAX_QUEUE_SIZE` | OTEL 最大队列大小 | `2048` | -| `OTEL_MAX_EXPORT_BATCH_SIZE` | OTEL 最大导出批大小 | `512` | -| `OTEL_METRIC_EXPORT_INTERVAL` | OTEL 指标导出间隔 | `60000` | -| `OTEL_BATCH_EXPORT_TIMEOUT` | OTEL 批量导出超时 | `10000` | -| `OTEL_METRIC_EXPORT_TIMEOUT` | OTEL 指标导出超时 | `30000` | +* ANALYTICDB_KEY_SECRET -## 额外安全配置 + 用于阿里云 OpenAPI 认证的访问密钥秘密。 -| 变量名 | 描述 | 默认值 | -|-------|------|--------| -| `CSP_WHITELIST` | 内容安全策略白名单 | 空 | -| `ALLOW_EMBED` | 防止点击劫持 | `false` | +* ANALYTICDB_INSTANCE_ID + + 你的 AnalyticDB 实例的唯一标识符,例如 `gp-xxxxxx`。请阅读 [Analyticdb 文档](https://help.aliyun.com/zh/analyticdb/analyticdb-for-postgresql/getting-started/create-an-instance-1) 来创建你的实例。 + +* ANALYTICDB_REGION_ID + + AnalyticDB 实例所在区域的标识符,例如 `cn-hangzhou`。 + +* ANALYTICDB_ACCOUNT + + 用于连接 AnalyticDB 实例的账户名称。请阅读 [Analyticdb 文档](https://help.aliyun.com/zh/analyticdb/analyticdb-for-postgresql/getting-started/createa-a-privileged-account) 来创建账户。 + +* ANALYTICDB_PASSWORD + + 用于连接 AnalyticDB 实例的账户密码。 + +* ANALYTICDB_NAMESPACE + + 在 AnalyticDB 实例内要操作的命名空间 (schema),例如 `dify`。如果此命名空间不存在,将自动创建。 + +* ANALYTICDB_NAMESPACE_PASSWORD + + 命名空间 (schema) 的密码。如果命名空间不存在,将使用此密码进行创建。 + +- COUCHBASE_CONNECTION_STRING + + Couchbase 集群的连接 string 字符串。 + +- COUCHBASE_USER + + 数据库用户名。 + +- COUCHBASE_PASSWORD + + 数据库密码。 + +- COUCHBASE_BUCKET_NAME + + Bucket 名称。 + +- COUCHBASE_SCOPE_NAME + + Scope 名称。 + +#### 知识库配置 + +* UPLOAD_FILE_SIZE_LIMIT + + 上传文件大小限制,默认 15M。 +* UPLOAD_FILE_BATCH_LIMIT + + 每次上传文件数上限,默认 5 个。 +* ETL_TYPE + + **可使用的枚举类型包括:** + + * dify + + Dify 自研文件 Extract 方案 + * Unstructured + + Unstructured.io 文件 Extract 方案 +* UNSTRUCTURED_API_URL + + Unstructured API 路径,当 ETL_TYPE 为 Unstructured 需要配置。 + + 如:`http://unstructured:8000/general/v0/general` + +* TOP_K_MAX_VALUE + + RAG 的最大 top-k 值,默认值为 10。 + +#### 多模态模型配置 + +* MULTIMODAL_SEND_IMAGE_FORMAT + + 多模态模型输入时,发送图片的格式,默认为 `base64`,可选 `url`。 `url` 模式下,调用的延迟会比 `base64` 模式下低,一般建议使用兼容更好的 `base64` 模式。 若配置为 `url`,则需要将 `FILES_URL` 配置为外部可访问的地址,以便多模态模型可以访问到图片。 +* UPLOAD_IMAGE_FILE_SIZE_LIMIT + + 上传图片文件大小限制,默认 10M。 + +#### Sentry 配置 + +用于应用监控和错误日志跟踪。 + +* SENTRY_DSN + + Sentry DSN 地址,默认为空,为空时则所有监控信息均不上报 Sentry。 +* SENTRY_TRACES_SAMPLE_RATE + + Sentry events 的上报比例,若为 0.01,则为 1%。 +* SENTRY_PROFILES_SAMPLE_RATE + + Sentry profiles 的上报比例,若为 0.01,则为 1%。 + +#### Notion 集成配置 + +Notion 集成配置,变量可通过申请 Notion integration 获取:[https://www.notion.so/my-integrations](https://www.notion.so/my-integrations) + +* NOTION_CLIENT_ID +* NOTION_CLIENT_SECRET + +#### 邮件相关配置 + +* MAIL_TYPE + * resend + * MAIL_DEFAULT_SEND_FROM\ + 发件人的电子邮件名称,例如:no-reply [no-reply@dify.ai](mailto:no-reply@dify.ai),非必需。 + * RESEND_API_KEY\ + 用于 Resend 邮件提供程序的 API 密钥,可以从 API 密钥获取。 + * smtp + * SMTP_SERVER\ + SMTP 服务器地址 + * SMTP_PORT\ + SMTP 服务器端口号 + * SMTP_USERNAME\ + SMTP 用户名 + * SMTP_PASSWORD\ + SMTP 密码 + * SMTP_USE_TLS\ + 是否使用 TLS,默认为 false + * MAIL_DEFAULT_SEND_FROM\ + 发件人的电子邮件名称,例如:no-reply [no-reply@dify.ai](mailto:no-reply@dify.ai),非必需。 + +#### 模型供应商 & 工具 位置配置 + +用于指定应用中可以使用的模型供应商和工具。你可以自定义哪些工具和模型供应商可用,以及它们在应用界面中的顺序和包含 / 排除情况。 + +详见可用的 [工具](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/_position.yaml) 和 [模型供应商](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/_position.yaml)。 + +* POSITION_TOOL_PINS + + 将列出的工具固定在列表顶部,确保它们在界面中置顶出现。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_TOOL_PINS=bing,google` + +* POSITION_TOOL_INCLUDES + + 指定要在应用中包含的工具。只有此处列出的工具才可用。如果未设置,则除非在 POSITION_TOOL_EXCLUDES 中指定,否则所有工具都会包含在内。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_TOOL_INCLUDES=bing,google` + +* POSITION_TOOL_EXCLUDES + + 排除在应用中显示或使用的特定工具。此处列出的工具将从可用选项中省略,除非它们被固定。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_TOOL_EXCLUDES=yahoo,wolframalpha` + +* POSITION_PROVIDER_PINS + + 将列出的模型供应商固定在列表顶部,确保它们在界面中置顶出现。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_PROVIDER_PINS=openai,openllm` + +* POSITION_PROVIDER_INCLUDES + + 指定要在应用中包含的模型供应商。只有此处列出的供应商才可用。如果未设置,则除非在 POSITION_PROVIDER_EXCLUDES 中指定,否则所有供应商都会包含在内。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_PROVIDER_INCLUDES=cohere,upstage` + +* POSITION_PROVIDER_EXCLUDES + + 排除在应用中显示特定模型供应商。此处列出的供应商将从可用选项中移除,除非它们被置顶。(使用逗号分隔的值,**中间不留空格**。) + + 示例: `POSITION_PROVIDER_EXCLUDES=openrouter,ollama` + +#### 其他 + +* INVITE_EXPIRY_HOURS:成员邀请链接有效时间(小时),默认:72。 +* HTTP_REQUEST_NODE_MAX_TEXT_SIZE:workflow 工作流中 HTTP 请求节点的最大文本大小,默认 1MB。 +* HTTP_REQUEST_NODE_MAX_BINARY_SIZE:workflow 工作流中 HTTP 请求节点的最大二进制大小,默认 10MB。 + +*** + +### Web 前端 + +#### SENTRY_DSN + +Sentry DSN 地址,默认为空,为空时则所有监控信息均不上报 Sentry。 + +## 已废弃 + +#### CONSOLE_URL + +> ⚠️ 修改于 0.3.8,于 0.4.9 废弃,替代为:`CONSOLE_API_URL` 和 `CONSOLE_WEB_URL`。 + +控制台 URL,用于拼接授权回调、控制台前端地址,以及 CORS 配置使用,传空则为同域。范例:`https://console.dify.ai`。 + +#### API_URL + +> ⚠️ 修改于 0.3.8,于 0.4.9 废弃,替代为 `SERVICE_API_URL`。 + +API Url,用于给前端展示 Service API Base Url,传空则为同域。范例:`https://api.dify.ai` + +#### APP_URL + +> ⚠️ 修改于 0.3.8,于 0.4.9 废弃,替代为 `APP_API_URL` 和 `APP_WEB_URL`。 + +WebApp Url,用于显示文件预览或下载 URL 到前端作为多模型输入,传空则为同域。范例:`https://udify.app/` + +#### Session 配置 + +> ⚠️ 该配置从 0.3.24 版本起废弃。 + +仅 API 服务使用,用于验证接口身份。 + +* SESSION_TYPE: Session 组件类型 + * redis(默认) + + 选择此项,则需要设置下方 SESSION_REDIS_ 开头的环境变量。 + * sqlalchemy + + 选择此项,则使用当前数据库连接,并使用 sessions 表进行读写 session 记录。 +* SESSION_REDIS_HOST:Redis host +* SESSION_REDIS_PORT:Redis port,默认 6379 +* SESSION_REDIS_DB:Redis Database,默认为 0,请和 Redis、Celery Broker 分开用不同 Database。 +* SESSION_REDIS_USERNAME:Redis 用户名,默认为空 +* SESSION_REDIS_PASSWORD:Redis 密码,默认为空,强烈建议设置密码。 +* SESSION_REDIS_USE_SSL:是否使用 SSL 协议进行连接,默认 false + +#### Cookie 策略配置 + +> ⚠️ 该配置从 0.3.24 版本起废弃。 + +用于设置身份校验的 Session Cookie 浏览器策略。 + +* COOKIE_HTTPONLY + + Cookie HttpOnly 配置,默认为 true。 +* COOKIE_SAMESITE + + Cookie SameSite 配置,默认为 Lax。 +* COOKIE_SECURE + + Cookie Secure 配置,默认为 false。 + +### 文档分段长度配置 + +#### INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH + +文档分段长度配置,用于控制处理长文本时的分段大小。默认值:500。最大值:4000。 + +**较大分段** +- 可在单个分段内保留更多上下文,适合需要处理复杂或上下文相关任务的场景。 +- 分段数量减少,从而降低处理时间和存储需求。 + +**较小分段** +- 提供更高的粒度,适合精确提取或总结文本内容。 +- 减少超出模型 token 限制的风险,更适配限制严格的模型。 + +**配置建议** +- 较大分段:适合上下文依赖性强的任务,例如情感分析或长文档总结。 +- 较小分段:适合精细分析场景,例如关键词提取或段落级内容处理。 diff --git a/zh-hans/guides/management/personal-account-management.mdx b/zh-hans/guides/management/personal-account-management.mdx index 1153acdb..574ed7e7 100644 --- a/zh-hans/guides/management/personal-account-management.mdx +++ b/zh-hans/guides/management/personal-account-management.mdx @@ -50,7 +50,7 @@ Dify 不同版本支持的登录方式如下: * Bahasa Indonesia * Українська(Україна) -Dify 欢迎更多社区志愿者一同参与贡献更多语言版本,前往[ Github 代码仓库](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)进行贡献! +Dify 欢迎更多社区志愿者一同参与贡献更多语言版本,前往[ Github 代码仓库](https://github.com/langgenius/dify/blob/main/CONTRIBUTING)进行贡献! ### 查看账号关联的应用数据 diff --git a/zh-hans/guides/management/subscription-management.mdx b/zh-hans/guides/management/subscription-management.mdx index c17b6af1..d7b2c378 100644 --- a/zh-hans/guides/management/subscription-management.mdx +++ b/zh-hans/guides/management/subscription-management.mdx @@ -37,7 +37,7 @@ title: 订阅管理 团队内的向量空间容量:5MB → 200MB -应用程序的[标记](https://docs.dify.ai/v/zh-hans/guides/biao-zhu/logs)回复数:10 → 2000 +应用程序的[标记](/zh-hans/guides/annotation/logs)回复数:10 → 2000 知识库的文档上传数量:50 → 500 diff --git a/zh-hans/guides/model-configuration/customizable-model.mdx b/zh-hans/guides/model-configuration/customizable-model.mdx index a1712781..913d7ddd 100644 --- a/zh-hans/guides/model-configuration/customizable-model.mdx +++ b/zh-hans/guides/model-configuration/customizable-model.mdx @@ -3,7 +3,7 @@ title: 自定义模型接入 --- - “工具”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 + “模型”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 ### 介绍 diff --git a/zh-hans/guides/model-configuration/interfaces.mdx b/zh-hans/guides/model-configuration/interfaces.mdx index 4c3222c6..ebcbcd09 100644 --- a/zh-hans/guides/model-configuration/interfaces.mdx +++ b/zh-hans/guides/model-configuration/interfaces.mdx @@ -3,7 +3,7 @@ title: 接口方法 --- - “工具”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 + “模型”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 这里介绍供应商和各模型类型需要实现的接口方法和参数说明。 diff --git a/zh-hans/guides/model-configuration/new-provider.mdx b/zh-hans/guides/model-configuration/new-provider.mdx index 311385cc..486010e7 100644 --- a/zh-hans/guides/model-configuration/new-provider.mdx +++ b/zh-hans/guides/model-configuration/new-provider.mdx @@ -3,7 +3,7 @@ title: 增加新供应商 --- - “工具”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 + “模型”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 ### 供应商配置方式 diff --git a/zh-hans/guides/model-configuration/predefined-model.mdx b/zh-hans/guides/model-configuration/predefined-model.mdx index ceb2e156..17dac863 100644 --- a/zh-hans/guides/model-configuration/predefined-model.mdx +++ b/zh-hans/guides/model-configuration/predefined-model.mdx @@ -3,7 +3,7 @@ title: 预定义模型接入 --- - “工具”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 + “模型”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 供应商集成完成后,接下来为供应商下模型的接入。 diff --git a/zh-hans/guides/model-configuration/schema.mdx b/zh-hans/guides/model-configuration/schema.mdx index f4aefd18..c24dc8a0 100644 --- a/zh-hans/guides/model-configuration/schema.mdx +++ b/zh-hans/guides/model-configuration/schema.mdx @@ -3,7 +3,7 @@ title: 配置规则 --- - “工具”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 + “模型”已全面升级为“插件”生态,模型插件的详细开发说明请参考[插件开发](/zh-hans/plugins/quick-start/develop-plugins/model-plugin/README)。以下内容已归档。 - 供应商规则基于 [Provider](#Provider) 实体。 diff --git a/zh-hans/guides/tools/readme.mdx b/zh-hans/guides/tools/readme.mdx index 3c3a798f..6c316d31 100644 --- a/zh-hans/guides/tools/readme.mdx +++ b/zh-hans/guides/tools/readme.mdx @@ -44,7 +44,7 @@ Dify 目前已支持: | YouTube | 一个用于获取油管频道视频统计数据的工具 | -欢迎你为 Dify 贡献自己开发的工具,关于如何贡献的具体方法请查看 [Dify 开发贡献文档](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md),你的任何支持对我们都是极为宝贵的。 +欢迎你为 Dify 贡献自己开发的工具,关于如何贡献的具体方法请查看 [Dify 开发贡献文档](https://github.com/langgenius/dify/blob/main/CONTRIBUTING),你的任何支持对我们都是极为宝贵的。 #### 第一方工具授权 diff --git a/zh-hans/guides/workflow/node/llm.mdx b/zh-hans/guides/workflow/node/llm.mdx index 964c85b5..00674170 100644 --- a/zh-hans/guides/workflow/node/llm.mdx +++ b/zh-hans/guides/workflow/node/llm.mdx @@ -360,7 +360,7 @@ LLM 节点中的 **JSON Schema 编辑器** 让你能够定义 LLM 返回的数 ![](https://assets-docs.dify.ai/2025/04/8ec79d64b90bd4c690ab5a9af8de1cc4.png) -[知识检索节点](knowledge-retrieval.md)输出的变量 `result` 还包含了分段引用信息,你可以通过 [**引用与归属**](../../knowledge-base/retrieval-test-and-citation.md#id-2-yin-yong-yu-gui-shu) 功能查看信息来源。 +[知识检索节点](knowledge-retrieval)输出的变量 `result` 还包含了分段引用信息,你可以通过 [**引用与归属**](../../knowledge-base/retrieval-test-and-citation.md#id-2-yin-yong-yu-gui-shu) 功能查看信息来源。 上游节点的普通变量同样可以填写至上下文变量内,例如开始节点的字符串类型变量,但 **引用与归属** 功能将会失效。 @@ -374,7 +374,7 @@ LLM 节点中的 **JSON Schema 编辑器** 让你能够定义 LLM 返回的数 * 在 LLM 节点上游添加文档提取器节点,将文件变量作为输入变量; * 将文档提取器节点的 **输出变量** `text` 填写至 LLM 节点中的提示词内。 -如需了解更多,请参考[文件上传](../file-upload.md)。 +如需了解更多,请参考[文件上传](../file-upload)。 ![](https://assets-docs.dify.ai/2025/04/c74cf0c58aaf1f35e515044deec2a88c.png) @@ -391,45 +391,16 @@ LLM 节点处理信息时有可能会遇到输入文本超过 Token 限制,未 * **结构化输出** -**场景**:你正在使用 Dify 构建一个用户反馈分析工作流。LLM 节点需要读取用户评价,并返回标准化的评分和评论内容,确保数据格式一致,便于后续节点处理。 +**案例:客户信息采集表单** -**解决方案**:在工作流的 LLM 节点中,使用 **JSON Schema 编辑器** 定义结构化格式。这样能确保 LLM 生成的结果被限制在预设格式中,而非输出杂乱文本。 +你可以通过以下视频,了解如何使用结构化输出功能采集客户信息: -**操作步骤**: - -1. 在 **LLM** 节点的 **JSON Schema 编辑器** 中,添加以下字段,确保 LLM 按照规定的结构输出数据: - -```json -{ - "type": "object", - "properties": { - "rating": { - "type": "integer", - "description": "user's rating" - }, - "comment": { - "type": "string", - "description": "user's comments" - } - }, - "required": [ - "rating", - "comment" - ] -} -``` - -2. 在工作流的 **开始** 节点,输入一个用户评价,如: - -> "这个产品非常棒,使用体验很好!" - -3. 经过 **JSON Schema 编辑器** 的处理,AI 生成的 **结构化数据** 如下: - -```json -{ - "structured_output": { - "comment": "这个产品非常棒,使用体验很好!", - "rating": 5 - } -} -``` + diff --git a/zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx.mdx b/zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx similarity index 99% rename from zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx.mdx rename to zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx index f7f649f3..454d1fc7 100644 --- a/zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx.mdx +++ b/zh-hans/learn-more/use-cases/connect-dify-to-various-im-platforms-by-using-langbot.mdx @@ -18,7 +18,7 @@ title: 将 Dify 快速接入 QQ、微信、飞书、钉钉等平台 ### 2.2. 对接消息平台 -参考[此页面](https://docs.langbot.app/deploy/platforms/readme.html),选择你要用的消息平台,如 QQ、微信、飞书、钉钉、Telegram、Discord等 +参考[此页面](https://docs.langbot.app/deploy/platforms/readme.html),选择你要用的消息平台,如 QQ、微信、飞书、钉钉、Telegram、Discord等。 ## 3. 接入 Dify diff --git a/zh-hans/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx b/zh-hans/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx index e134bb48..4c44b0bc 100644 --- a/zh-hans/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx +++ b/zh-hans/plugins/quick-start/develop-plugins/agent-strategy-plugin.mdx @@ -11,7 +11,7 @@ Agent 策略插件能够帮助 LLM 执行推理或决策逻辑,包括工具选 * Dify 插件脚手架工具 * Python 环境,版本号 ≥ 3.12 -关于如何准备插件开发的脚手架工具,详细说明请参考[初始化开发工具](initialize-development-tools.md)。 +关于如何准备插件开发的脚手架工具,详细说明请参考[初始化开发工具](initialize-development-tools)。 **Tips**:在终端运行 `dify version` 命令,检查是否出现版本号以确认成功安装脚手架工具。 @@ -74,7 +74,7 @@ Endpoints: 初始化插件模板后将生成一个代码文件夹,包含插件开发过程中所需的完整资源。熟悉 Agent 策略插件的整体代码结构有助于插件的开发过程。 -``` +```text ├── GUIDE.md # User guide and documentation ├── PRIVACY.md # Privacy policy and data handling guidelines ├── README.md # Project overview and setup instructions @@ -105,13 +105,13 @@ Agent 策略插件的开发主要围绕以下两个文件展开: 建议优先配置以下四个基础参数: -1\. **model**:指定要调用的大语言模型(LLM),如 GPT-4、GPT-4o-mini 等。 +1. **model**:指定要调用的大语言模型(LLM),如 GPT-4、GPT-4o-mini 等。 -2\. **tools**:定义插件可以使用的工具列表,增强插件功能。 +2. **tools**:定义插件可以使用的工具列表,增强插件功能。 -3\. **query**:设置与模型交互的提示词或输入内容。 +3. **query**:设置与模型交互的提示词或输入内容。 -4\. **maximum\_iterations**:限制插件执行的最大迭代次数,避免过度计算。 +4. **maximum_iterations**:限制插件执行的最大迭代次数,避免过度计算。 示例代码: @@ -253,10 +253,6 @@ features: 修改插件配置文件并重启后,你将在节点配置界面中看到 **记忆** 开关。点击右侧的开关按钮,启用记忆功能。 -

- Memory -

- 启用后,您可以通过 **窗口大小** 滑块调整记忆窗口,它决定了模型能够“记住”多少之前的对话内容。 3. 调试历史消息 @@ -1139,9 +1135,9 @@ class BasicAgentAgentStrategy(AgentStrategy): ### 3. 调试插件 -配置插件的声明文件与功能代码后,在插件的目录内运行 `python -m main` 命令重启插件。接下来需测试插件是否可以正常运行。Dify 提供远程调试方式,前往[“插件管理”](https://console-plugin.dify.dev/plugins)获取调试 Key 和远程服务器地址。 +配置插件的声明文件与功能代码后,在插件的目录内运行 `python -m main` 命令重启插件。接下来需测试插件是否可以正常运行。Dify 提供远程调试方式,前往[“插件管理”](https://cloud.dify.ai/plugins)获取调试 Key 和远程服务器地址。 -
+![Image](https://assets-docs.dify.ai/2024/12/053415ef127f1f4d6dd85dd3ae79626a.png) 回到插件项目,拷贝 `.env.example` 文件并重命名为 `.env`,将获取的远程服务器地址和调试 Key 等信息填入至 `REMOTE_INSTALL_HOST` 与 `REMOTE_INSTALL_KEY` 参数内。 @@ -1154,7 +1150,7 @@ REMOTE_INSTALL_KEY=****-****-****-****-**** 运行 `python -m main` 命令启动插件。在插件页即可看到该插件已被安装至 Workspace 内。其他团队成员也可以访问该插件。 -

访问插件

+![访问插件](https://assets-docs.dify.ai/2025/01/c82ec0202e5bf914b36e06c796398dd6.png) ### 打包插件(可选) diff --git a/zh-hans/policies/agreement/README.mdx b/zh-hans/policies/agreement/README.mdx index 2eea3893..ea88727e 100644 --- a/zh-hans/policies/agreement/README.mdx +++ b/zh-hans/policies/agreement/README.mdx @@ -2,7 +2,6 @@ title: 用户协议 --- - ### 服务条款与隐私政策 您可以通过以下内容了解在使用 Dify.AI 时需遵循的服务条款和隐私政策。 diff --git a/zh-hans/policies/agreement/privacy.mdx b/zh-hans/policies/agreement/privacy.mdx new file mode 100644 index 00000000..e37e4816 --- /dev/null +++ b/zh-hans/policies/agreement/privacy.mdx @@ -0,0 +1,4 @@ +--- +title: "隐私政策" +url: "https://dify.ai/privacy" +--- diff --git a/zh-hans/policies/agreement/tos.mdx b/zh-hans/policies/agreement/tos.mdx new file mode 100644 index 00000000..e7a07b70 --- /dev/null +++ b/zh-hans/policies/agreement/tos.mdx @@ -0,0 +1,4 @@ +--- +title: "服务条款" +url: "https://dify.ai/terms" +---