RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini
n8n template #2871Summary
Use templateWorkflow based on the following article. https://www.anthropic.com/news/contextual-retrieval This n8n automation is designed to extract, process, and store content from documents into a Pinecone vector store using context-based chunking. The workflow enhances retrieval accuracy in RAG (Retrieval-Augmented Generation) setups by ensuring each chunk retains meaningful context. Workflow Breakdown: 🔹 Google Drive - Retrieve Document: The automation starts by fetching a source document from Google Drive. This document contains structured content, with predefined boundary markers for easy segmentation. 🔹 Extract Text Content - Once retrieved, the document’s text is extracted for processing. Speci
How to set it up
- Open template #2871 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 3 credentials under Credentials → Add credential: Google Drive, Pinecone Vector Store, Embeddings Google Gemini. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini" (https://n8n.io/workflows/2871). It uses: Google Drive, Code, AI Agent, Recursive Character Text Splitter, Pinecone Vector Store, Default Data Loader, Embeddings Google Gemini. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Google DriveCodeAI AgentRecursive Character Text SplitterPinecone Vector StoreDefault Data LoaderEmbeddings Google Gemini
Questions
Yes. Udit Rawat published it free on n8n.io as a verified creator, and it has 8,468 views. It runs on n8n Cloud or a self-hosted n8n instance.
Google Drive, Pinecone Vector Store, Embeddings Google Gemini. The other 4 nodes are built into n8n.
Similar workflows
NameViews
- Build an AI-Powered Tech Radar Advisor with SQL DB, RAG, and Routing Agents12K
- IT Support Chatbot with Google Drive, Pinecone & Gemini | AI Doc Processing11K
- Personal Portfolio CV Rag Chatbot - with Conversation Store and Email Summary3,462
- RAG Chatbot for Company Documents using Google Drive and Gemini95K
- AI-Powered RAG Workflow For Stock Earnings Report Analysis15K
- Chat with PDF docs using AI (quoting sources)95K
- Automate sales cold calling pipeline with Apify, gpt-5.6-terra, and WhatsApp34K
- Advanced AI Demo (Presented at AI Developers #14 meetup)24K