comfyui_LLM_party

1625

Available Nodes

searxng_tool

ComfyUI Node Documentation: searxng_tool

Overview

The searxng_tool node is a component of the ComfyUI LLM Party, designed to perform searches using the SearxNG search engine. This tool is part of the "Networking Tools" category within the project and is intended to facilitate searches across multiple categories such as general, images, videos, and more. This node is particularly useful for integrating search functionalities within LLM workflows.

Functionality

The searxng_tool node allows users to perform web searches via the SearxNG search engine. It can be used to find information across various categories, which can then be integrated into larger workflows within the ComfyUI environment.

Input Parameters

The node accepts the following inputs:

  1. searxng_api_url: This is a required string input that specifies the URL for the SearxNG API. By default, it is set to http://localhost:8080.

  2. categories: A selection input that allows users to choose the type of search category they are interested in. The available categories include:

    • general
    • images
    • videos
    • news
    • music
    • map
    • science
    • files
    • social_media
    • it
    • q&a
    • shopping

    This selection determines the type of content the search will return, allowing users to tailor searches to their specific needs.

  3. is_enable: A boolean input that determines if the search tool is enabled. The default value is True.

Outputs

The searxng_tool node produces the following output:

  • tool: This output is of type "STRING" and provides the results of the search in a structured JSON-like format. The structure includes details such as the search query and a description of what the function does. This output is intended for consumption by other nodes or components within a ComfyUI workflow.

Use in ComfyUI Workflows

The searxng_tool node can be seamlessly integrated into various ComfyUI workflows where searching is a required operation. For example, it can be used in workflows that involve:

  • Retrieving supplementary information for LLM processing.
  • Fetching images and videos for visualization purposes.
  • Aggregating news articles or social media posts for sentiment analysis.
  • Locating scientific papers or IT documentation for research tasks.

By using this node, users can enhance their workflows with dynamic, real-time information retrieval capabilities.

Special Features and Considerations

  • Multi-category Support: The node supports multiple search categories, making it flexible for various use cases.
  • Enable/Disable Option: The node can be easily enabled or disabled through the is_enable parameter, allowing for straightforward control within workflows.
  • Localization: The node displays different names based on the system language configuration, supporting both English and Chinese languages.

In conclusion, the searxng_tool node is a powerful utility designed to enhance ComfyUI workflows by integrating comprehensive search functionalities, making it an essential component for users looking to include real-time data retrieval in their machine learning and automation processes.