Templates / Create RAG vector database from Google Drive documents using Gemini & Supabase

Create RAG vector database from Google Drive documents using Gemini & Supabase

Ready for 3.0

by Mantaka Mahir ✓ · 987 views · created 2025-11-09 · Document Extraction, 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 9 nodes and runs when another workflow calls it. Along the way it connects Embeddings Google Gemini, Postgres, Google Drive and Supabase Vector Store.

How it runs

Trigger: When another workflow calls it.

  1. Code: runs custom JavaScript code
  2. Execute a SQL query (Postgres): run a query
  3. Search files and folders (Google Drive): work with file folder
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Download File (Google Drive): download
  6. Insert into Supabase Vectorstore (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings Google Gemini; document loader: Default Data Loader

Services it uses

Embeddings Google GeminiPostgresGoogle DriveSupabase Vector Store

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 (8)

From the author

How it works This workflow automates the process of converting Google Drive documents into searchable vector embeddings for AI-powered applications: • Takes a Google Drive folder URL as input • Initializes a Supabase vector database with pgvector extension •…

Excerpt from Mantaka Mahir'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.