mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 09:42:48 +00:00
22 lines
1.0 KiB
Markdown
22 lines
1.0 KiB
Markdown
## 概述
|
||
|
||
Google 搜索工具是一个实时 API,可提取搜索引擎结果,提供来自 Google 的结构化数据。它支持各种搜索类型,包括 Web、图像、新闻和地图。
|
||
|
||
## 配置
|
||
|
||
1. 创建 Google Custom Search Engine
|
||
在[Programmable Search Engine](https://programmablesearchengine.google.com/)中 添加 Search Engine
|
||

|
||
2. 获取cx参数
|
||
进入添加的引擎详情中,在【基本】菜单中获取搜索引擎的ID,即cx。
|
||

|
||
3. 获取 API Key
|
||
打开 https://developers.google.com/custom-search/v1/overview?hl=zh-cn 获取API Key。
|
||

|
||
4. 配置启动参数
|
||
在Google 搜索函数的启动参数中填写配置以上参数,并启用该函数。
|
||

|
||
5. 在应用中使用
|
||
在高级编排应用中,点击添加组件->函数库->Google搜索,设置使用参数。
|
||

|