Intelligent Web Query and Semantic Re-Ranking Flow
detail.loadingPreview
Automates web searches, refines queries, semantically re-ranks results, and extracts structured metadata in multiple languages.
About This Workflow
This n8n workflow is designed to intelligently query the web, perform semantic re-ranking of search results, and extract structured metadata. It leverages the Brave Search API for initial queries and utilizes Langchain nodes for sophisticated query generation, result re-ranking, and output parsing. The workflow is triggered by a webhook and culminates in a structured response containing ranked URLs and extracted information.
Key Features
- Automated Web Searching: Integrates with Brave Search API for web queries.
- Intelligent Query Generation: Employs Langchain LLM for creating optimized search queries based on user intent.
- Semantic Re-Ranking: Ranks search results based on relevance and semantic similarity using Langchain.
- Structured Output Parsing: Extracts and formats relevant information from search results using Langchain output parsers.
- Webhook Trigger: Initiates the workflow via a webhook for dynamic requests.
- API Key Management: Includes guidance for setting up Brave Search API keys.
- Error Handling: Configured to continue processing on errors.
How To Use
-
Brave Search API Key Setup:
- Obtain an API key from
api.search.brave.com. - Subscribe to the free plan.
- Update the
X-Subscription-Tokenin the 'Query' node (a1ca671d-0b0c-4717-9def-93fdb965de8d) with your generated key.
- Obtain an API key from
-
Webhook Configuration:
- The 'Webhook' node (
6f18ebgc-83db-4900-bc2e-0a9f23d6e8c8) is configured to receive requests. - The 'Webhook Call' node (
d3cc4e7c-3ead-4d38-9b51-a11cd9d7faeb) demonstrates how to call this workflow. It sends aResearch Questionin the query parameters. - The 'Respond to Webhook' node (
acbdbe94-b5a7-4ec9-9fc8-c3ab147f42fa) sends the final ranked results back to the webhook.
- The 'Webhook' node (
-
Workflow Execution:
- Trigger the workflow by sending a request to the 'Webhook' node's URL, including a
Research Question. - The 'Semantic Search -Query Maker' (
01d73f91-1dd6-4b80-951c-9f944ea9d992) will generate an optimized search query. - The 'Query' node (
a1ca671d-0b0c-4717-9def-93fdb965de8d) will perform the Brave Search using the generated query. - The 'Query-1 Combined' node (
a27e75c7-0307-4d71-9266-5a56b297a6e3) aggregates the search results. - The 'Semantic Search - Result Re-Ranker' (
b8b6ae73-586a-406f-9641-57e2625f800c) semantically re-ranks the results and extracts information. - The 'Auto-fixing Output Parser6' (
ba5ea83e-1b47-475b-863f-269ae293729a) and 'Auto-fixing Output Parser' (ca426b6d-5412-4c5b-a55c-009a47c59a81) are present but their direct input/output connections are not fully detailed in this snippet. They likely prepare data for subsequent steps. - The 'Structured Output Parser1' (
501d5390-5317-4973-a3e9-b0f502399c2b) is configured to parse structured JSON output. - Finally, the 'Respond to Webhook' node (
acbdbe94-b5a7-4ec9-9fc8-c3ab147f42fa) sends the processed and ranked results back to the caller.
- Trigger the workflow by sending a request to the 'Webhook' node's URL, including a
-
Input Flexibility:
- If you need to change the input trigger from Webhook to another node, ensure you update the input connections in the 'Query 1' and 'Query 1 Ranker' nodes accordingly.
Apps Used
Workflow JSON
{
"id": "6b734889-6254-4a53-bcad-9fe0fc4e8542",
"name": "Intelligent Web Query and Semantic Re-Ranking Flow",
"nodes": 18,
"category": "Information Retrieval",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6b734889-6254...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.