diff --git a/ui/public/fx/bochaai/detail.md b/ui/public/fx/bochaai/detail.md new file mode 100644 index 000000000..35481d265 --- /dev/null +++ b/ui/public/fx/bochaai/detail.md @@ -0,0 +1,16 @@ +## 概述 + +博查工具是一个支持自然语言搜索的 Web Search API,从近百亿网页和生态内容源中搜索高质量世界知识,包括新闻、图片、视频、百科、机酒、学术等。 + + +## 配置 + +1. 获取API Key  +在[博查开放平台](https://open.bochaai.com/overview) 上申请 API 密钥。 +![API Key](/ui/fx/img/bocha_APIKey.jpg) +2. 在函数库中配置 +在函数库的博查函数面板中,点击 … > 启用参数,填写 API 密钥,并启用该函数。 +![启动参数](/ui/fx/img/bocha_setting.jpg) +3. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->博查,设置使用参数。 +![应用中使用](/ui/fx/img/bocha_app_used.jpg) diff --git a/ui/public/fx/bochaai/icon.png b/ui/public/fx/bochaai/icon.png new file mode 100644 index 000000000..530a086ed Binary files /dev/null and b/ui/public/fx/bochaai/icon.png differ diff --git a/ui/public/fx/google_search/detail.md b/ui/public/fx/google_search/detail.md new file mode 100644 index 000000000..ab68b6ab5 --- /dev/null +++ b/ui/public/fx/google_search/detail.md @@ -0,0 +1,21 @@ +## 概述 + +Google 搜索工具是一个实时 API,可提取搜索引擎结果,提供来自 Google 的结构化数据。它支持各种搜索类型,包括 Web、图像、新闻和地图。 + +## 配置 + +1. 创建 Google Custom Search Engine +在[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) +4. 配置启动参数 +在Google 搜索函数的启动参数中填写配置以上参数,并启用该函数。 +![启动参数](/ui/fx/img/google_setting.jpg) +5. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->Google搜索,设置使用参数。 +![应用中使用](/ui/fx/img/google_app_used.jpg) diff --git a/ui/public/fx/google_search/icon.png b/ui/public/fx/google_search/icon.png new file mode 100644 index 000000000..7b903159b Binary files /dev/null and b/ui/public/fx/google_search/icon.png differ 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_APIKey.jpg b/ui/public/fx/img/bocha_APIKey.jpg new file mode 100644 index 000000000..998aa06f0 Binary files /dev/null and b/ui/public/fx/img/bocha_APIKey.jpg differ diff --git a/ui/public/fx/img/bocha_app_used.jpg b/ui/public/fx/img/bocha_app_used.jpg new file mode 100644 index 000000000..71fece501 Binary files /dev/null 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 new file mode 100644 index 000000000..86daddd31 Binary files /dev/null and b/ui/public/fx/img/bocha_setting.jpg differ diff --git a/ui/public/fx/img/google_APIKey.jpg b/ui/public/fx/img/google_APIKey.jpg new file mode 100644 index 000000000..4b6e069e0 Binary files /dev/null and b/ui/public/fx/img/google_APIKey.jpg differ diff --git a/ui/public/fx/img/google_AddSearchEngine.jpg b/ui/public/fx/img/google_AddSearchEngine.jpg new file mode 100644 index 000000000..c0182b406 Binary files /dev/null and b/ui/public/fx/img/google_AddSearchEngine.jpg differ diff --git a/ui/public/fx/img/google_app_used.jpg b/ui/public/fx/img/google_app_used.jpg new file mode 100644 index 000000000..7b4b492db Binary files /dev/null and b/ui/public/fx/img/google_app_used.jpg differ diff --git a/ui/public/fx/img/google_cx.jpg b/ui/public/fx/img/google_cx.jpg new file mode 100644 index 000000000..ce13b5c4a Binary files /dev/null and b/ui/public/fx/img/google_cx.jpg differ diff --git a/ui/public/fx/img/google_setting.jpg b/ui/public/fx/img/google_setting.jpg new file mode 100644 index 000000000..501c580f6 Binary files /dev/null and b/ui/public/fx/img/google_setting.jpg differ diff --git a/ui/public/fx/img/langsearch_APIKey.jpg b/ui/public/fx/img/langsearch_APIKey.jpg new file mode 100644 index 000000000..0705d54a3 Binary files /dev/null and b/ui/public/fx/img/langsearch_APIKey.jpg differ diff --git a/ui/public/fx/img/langsearch_app_used.jpg b/ui/public/fx/img/langsearch_app_used.jpg new file mode 100644 index 000000000..85db6755f Binary files /dev/null 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 new file mode 100644 index 000000000..967cd3040 Binary files /dev/null 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 new file mode 100644 index 000000000..49f7fa791 --- /dev/null +++ b/ui/public/fx/langsearch/detail.md @@ -0,0 +1,17 @@ +## 概述 + +LangSearch 是一个提供免费Web Search API和Rerank API的服务,支持新闻、图像、视频等内容。它结合了关键词和向量进行混合搜索,以提高准确性。 + + +## 配置 + +1. 获取API Key  +在[LangSearch](https://langsearch.com/overview) 上申请 API 密钥。 +![API Key](/ui/fx/img/langsearch_APIKey.jpg) +2. 在函数库中配置 +在函数库的LangSearch函数面板中,点击 … > 启用参数,填写 API 密钥,并启用该函数。 +![启动参数](/ui/fx/img/langsearch_setting.jpg) +3. 在应用中使用 +在高级编排应用中,点击添加组件->函数库->LangSearch,设置使用参数。 +![应用中使用](/ui/fx/img/langsearch_app_used.jpg) + \ No newline at end of file diff --git a/ui/public/fx/langsearch/icon.png b/ui/public/fx/langsearch/icon.png new file mode 100644 index 000000000..72ca125f3 Binary files /dev/null and b/ui/public/fx/langsearch/icon.png differ 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/mysql/icon.png b/ui/public/fx/mysql/icon.png new file mode 100644 index 000000000..7367c5e2e Binary files /dev/null and b/ui/public/fx/mysql/icon.png differ 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/public/fx/postgresql/icon.png b/ui/public/fx/postgresql/icon.png new file mode 100644 index 000000000..7893e74ea Binary files /dev/null and b/ui/public/fx/postgresql/icon.png differ diff --git a/ui/src/views/tool/component/AddInternalFunctionDialog.vue b/ui/src/views/tool/component/AddInternalFunctionDialog.vue index 312fc6e98..8630a87fc 100644 --- a/ui/src/views/tool/component/AddInternalFunctionDialog.vue +++ b/ui/src/views/tool/component/AddInternalFunctionDialog.vue @@ -15,7 +15,7 @@ :model="form" require-asterisk-position="right" > - + @@ -65,7 +65,7 @@ watch(dialogVisible, (bool) => { } }) -const open = (row: any, edit: boolean) => { +const open = (row: any, edit?: boolean) => { if (row) { form.value = cloneDeep(row) } diff --git a/ui/src/views/tool/component/ToolCard.vue b/ui/src/views/tool/component/ToolCard.vue index 710ed0a62..4914e6e49 100644 --- a/ui/src/views/tool/component/ToolCard.vue +++ b/ui/src/views/tool/component/ToolCard.vue @@ -1,8 +1,10 @@