Skip to main content

Web Search

Controlled node

Overview

This node is used to perform a web search on a provided query. The results are returned either as text or as a list of dictionaries, depending on the configuration. You can choose to return the website text, the url, the title, or a combination of these. The node can be used to search for specific content on the web, or to gather information from multiple sources.

Inputs

InputTypeDescriptionDefault
QueryTextThe search query-
RunEventFires when the node starts running-

Outputs

OutputTypeDescription
PagesText | ListA list of pages (URLs).
DoneEventFires when the node has finished

Panel Controls

The Web Search node has a number of panel controls that allow you to configure the length and type of the content returned.

  • Max Tokens: This controls the maximum number of tokens (words or characters) to be returned in the search results. It works by culling the least relevant content from the search results until the specified token limit is reached.

  • Max Pages: This controls the maximum number of pages returned by dropping the least relevant pages until the specified limit is reached. This is useful for limiting the number of results returned by the search.

  • Object Result: When checked this will return the search results as a list of dictionaries, where each dictionary can contain the title, URL, and text content of the page. By default the search results are returned as text.

  • Return Options: This allows you to select which fields to return in the result. You can choose to return the title, URL, and/or text content of the page. By default only the URLs are returned.

Examples