Templates / Intelligent web query and semantic re-ranking flow using Brave and Google Gemini

Intelligent web query and semantic re-ranking flow using Brave and Google Gemini

Ready for 3.0

by Mind-Front · 5,230 views · created 2024-12-16 · Market Research, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Anthropic Chat Model, OpenAI Chat Model and Google Gemini Chat Model. It also calls api.search.brave.com and primary-production-8aa4.up.railway.app over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Date & Time: formats or calculates dates
  2. Semantic Search -Query Maker (Basic LLM Chain): sends a prompt to an LLM, with model: Agent Model; output parser: Auto-fixing Output Parser
  3. Query (HTTP Request): calls api.search.brave.com
  4. Query-1 Combined (Code): runs custom JavaScript code
  5. Semantic Search - Result Re-Ranker (Basic LLM Chain): sends a prompt to an LLM, with model: Agent Model; output parser: Auto-fixing Output Parser
  6. Respond to Webhook: sends the response back to the webhook caller
  7. Webhook Call (HTTP Request): calls primary-production-8aa4.up.railway.app
  8. Anthropic Chat Model: uses Anthropic Chat Model
  9. OpenAI Chat Model: uses OpenAI Chat Model

Services it uses

Anthropic Chat ModelOpenAI Chat ModelGoogle Gemini Chat Model

HTTP calls to: api.search.brave.com, primary-production-8aa4.up.railway.app

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (11)

From the author

Workflow Description This workflow is a powerful, fully automated web query and semantic reranking system that allows users to perform precise, detailed searches, intelligently rank search results and provide high-quality, structured output. Built with…

Excerpt from Mind-Front's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.