This node queries the SERP web search API.

Node Inputs

  1. Search Query: The search text for the SERP web search
    • Type: Text
  2. API Key: Your SERP API key
    • Type: Text

Node Outputs

  1. Output: The results from the SERP web search
    • Type: List<Text>
    • Example usage: {{serp_api_0.output}}

Considerations

  • API key is required.
  • Click on the “+” button on the right of the node to create and connect the node to a semantic search node to enable semantic search on the search results.

Example

The below example is a pipeline which queries the SERP web search API and answers the query: What is the tallest building in New York?.

  1. Input Node: Represents the search query
  2. Serp API Web Search Node: Queries the SERP web search API
    • Search Query: {{input_0.text}}
    • API Key: [API Key]
  3. LLM Node: Uses the LLM to answer the query, based on the results of the SERP API results
    • System (Instruction): Answer the question based on the context.
    • Prompt: Question: {{input_0.text}} Context: {{serp_api_0.output}}
  4. Output Node: Displays the answer
    • Output: {{openai_0.output}}