Diagnose RAG chunk strategies from Google Drive PDFs with Gemini and Google Sheets
Ready for 3.0What this workflow does
This workflow has 31 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets and Gmail.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Workflow Configuration (Edit Fields (Set)): sets 11 fields: geminiApiKey, driveFolderId, resultsSheetId…
- Test Question Set (Code): runs custom JavaScript code
- List PDFs (Google Drive): list (file folder)
- Download PDFs (Google Drive): download (file)
- Extract PDF Text (Extract from File): extracts data from a file (pdf)
- Fixed-Size Chunker (Code): runs custom JavaScript code
- Semantic Chunker (Code): runs custom JavaScript code
- Parent-Document Chunker (Code): runs custom JavaScript code
- Embed Chunks A (Code): runs custom JavaScript code
- Embed Chunks B (Code): runs custom JavaScript code
…plus 19 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
Quick overview Benchmark three RAG chunking strategies on your own PDFs: fixed-size, semantic, and parent-document chunking with free Gemini models, a strict LLM judge, and an emailed comparison report. How it works 1. Drop your PDFs into a Google Drive…