Web Search
You.com Web Search Node
Query the You.com Web Search API
This node queries the You.com web search API.
Node Inputs
- Search Query: The search text for the You.com web search
- Type:
Text
- Type:
- API Key: Your You.com API key
- Type:
Text
- Type:
Node Parameters
In the gear:
- Loader Type: The Type of loader (search) you want. The available types are: General and News.
Node Outputs
- Output: The results from the You.com web search
- Type:
List<Text>
- Example usage:
{{you_dot_com_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 You.com web search API and answers the query: What is the tallest building in New York?
.
- Input Node: Represents the search query
- You.com Web Search Node: Queries the You.com 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 You.com search results
- Prompt:
Question: {{input_0.text}} Context: {{you_dot_com_0.output}}
- System (Instruction):
Answer the question based on the context.
- Prompt:
- Output Node: Displays the answer
- Output:
{{openai_0.output}}
- Output: