Web Search
Serp API Web Search Node
Query the Serp API Web Search API
This node queries the SERP web search API.
Node Inputs
- Search Query: The search text for the SERP web search
- Type:
Text
- Type:
- API Key: Your SERP API key
- Type:
Text
- Type:
Node Outputs
- Output: The results from the SERP web search
- Type:
List<Text>
- Example usage:
{{serp_api_0.output}}
- Type:
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?
.
- Input Node: Represents the search query
- Serp API Web Search Node: Queries the SERP web search API
- Search Query:
{{input_0.text}}
- API Key:
[API Key]
- Search Query:
- 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}}
- System (Instruction):
- Output Node: Displays the answer
- Output:
{{openai_0.output}}
- Output: