ComfyUI  >  Nodes  >  comfyui_LLM_party >  谷歌搜索工具(google_tool)

ComfyUI Node: 谷歌搜索工具(google_tool)

Class Name

google_tool

Category
大模型派对(llm_party)/工具(tools)
Author
heshengtao (Account age: 2893 days)
Extension
comfyui_LLM_party
Latest Updated
6/22/2024
Github Stars
0.1K

How to Install comfyui_LLM_party

Install this extension via the ComfyUI Manager by searching for  comfyui_LLM_party
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui_LLM_party in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Cloud for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

谷歌搜索工具(google_tool) Description

Facilitates web searches using Google for AI artists to gather data, references, and inspiration efficiently.

谷歌搜索工具(google_tool):

The google_tool node is designed to facilitate web searches using Google, allowing you to retrieve information from the internet based on specified keywords. This tool is particularly useful for AI artists who need to gather data, references, or inspiration from the web without leaving their creative environment. By leveraging Google's powerful search capabilities, the node can return relevant snippets and URLs, making it easier to find the information you need quickly and efficiently. The primary function of this node is to perform web searches and return the results in a structured format, which can then be used for various creative or analytical purposes.

谷歌搜索工具(google_tool) Input Parameters:

is_enable

This parameter is a boolean that determines whether the google_tool node is active. When set to True, the node will perform the web search; when set to False, the node will not execute any search. The default value is True.

google_api_key

This optional parameter is a string that represents your Google API key. The API key is necessary for authenticating your requests to the Google Custom Search Engine (CSE). If not provided, the node will attempt to use a default API key from the configuration. There is no default value for this parameter, and it must be a valid API key if specified.

google_CSE_ID

This optional parameter is a string that represents your Google Custom Search Engine (CSE) ID. The CSE ID is used to specify which custom search engine to use for the queries. If not provided, the node will attempt to use a default CSE ID from the configuration. There is no default value for this parameter, and it must be a valid CSE ID if specified.

谷歌搜索工具(google_tool) Output Parameters:

tool

The output parameter is a string that contains the search results in a structured JSON format. This JSON includes the search snippets and URLs retrieved from Google based on the specified keywords. The output is designed to be easily parsed and used in subsequent nodes or processes, providing a convenient way to access and utilize web search results.

谷歌搜索工具(google_tool) Usage Tips:

  • Ensure that you have a valid Google API key and CSE ID to authenticate your search requests. Without these, the node will not be able to perform searches.
  • Use specific and relevant keywords to get the most accurate search results. Combining multiple keywords can help narrow down the search to more relevant information.
  • If you do not get the desired results on the first attempt, try adjusting the keywords or the paper_num parameter to explore different pages of search results.

谷歌搜索工具(google_tool) Common Errors and Solutions:

Error: 403 - Access Denied

  • Explanation: This error occurs when the provided Google API key or CSE ID is invalid or does not have the necessary permissions.
  • Solution: Verify that your API key and CSE ID are correct and have the required permissions. You may need to generate a new API key or update your CSE settings.

Exception occurred: <error_message>

  • Explanation: This error indicates that an exception was raised during the execution of the web search, which could be due to various reasons such as network issues or invalid parameters.
  • Solution: Check the error message for specific details and ensure that all input parameters are correctly specified. Verify your network connection and try again. If the problem persists, consult the documentation or support for further assistance.

谷歌搜索工具(google_tool) Related Nodes

Go back to the extension to check out more related nodes.
comfyui_LLM_party
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.