WorkflowGoogle DriveOpen

RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini

Triggered manually or by an app event. Connects Code, Extract From File, Google Drive, Loop, Split Out, Stop And Error. Prepare Document. This section is responsible for downloading the file from Google Drive, splitting the text into sections by detecting separators, and preparing them for looping. Prepare context In this section, the agent node will prepare context for a section (chunk of text),

Front matter
name: RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini
description: Triggered manually or by an app event. Connects Code, Extract From File, Google Drive, Loop, Split Out, Stop And Error. ## Prepare Document. This section is responsible for downloading the file from Google Drive, splitting the text into sections by detecting separators, and preparing them for looping. ## Prepare context In this section, the agent node will prepare context for a section (chunk of text), which will then be passed for conversion into a vectors along with the section itself. ## Convert Text To Vectors In this step, the Pinecone node converts the provided text into vectors using Google Gemini a
category: Automation
kind: Workflow
software: Code|Extract From File|Google Drive|Loop|Split Out|Stop And Error

RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini

Triggered manually or by an app event. Connects Code, Extract From File, Google Drive, Loop, Split Out, Stop And Error. ## Prepare Document. This section is responsible for downloading the file from Google Drive, splitting the text into sections by detecting separators, and preparing them for looping. ## Prepare context In this section, the agent node will prepare context for a section (chunk of text), which will then be passed for conversion into a vectors along with the section itself. ## Convert Text To Vectors In this step, the Pinecone node converts the provided text into vectors using Google Gemini a

Steps

  • When clicking ‘Test workflow’ (manualTrigger)
  • Loop Over Items (splitInBatches)
  • OpenRouter Chat Model (noOp)
  • Pinecone Vector Store (noOp)
  • Embeddings Google Gemini (noOp)
  • Default Data Loader (noOp)
  • Recursive Character Text Splitter (noOp)
  • Get Document From Google Drive (googleDrive)
  • Extract Text Data From Google Document (extractFromFile)
  • Split Document Text Into Sections (code)
  • Prepare Sections For Looping (splitOut)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • AI Agent - Prepare Context (noOp)
  • Concatenate the context and section text (set)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Error Handler (stopAndError)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Splitout/1627_Splitout_Code_Automation_Triggered.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.