Templates / Build a dual-stage RAG chat assistant with Google Drive, Ollama, Pinecone and Gemini

Build a dual-stage RAG chat assistant with Google Drive, Ollama, Pinecone and Gemini

Ready for 3.0

by Alex Raj ✓ · 6 views · created 2026-08-21 · Internal Wiki, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 27 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Google Drive, Pinecone Vector Store, Embeddings Ollama and Google Gemini Chat Model and 1 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Search Drive Files (Google Drive): work with file folder
  2. Lookup in Semantic Cache (Pinecone Vector Store): searches the Pinecone vector store, with embeddings: Cache Query with Ollama
  3. Download Drive File (Google Drive): download
  4. Evaluate JavaScript Cache (Code): runs custom JavaScript code
  5. Check If PDF (If): checks a condition and branches into true / false
  6. Check Cache Hit (If): checks a condition and branches into true / false
  7. Extract PDF Content (Extract from File): extracts data from a file (pdf)
  8. Extract Text Content (Extract from File): extracts data from a file (text)
  9. Set Cached Answer (Edit Fields (Set)): sets 1 field: output
  10. AI Query Response Agent (AI Agent): runs an AI agent, with model: Google Chat Model for Agent; 1 tool (Vector Store Question Answering); memory: Manage Simple Memory

…plus 3 more steps. See the full node list below.

Services it uses

Google DrivePinecone Vector StoreEmbeddings OllamaGoogle Gemini Chat ModelVector Store Question Answer

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

From the author

Quick overview This template builds a dual-stage RAG system that ingests PDFs/text from Google Drive into a Pinecone knowledge-base index with Ollama embeddings, and serves chat queries via a Pinecone semantic cache that falls back to a Google Gemini AI Agent…

Excerpt from Alex Raj'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.