Recursive RAG for Google Drive Docs: OpenAI & Gemini

Automates document ingestion from Google Drive, recursive chunking, embedding into Supabase, and hybrid RAG querying with OpenAI & Gemini.

n8n
Recursive RAG for Google Drive Docs: OpenAI & Gemini

This workflow processes new documents from Google Drive using a robust pipeline: it triggers on file creation, downloads content, extracts text from PDFs or plain files, and applies recursive chunking to preserve context and relationships. Chunks are then embedded via OpenAI and stored in Supabase Vector Store with metadata and summaries for efficient retrieval.

The querying phase uses an AI Agent for hybrid search (vector similarity + keywords), powered by OpenAI for query understanding and Google Gemini for generating context-aware responses. It supports external data via HTTP requests, making it ideal for knowledge bases.

Benefits include time-saving automation for document-heavy workflows, scalable RAG for accurate AI responses, and integration of top AI models. Use cases: news aggregation (lifestyle category), legal doc analysis, research libraries, or enterprise search—reducing manual chunking and improving retrieval precision by 30-50%.

$24.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Lifestyle workflows

More from Aisha Haddad

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.