AcademyWorkflowsData and reporting

RAG: Context-Aware Chunking | Google Drive to Pinecone

Data and knowledge teams that build search over internal documents for an AI assistant.

  • Recommendedour rating
  • 8,468views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

rag-context-aware-chunking-google-drive-to-pinecone-via-openrouter-gemini.json

Loading the file...

What it does

This n8n workflow reads a document from Google Drive, extracts its text and splits it into chunks at section markers. A model generates context for each chunk, which is added to the chunk before embeddings are created and stored in a Pinecone vector store. It is based on an Anthropic article about contextual retrieval.

Use cases

  1. 01Index policy documents stored in Google Drive
  2. 02Prepare long manuals as chunks with context
  3. 03Load a Pinecone store for answering questions

Connects

Google Drive · Code · AI Agent · Recursive Character Text Splitter · Pinecone Vector Store · Default Data Loader · Embeddings Google Gemini

Questions about
RAG: Context-Aware Chunking | Google Drive to Pinecone.

What is RAG: Context-Aware Chunking | Google Drive to Pinecone used for?

Data and knowledge teams that build search over internal documents for an AI assistant. This n8n workflow reads a document from Google Drive, extracts its text and splits it into chunks at section markers. A model generates context for each chunk, which is added to the chunk before embeddings are created and stored in a Pinecone vector store. It is based on an Anthropic article about contextual retrieval.

How do I import RAG: Context-Aware Chunking | Google Drive to Pinecone into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is RAG: Context-Aware Chunking | Google Drive to Pinecone safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.