Templates / Diagnose RAG chunk strategies from Google Drive PDFs with Gemini and Google Sheets

Diagnose RAG chunk strategies from Google Drive PDFs with Gemini and Google Sheets

Ready for 3.0

by Ali Abdullah ✓ · 3 views · created 2026-10-16 · Engineering, 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 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).

  1. Workflow Configuration (Edit Fields (Set)): sets 11 fields: geminiApiKey, driveFolderId, resultsSheetId…
  2. Test Question Set (Code): runs custom JavaScript code
  3. List PDFs (Google Drive): list (file folder)
  4. Download PDFs (Google Drive): download (file)
  5. Extract PDF Text (Extract from File): extracts data from a file (pdf)
  6. Fixed-Size Chunker (Code): runs custom JavaScript code
  7. Semantic Chunker (Code): runs custom JavaScript code
  8. Parent-Document Chunker (Code): runs custom JavaScript code
  9. Embed Chunks A (Code): runs custom JavaScript code
  10. Embed Chunks B (Code): runs custom JavaScript code

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

Services it uses

Google DriveGoogle SheetsGmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

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…

Excerpt from Ali Abdullah'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.