diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png new file mode 100644 index 0000000..c1d4744 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index c1d4744..bdecbd1 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index bdecbd1..4874bed 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index 4874bed..c8088e9 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index c8088e9..9ebf101 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index 9ebf101..7255a2b 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png index 7255a2b..74855c9 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png index 74855c9..83e5b26 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1).png index 83e5b26..a2986bd 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png index a2986bd..ef716f9 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1).png index ef716f9..847ca13 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1).png index 847ca13..7314bb1 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1) (1).png index 7314bb1..6d0ee5a 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1) (1).png index 6d0ee5a..1fb04ec 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1) (1).png b/zh_CN/.gitbook/assets/image (1) (1).png index 1fb04ec..cd231df 100644 Binary files a/zh_CN/.gitbook/assets/image (1) (1).png and b/zh_CN/.gitbook/assets/image (1) (1).png differ diff --git a/zh_CN/.gitbook/assets/image (1).png b/zh_CN/.gitbook/assets/image (1).png index cd231df..b98d4ee 100644 Binary files a/zh_CN/.gitbook/assets/image (1).png and b/zh_CN/.gitbook/assets/image (1).png differ diff --git a/zh_CN/.gitbook/assets/image.png b/zh_CN/.gitbook/assets/image.png index b98d4ee..c98dd86 100644 Binary files a/zh_CN/.gitbook/assets/image.png and b/zh_CN/.gitbook/assets/image.png differ diff --git a/zh_CN/guides/application-design/agent.md b/zh_CN/guides/application-design/agent.md index d387d6e..315ea26 100644 --- a/zh_CN/guides/application-design/agent.md +++ b/zh_CN/guides/application-design/agent.md @@ -8,7 +8,7 @@ 为了方便快速上手使用,您可以在“探索”中找到智能助手的应用模板,添加到自己的工作区,或者在此基础上进行自定义。在全新的 Dify 工作室中,你也可以从零编排一个专属于你自己的智能助手,帮助你完成财务报表分析、撰写报告、Logo 设计、旅程规划等任务。 -

探索-智能助手应用模板

+

探索-智能助手应用模板

在“工作室-助手型应用”内选择智能助手即可开始编排。 diff --git a/zh_CN/guides/knowledge-base/integrate_knowledge_within_application.md b/zh_CN/guides/knowledge-base/integrate_knowledge_within_application.md index 50da98d..6789dd3 100644 --- a/zh_CN/guides/knowledge-base/integrate_knowledge_within_application.md +++ b/zh_CN/guides/knowledge-base/integrate_knowledge_within_application.md @@ -93,7 +93,7 @@ Dify 目前已支持 Cohere Rerank 模型,通过进入“模型供应商-> Coh 通过进入“数据集->创建数据集->检索设置”页面并在添加 Rerank 设置。除了在创建数据集可以设置 Rerank ,你也可以在已创建的数据集设置内更改 Rerank 配置,在应用编排的数据集召回模式设置中更改 Rerank 配置。 -

数据集检索模式中设置 Rerank 模型

+

数据集检索模式中设置 Rerank 模型

**TopK**:用于设置 Rerank 后返回相关文档的数量。 @@ -101,4 +101,4 @@ Dify 目前已支持 Cohere Rerank 模型,通过进入“模型供应商-> Coh 通过进入“提示词编排->上下文->设置”页面中设置为多路召回模式时需开启 Rerank 模型。 -

数据集多路召回模式中设置 Rerank 模型

+

数据集多路召回模式中设置 Rerank 模型

diff --git a/zh_CN/guides/knowledge-base/retrieval_test_and_citation.md b/zh_CN/guides/knowledge-base/retrieval_test_and_citation.md index d6adaec..099b800 100644 --- a/zh_CN/guides/knowledge-base/retrieval_test_and_citation.md +++ b/zh_CN/guides/knowledge-base/retrieval_test_and_citation.md @@ -4,7 +4,7 @@ Dify 知识库内提供了文本召回测试的功能,用于调试不同检索方式及参数配置下的召回效果。你可以在 **源文本** 输入框输入常见的用户问题,点击 **测试** 并在右侧的 **召回段落** 查看召回结果。在 **最近查询** 内可以查看到历史的查询记录;若知识库已关联至应用内,由应用内触发的知识库查询也可以在此查看记录。 -

召回测试

+

召回测试

