diff --git a/ui/public/fx/bochaai/detail.md b/ui/public/fx/bochaai/detail.md index c0ca5e751..35481d265 100644 --- a/ui/public/fx/bochaai/detail.md +++ b/ui/public/fx/bochaai/detail.md @@ -1,15 +1,16 @@ ## 概述 -博查工具是一个支持自然语言搜索的 Web Search API,从近百亿网页和生态内容源中搜索高质量世界知识,包括新闻、图片、视频、百科、机酒、学术等. +博查工具是一个支持自然语言搜索的 Web Search API,从近百亿网页和生态内容源中搜索高质量世界知识,包括新闻、图片、视频、百科、机酒、学术等。 + ## 配置 1. 获取API Key  - 在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 - ![API Key](/ui/fx/img/bocha_APIKey.jpg) +在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 +![API Key](/ui/fx/img/bocha_APIKey.jpg) 2. 在函数库中配置 - 在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用博查函数。 - ![启动参数](/ui/fx/img/bocha_setting.jpg) +在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用该函数。 +![启动参数](/ui/fx/img/bocha_setting.jpg) 3. 在应用中使用 - 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/ui/fx/img/bocha_app_used.jpg) +在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 +![应用中使用](/ui/fx/img/bocha_app_used.jpg) diff --git a/ui/public/fx/google_search/detail.md b/ui/public/fx/google_search/detail.md index 06dc32233..2a5fe2ad3 100644 --- a/ui/public/fx/google_search/detail.md +++ b/ui/public/fx/google_search/detail.md @@ -5,18 +5,17 @@ Google 搜索工具是一个实时 API,可提取搜索引擎结果,提供来 ## 配置 1. 创建 Google Custom Search Engine - 在[Programmable Search Engine](https://programmablesearchengine.google.com/)中 添加 Search Engine - ![google 创建引擎](/ui/fx/img/google_AddSearchEngine.jpg) +在[Programmable Search Engine](https://programmablesearchengine.google.com/)中 添加 Search Engine +![google 创建引擎](/ui/fx/img/google_AddSearchEngine.jpg) 2. 获取cx参数 - 进入添加引擎,在【基本】菜单中获取搜索引擎的ID,即cx。 - ![google cx ](/ui/fx/img/google_cx.jpg) 3.获取 API Key - 打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn,获取API Key。 - ![google API Key](/ui/fx/img/google_APIKey.jpg) - -3. 配置启动参数 - 在Google搜索函数的启动参数中填写配置以上参数。 - ![启动参数](/ui/fx/img/google_setting.jpg) - -4. 在应用中使用 - 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/ui/fx/img/google_app_used.jpg) +进入添加的引擎详情中,在【基本】菜单中获取搜索引擎的ID,即cx。 +![google cx ](/ui/fx/img/google_cx.jpg) +3.获取 API Key +打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn 获取API Key。 +![google API Key](/ui/fx/img/google_APIKey.jpg) +4. 配置启动参数 +在Google 搜索函数的启动参数中填写配置以上参数,并启用该函数。 +![启动参数](/ui/fx/img/google_setting.jpg) +5. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->Google搜索,设置使用参数。 +![应用中使用](/ui/fx/img/google_app_used.jpg) diff --git a/ui/public/fx/img/MySQL_app_used.jpg b/ui/public/fx/img/MySQL_app_used.jpg new file mode 100644 index 000000000..42db47f9c Binary files /dev/null and b/ui/public/fx/img/MySQL_app_used.jpg differ diff --git a/ui/public/fx/img/MySQL_setting.jpg b/ui/public/fx/img/MySQL_setting.jpg new file mode 100644 index 000000000..206c35a8b Binary files /dev/null and b/ui/public/fx/img/MySQL_setting.jpg differ diff --git a/ui/public/fx/img/PostgreSQL_app_used.jpg b/ui/public/fx/img/PostgreSQL_app_used.jpg new file mode 100644 index 000000000..7fee014da Binary files /dev/null and b/ui/public/fx/img/PostgreSQL_app_used.jpg differ diff --git a/ui/public/fx/img/PostgreSQL_setting.jpg b/ui/public/fx/img/PostgreSQL_setting.jpg new file mode 100644 index 000000000..e279a26c9 Binary files /dev/null and b/ui/public/fx/img/PostgreSQL_setting.jpg differ diff --git a/ui/public/fx/img/bocha_app_used.jpg b/ui/public/fx/img/bocha_app_used.jpg index 2feeaeee0..71fece501 100644 Binary files a/ui/public/fx/img/bocha_app_used.jpg and b/ui/public/fx/img/bocha_app_used.jpg differ diff --git a/ui/public/fx/img/bocha_setting.jpg b/ui/public/fx/img/bocha_setting.jpg index 9224d7139..86daddd31 100644 Binary files a/ui/public/fx/img/bocha_setting.jpg and b/ui/public/fx/img/bocha_setting.jpg differ diff --git a/ui/public/fx/img/google_app_used.jpg b/ui/public/fx/img/google_app_used.jpg index 9b4654bf2..7b4b492db 100644 Binary files a/ui/public/fx/img/google_app_used.jpg and b/ui/public/fx/img/google_app_used.jpg differ diff --git a/ui/public/fx/img/google_setting.jpg b/ui/public/fx/img/google_setting.jpg index c55be5549..501c580f6 100644 Binary files a/ui/public/fx/img/google_setting.jpg and b/ui/public/fx/img/google_setting.jpg differ diff --git a/ui/public/fx/img/langsearch_app_used.jpg b/ui/public/fx/img/langsearch_app_used.jpg index e10b57861..85db6755f 100644 Binary files a/ui/public/fx/img/langsearch_app_used.jpg and b/ui/public/fx/img/langsearch_app_used.jpg differ diff --git a/ui/public/fx/img/langsearch_setting.jpg b/ui/public/fx/img/langsearch_setting.jpg index 9224d7139..967cd3040 100644 Binary files a/ui/public/fx/img/langsearch_setting.jpg and b/ui/public/fx/img/langsearch_setting.jpg differ diff --git a/ui/public/fx/langsearch/detail.md b/ui/public/fx/langsearch/detail.md index 04883e7dc..8189bb7f3 100644 --- a/ui/public/fx/langsearch/detail.md +++ b/ui/public/fx/langsearch/detail.md @@ -1,15 +1,17 @@ ## 概述 -博查工具是一个支持自然语言搜索的 Web Search API,从近百亿网页和生态内容源中搜索高质量世界知识,包括新闻、图片、视频、百科、机酒、学术等. +LangSearch 是一个提供免费Web Search API和Rerank API的服务,支持新闻、图像、视频等内容。它结合了关键词和向量进行混合搜索,以提高准确性。 + ## 配置 1. 获取API Key  - 在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 - ![API Key](/ui/fx/img/langsearch_APIKey.jpg) +在[Langsearch](https://langsearch.com/overview) 上申请 API 密钥。 +![API Key](/ui/fx/img/langsearchAPI_Key.jpg) 2. 在函数库中配置 - 在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用博查函数。 - ![启动参数](/ui/fx/img/langsearch_setting.jpg) +在函数库的LangSearch函数面板中,点击 … > 启用参数,填写 API 密钥,并启用该函数。 +![启动参数](/ui/fx/img/langsearch_setting.jpg) 3. 在应用中使用 - 在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 - ![应用中使用](/ui/fx/img/langsearch_app_used.jpg) +在高级编排应用中,点击添加组件->函数库->LangSearch,设置使用参数。 +![应用中使用](/ui/fx/img/langsearch_app_used.jpg) + \ No newline at end of file diff --git a/ui/public/fx/mysql/detail.md b/ui/public/fx/mysql/detail.md new file mode 100644 index 000000000..6900b32ad --- /dev/null +++ b/ui/public/fx/mysql/detail.md @@ -0,0 +1,14 @@ +## 概述 + +MySQL查询是一个连接MySQL数据库执行SQL查询的工具。 + + +## 配置 +  +1. 在函数库中配置启动参数 +在函数库的MySQL函数面板中,点击 … > 启用参数,填写数据库连接参数,并启用该函数。 +![启动参数](/ui/fx/img/MySQL_setting.jpg) +2. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->MySQL查询,设置查询内容。 +![应用中使用](/ui/fx/img/MySQL_app_used.jpg) + \ No newline at end of file diff --git a/ui/public/fx/postgresql/detail.md b/ui/public/fx/postgresql/detail.md new file mode 100644 index 000000000..f11a42011 --- /dev/null +++ b/ui/public/fx/postgresql/detail.md @@ -0,0 +1,14 @@ +## 概述 + +PostgreSQL查询是一个连接PostgreSQL数据库执行SQL查询的工具。 + + +## 配置 +  +1. 在函数库中配置启动参数 +在函数库的PostgreSQL函数面板中,点击 … > 启用参数,填写数据库连接参数,并启用该函数。 +![启动参数](/ui/fx/img/PostgreSQL_setting.jpg) +2. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->PostgreSQL查询,设置查询内容。 +![应用中使用](/ui/fx/img/PostgreSQL_app_used.jpg) + \ No newline at end of file diff --git a/ui/src/assets/fileType/file-icon.svg b/ui/src/assets/fileType/file-icon.svg new file mode 100644 index 000000000..59b195887 --- /dev/null +++ b/ui/src/assets/fileType/file-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 00fcfacf8..0836c7993 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -1,5 +1,6 @@