diff --git a/zh_CN/.gitbook/assets/image (1) (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) (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) (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) (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 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) (1).png 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 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) (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 4874bed..c8088e9 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 c8088e9..9ebf101 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 9ebf101..7255a2b 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 7255a2b..74855c9 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 74855c9..83e5b26 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 83e5b26..a2986bd 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 a2986bd..ef716f9 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 ef716f9..847ca13 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 847ca13..7314bb1 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 7314bb1..6d0ee5a 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 6d0ee5a..1fb04ec 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 1fb04ec..cd231df 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 cd231df..b98d4ee 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 b98d4ee..c98dd86 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 c98dd86..aab0a24 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 315ea26..09bcd31 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 6789dd3..c6cca89 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 099b800..ba1ecb2 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 08804ea..ac3f076 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 8feaf38..cc86152 100644 --- a/zh_CN/guides/workflow/node/ifelse.md +++ b/zh_CN/guides/workflow/node/ifelse.md @@ -25,7 +25,7 @@ ### 场景 -
+
以上图**文本总结工作流**为例 @@ -37,4 +37,4 @@ 涉及复杂的条件判断时,可以设置多重条件判断,在条件之间设置 **AND** 或者 **OR**,即在条件之间取**交集**或者**并集**。 -

多重条件判断

+

多重条件判断

diff --git a/zh_CN/guides/workflow/node/llm.md b/zh_CN/guides/workflow/node/llm.md index 97da61f..1aaf0e0 100644 --- a/zh_CN/guides/workflow/node/llm.md +++ b/zh_CN/guides/workflow/node/llm.md @@ -4,7 +4,9 @@ 调用大语言模型回答问题或者对自然语言进行处理。 -
+

LLM 节点

+ +*** ### 场景 @@ -20,18 +22,22 @@ LLM 是 Chatflow/Workflow 的核心节点,利用大语言模型的对话/生 选择合适的模型,编写提示词,你可以在 Chatflow/Workflow 中构建出强大、可靠的解决方案。 +*** + ### 如何配置 -配置 LLM 节点主要包括两个部分: +

LLM 节点配置

-1. 选择模型 -2. 编写系统提示词 +**配置步骤:** -#### **配置模型** +1. **选择模型**,Dify 提供了全球主流模型的[支持](../../../getting-started/readme/model-providers.md),包括 OpenAI 的 GPT 系列、Anthropic 的 Claude 系列、Google 的 Gemini 系列等,选择一个模型取决于其推理能力、成本、响应速度、上下文窗口等因素,你需要根据场景需求和任务类型选择合适的模型。 +2. **配置模型参数**,模型参数用于控制模型的生成结果,例如温度、TopP,最大标记、回复格式等,为了方便选择系统同时提供了 3 套预设参数:创意,平衡和精确。 +3. **编写提示词**,LLM 节点提供了一个易用的提示词编排页面,选择聊天模型或补全模型,会显示不同的提示词编排结构。 +4. **高级设置**,可以开关记忆,设置记忆窗口,使用 Jinja-2 模版语言来进行更复杂的提示词等。 -在选择适合任务的模型之前,你需要在「系统设置—模型供应商」内完成模型配置。具体配置方式可以参考[模型配置说明](https://docs.dify.ai/v/zh-hans/guides/model-configuration)。选择好模型后可以对模型参数进行配置。 - -
+{% hint style="info" %} +如果你是初次使用 Dify ,在 LLM 节点选择模型之前,需要在 **系统设置—模型供应商** 内提前完成[模型配置](../../model-configuration/)。 +{% endhint %} #### **编写提示词** 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 20ba08e..61353f8 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 d146052..1383dbd 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?