点击源文本输入框右上角的图标可以更换当前知识库的检索方式和具体参数,**保存之后仅在召回测试的调试过程中生效**。在召回测试完成调试并确认更改知识库的检索参数时,需要在 [知识库设置 > 检索设置](retrieval\_test\_and\_citation.md#zhi-shi-ku-she-zhi) 中进行更改。 @@ -27,7 +27,7 @@ Dify 知识库内提供了文本召回测试的功能,用于调试不同检索 在应用内测试知识库效果时,你可以进入 **工作室 -- 添加功能 -- 引用归属**,打开引用归属功能。 -

打开引用与归属功能

+

打开引用与归属功能

开启功能后,当大语言模型回复问题时引用来自知识库的内容时,可以在回复内容下面查看到具体的引用段落信息,包括**原始分段文本、分段序号、匹配度**等。点击引用分段上方的 **跳转至知识库 ,**可以快捷访问该分段所在的知识库分段列表,方便开发者进行调试编辑。 diff --git a/zh_CN/guides/workflow/node/answer.md b/zh_CN/guides/workflow/node/answer.md index e117bd0..08804ea 100644 --- a/zh_CN/guides/workflow/node/answer.md +++ b/zh_CN/guides/workflow/node/answer.md @@ -14,8 +14,8 @@ 示例2:输出图片+LLM回复 -
+
-
+
提示:直接回复节点可以不作为最终的输出节点,作为流程过程节点时,可以在中间步骤流式输出结果。 diff --git a/zh_CN/guides/workflow/node/ifelse.md b/zh_CN/guides/workflow/node/ifelse.md index a7ac0c5..8feaf38 100644 --- a/zh_CN/guides/workflow/node/ifelse.md +++ b/zh_CN/guides/workflow/node/ifelse.md @@ -21,9 +21,11 @@ * 为空(Is empty) * 不为空(Is not empty) +*** + ### 场景 -
+
以上图**文本总结工作流**为例 @@ -35,4 +37,4 @@ 涉及复杂的条件判断时,可以设置多重条件判断,在条件之间设置 **AND** 或者 **OR**,即在条件之间取**交集**或者**并集**。 -

多重条件判断

+

多重条件判断

diff --git a/zh_CN/guides/workflow/node/llm.md b/zh_CN/guides/workflow/node/llm.md index f3d7cf1..97da61f 100644 --- a/zh_CN/guides/workflow/node/llm.md +++ b/zh_CN/guides/workflow/node/llm.md @@ -1,8 +1,26 @@ # LLM -调用大语言模型回答问题或者对自然语言进行处理。你可以在 LLM 节点中选择合适的模型,编写提示词,设置提示词中引用的上下文,配置记忆开关、设置记忆窗口的大小等。 +### 定义 -
+调用大语言模型回答问题或者对自然语言进行处理。 + +
+ +### 场景 + +LLM 是 Chatflow/Workflow 的核心节点,利用大语言模型的对话/生成/分类/处理等能力,根据给定的提示词处理广泛的任务类型,并能够在工作流的不同环节使用。 + +* **意图识别**,在客服对话情景中,对用户问题进行意图识别和分类,导向下游不同的流程。 +* **文本生成**,在文章生成情景中,作为内容生成的节点,根据主题、关键词生成符合的文本内容。 +* **内容分类**,在邮件批处理情景中,对邮件的类型进行自动化分类,如咨询/投诉/垃圾邮件。 +* **文本转换**,在文本翻译情景中,将用户提供的文本内容翻译成指定语言。 +* **代码生成**,在辅助编程情景中,根据用户的要求生成指定的业务代码,编写测试用例。 +* **RAG**,在知识库问答情景中,将检索到的相关知识和用户问题重新组织回复问题。 +* **图片理解,**使用 vision 能力的多模态模型,能对图像内的信息进行理解和问答。 + +选择合适的模型,编写提示词,你可以在 Chatflow/Workflow 中构建出强大、可靠的解决方案。 + +### 如何配置 配置 LLM 节点主要包括两个部分: diff --git a/zh_CN/learn-more/extended-reading/retrieval-augment/rerank.md b/zh_CN/learn-more/extended-reading/retrieval-augment/rerank.md index b2c3717..20ba08e 100644 --- a/zh_CN/learn-more/extended-reading/retrieval-augment/rerank.md +++ b/zh_CN/learn-more/extended-reading/retrieval-augment/rerank.md @@ -38,7 +38,7 @@ Dify 目前已支持 Cohere Rerank 模型,通过进入“模型供应商-> Coh 通过进入“数据集->创建数据集->检索设置”页面并在添加 Rerank 设置。除了在创建数据集可以设置 Rerank ,你也可以在已创建的数据集设置内更改 Rerank 配置,在应用编排的数据集召回模式设置中更改 Rerank 配置。 -

数据集检索模式中设置 Rerank 模型

+

数据集检索模式中设置 Rerank 模型

\*\*TopK:\*\*用于设置 Rerank 后返回相关文档的数量。 @@ -50,4 +50,4 @@ Dify 目前已支持 Cohere Rerank 模型,通过进入“模型供应商-> Coh 关于多路召回模式的说明:🔗 -

数据集多路召回模式中设置 Rerank 模型

+

数据集多路召回模式中设置 Rerank 模型

diff --git a/zh_CN/learn-more/faq/llms-use-faq.md b/zh_CN/learn-more/faq/llms-use-faq.md index 0d3a7ee..d146052 100644 --- a/zh_CN/learn-more/faq/llms-use-faq.md +++ b/zh_CN/learn-more/faq/llms-use-faq.md @@ -125,7 +125,7 @@ Query or prefix prompt is too long, you can reduce the preix prompt, or shrink t 如下方表格示例,仅需保留第二行的表头,首行(表格1)为多余表头,需删掉。 -
+
### 20 买了 ChatGPT plus,为什么在 dify 里还不能使用 GPT4?