⚙️ Live Search Settings:
The LiveSearch_Settings node is designed to manage and configure the search settings for the LiveSearch system, separating these configurations from the main logic and API interactions. This node allows you to customize how searches are conducted, offering options to enable or disable web searches, optimize queries, and set the number of results returned. By providing a dedicated space for these settings, the node enhances the modularity and flexibility of the LiveSearch system, allowing you to tailor the search behavior to meet specific needs or preferences. This separation of concerns ensures that the search logic remains clean and focused, while the settings can be adjusted independently to optimize performance and results.
⚙️ Live Search Settings Input Parameters:
mode
The mode parameter determines the type of search operation to be performed. It offers two options: "T2T" (Text-to-Text) and "TI2T" (Text-and-Image-to-Text). The default setting is "T2T". This parameter is crucial as it dictates the nature of the search, whether it involves only textual data or a combination of text and images, thereby impacting the search results and their relevance.
enable_web_search
The enable_web_search parameter is a boolean setting that allows you to toggle web search functionality on or off. When set to true, web searches are enabled, providing broader search results from the internet. The default value is true, with labels "Web Search ON" and "Web Search OFF" to indicate its status. This parameter is essential for determining whether the search should include external web data or be limited to local or predefined datasets.
num_results
The num_results parameter specifies the number of search results to be returned. It is an integer value with a default of 3, a minimum of 1, and a maximum of 10. This parameter directly influences the volume of data returned from a search query, allowing you to control the breadth of information retrieved and manage the balance between comprehensiveness and conciseness.
output_language
The output_language parameter allows you to set the language of the search results. It offers two options: "中文" (Chinese) and "English", with "中文" as the default. This parameter is vital for ensuring that the search results are presented in the preferred language, enhancing the accessibility and usability of the information retrieved.
optimize_query
The optimize_query parameter is a boolean setting that enables or disables query optimization. When enabled, the search query is refined to improve the relevance and accuracy of the results. The default value is true, with labels "Query Optimization ON" and "Query Optimization OFF". This parameter is important for enhancing the efficiency and effectiveness of the search process, ensuring that the results are as pertinent as possible.
proxy
The proxy parameter is an optional string that allows you to specify a proxy server for the search operations. It has a default empty value and a placeholder example of "http://127.0.0.1:7890 (Optional)". This parameter is useful for routing search requests through a proxy, which can be beneficial for privacy, security, or accessing restricted content.
⚙️ Live Search Settings Output Parameters:
search_settings
The search_settings output parameter returns a dictionary containing the configured search settings. This dictionary includes all the input parameters and their values, providing a comprehensive configuration that can be passed to the search agent. This output is crucial for ensuring that the search agent operates with the correct settings, thereby aligning the search process with the specified preferences and requirements.
⚙️ Live Search Settings Usage Tips:
- To maximize the relevance of search results, enable the
optimize_querysetting, which refines the search query for better accuracy. - If you require search results in a specific language, ensure that the
output_languageparameter is set to your preferred language to avoid language-related discrepancies.
⚙️ Live Search Settings Common Errors and Solutions:
Invalid mode selection
- Explanation: The mode selected is not one of the predefined options ("T2T" or "TI2T").
- Solution: Ensure that the
modeparameter is set to either "T2T" or "TI2T" to avoid defaulting to "T2T".
Proxy connection issues
- Explanation: The specified proxy server is unreachable or incorrectly configured.
- Solution: Verify the proxy URL and ensure that the server is accessible and correctly set up. If not needed, leave the proxy field empty.
