GITBOOK-170: No subject

pull/100/head
vincehe 2024-05-24 09:25:04 +00:00 committed by gitbook-bot
parent 6248ef56b6
commit daba0234f0
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
9 changed files with 15 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 909 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 KiB

View File

@ -1,8 +1,20 @@
# 知识检索
知识库检索节点用于从 Dify 知识库中查询与用户问题相关的文本内容,可作为后续 LLM 的上下文进行回答。
### 1 定义
从知识库中检索与用户问题相关的文本内容,可作为下游 LLM 节点的上下文来使用。
***
### 2 场景
常见情景:构建基于外部数据/知识的 AI 问答系统RAG。了解更多关于 RAG 的[基本概念](../../../learn-more/extended-reading/retrieval-augment/)。
下图为一个最基础的知识库问答系统示例,该流程的执行逻辑为:知识库检索作为 LLM 节点的前置步骤,在用户问题传递至 LLM 节点之前,先在知识检索节点内将匹配用户问题最相关的文本内容并召回,随后在 LLM 节点内将用户问题与检索到的上下文一同作为输入,让 LLM 根据检索内容来回复问题。
<figure><img src="../../../.gitbook/assets/image (193).png" alt=""><figcaption></figcaption></figure>
<figure><img src="../../../.gitbook/assets/output (3) (2).png" alt=""><figcaption></figcaption></figure>
配置知识库检索节点主要包含三个部分:

View File

@ -8,7 +8,7 @@
### **2 场景**
常见的使用情景包括**客服对话分类、客户评论分类、邮件批量分类**等。
常见的使用情景包括**客服对话意图分类、产品评价分类、邮件批量分类**等。
在一个典型的产品客服问答场景中,问题分类器可以作为知识库检索的前置步骤,对用户输入问题意图进行分类处理,分类后导向下游不同的知识库查询相关的内容,以精确回复用户的问题。