diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 498067256..97ddde737 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -128,7 +128,7 @@ export default defineConfig({
],
},
{
- text: "配置对话模型",
+ text: "配置模型",
link: "/zh/deploy/models/readme",
},
{
@@ -140,6 +140,10 @@ export default defineConfig({
{ text: "n8n", link: "/zh/deploy/pipelines/n8n" },
],
},
+ {
+ text: "使用知识库",
+ link: "/zh/deploy/knowledge/readme",
+ },
{
text: "系统环境设置",
link: "/zh/deploy/settings",
@@ -354,6 +358,10 @@ export default defineConfig({
{ text: "n8n", link: "/en/deploy/pipelines/n8n" },
],
},
+ {
+ text: "Using Knowledge Base",
+ link: "/en/deploy/knowledge/readme",
+ },
{
text: "System Settings",
link: "/en/deploy/settings",
diff --git a/docs/assets/image/zh/deploy/knowledge/upload_docs.png b/docs/assets/image/zh/deploy/knowledge/upload_docs.png
new file mode 100644
index 000000000..8252416a7
Binary files /dev/null and b/docs/assets/image/zh/deploy/knowledge/upload_docs.png differ
diff --git a/docs/assets/image/zh/deploy/knowledge/use_kb.png b/docs/assets/image/zh/deploy/knowledge/use_kb.png
new file mode 100644
index 000000000..fc3a68eed
Binary files /dev/null and b/docs/assets/image/zh/deploy/knowledge/use_kb.png differ
diff --git a/docs/assets/image/zh/deploy/knowledge/use_kb_in_chat.png b/docs/assets/image/zh/deploy/knowledge/use_kb_in_chat.png
new file mode 100644
index 000000000..e7cb12b2d
Binary files /dev/null and b/docs/assets/image/zh/deploy/knowledge/use_kb_in_chat.png differ
diff --git a/docs/assets/image/zh/deploy/knowledge/use_local_agent.png b/docs/assets/image/zh/deploy/knowledge/use_local_agent.png
new file mode 100644
index 000000000..3a77c785f
Binary files /dev/null and b/docs/assets/image/zh/deploy/knowledge/use_local_agent.png differ
diff --git a/docs/assets/image/zh/deploy/models/embedding_model.png b/docs/assets/image/zh/deploy/models/embedding_model.png
new file mode 100644
index 000000000..5f2db2500
Binary files /dev/null and b/docs/assets/image/zh/deploy/models/embedding_model.png differ
diff --git a/docs/en/deploy/knowledge/readme.md b/docs/en/deploy/knowledge/readme.md
new file mode 100644
index 000000000..d82639c54
--- /dev/null
+++ b/docs/en/deploy/knowledge/readme.md
@@ -0,0 +1,29 @@
+# Using Knowledge Base
+
+LangBot natively supports RAG (Retrieval-Augmented Generation), you can create a knowledge base and bind it to a pipeline, and the pipeline will answer questions based on the content in the knowledge base.
+
+:::info
+- You need to configure the embedding model before creating a knowledge base, please read [Configure Models](/en/deploy/models/readme).
+:::
+
+## Build Knowledge Base
+
+In the knowledge base page, click the `Create Knowledge Base` button, fill in the knowledge base name, select the configured embedding model, and click the `Create` button.
+
+
+
+## Use Knowledge Base
+
+Please go to the pipeline configuration, in the "AI" page, select `Local Agent` as the runner, and select the knowledge base you just created below.
+
+
+
+
+
+:::info
+Only when the runner is `Local Agent`, can you use the LangBot native knowledge base, if you want to use the knowledge base with other runners, please refer to the documentation of the corresponding product.
+:::
+
+Now you can use the knowledge base to chat in the `Chat Debug` or the robot bound to the pipeline:
+
+
\ No newline at end of file
diff --git a/docs/zh/deploy/knowledge/readme.md b/docs/zh/deploy/knowledge/readme.md
new file mode 100644
index 000000000..6d3c06484
--- /dev/null
+++ b/docs/zh/deploy/knowledge/readme.md
@@ -0,0 +1,30 @@
+# 使用知识库 (Knowledge Base)
+
+LangBot 原生支持 RAG(Retrieval-Augmented Generation,即检索增强生成),您可以创建知识库,并将其与流水线绑定,流水线将根据知识库中的内容回答问题。
+
+:::info
+- 知识库的创建和使用需要先配置嵌入模型,请先阅读[配置模型](/zh/deploy/models/readme)。
+:::
+
+## 构建知识库
+
+在知识库页面,点击`创建知识库`按钮,填写知识库名称,选择已配置好的嵌入模型,然后点击`创建`按钮。
+之后请到知识库的“文档”页面,上传文档,LangBot 将会在后台开始解析和索引。
+
+
+
+## 使用知识库
+
+请到流水线配置中,“AI 能力”页,选择`内置 Agent`作为运行器,并在下方选择您刚刚创建的知识库。
+
+
+
+
+
+:::info
+仅当运行器为`内置 Agent`时,才可以使用 LangBot 原生知识库,若要在使用其他运行器时使用知识库,请参考所使用的运行器对应产品的文档。
+:::
+
+现在即可在`对话调试`或流水线所绑定的机器人上使用知识库进行对话:
+
+
\ No newline at end of file
diff --git a/docs/zh/deploy/models/readme.md b/docs/zh/deploy/models/readme.md
index b130ae8e7..32d2a0503 100644
--- a/docs/zh/deploy/models/readme.md
+++ b/docs/zh/deploy/models/readme.md
@@ -1,12 +1,14 @@
# 配置模型 (Models)
-模型将被流水线用于处理消息,您配置的第一个模型将被设置为默认流水线的模型。
+## 对话模型 (LLM Model)
+
+对话模型将被流水线用于处理消息,您配置的第一个模型将被设置为默认流水线的模型。

可以添加多个模型,然后再流水线中选择具体使用什么模型
-
+
填入这四个参数`模型名称`、`模型供应商`、`请求 URL`、`API Key`,然后提交即可
@@ -26,6 +28,14 @@
请求 URL 填入中转的 Base URL 即可,例如
-
+
-:::
\ No newline at end of file
+:::
+
+## 嵌入模型 (Embedding Model)
+
+嵌入模型将被用于计算消息的向量,若您需要使用知识库,请配置此模型。
+
+
+
+填入这四个参数`模型名称`、`模型供应商`、`请求 URL`、`API Key`,然后提交即可,之后请在知识库中配置使用此模型。