Templates / Build a PDF Q&A system with LlamaIndex, OpenAI embeddings & Pinecone vector DB

Build a PDF Q&A system with LlamaIndex, OpenAI embeddings & Pinecone vector DB

Ready for 3.0

by Alok Kumar ✓ · 724 views · created 2025-08-22 · AI RAG, Multimodal AI

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-10-19.

Nodes used (10)

Google DriveDefault Data LoaderRecursive Character Text SplitterEmbeddings OpenAIPinecone Vector Store

What it does

Parse, Normalize, Extract, and Store PDF Content for RAG in Pinecone This workflow automates a full RAG pipeline for structured documents (like insurance policies). What it does - Watches a Google Drive folder for new PDFs - Uploads to LlamaIndex Cloud for parsing → returns clean Markdown - Normalizes text (removes headers, footers, page numbers, formatting artifacts) - Splits text into chunks (~1200 chars with 150 overlap) - Generates embeddings with OpenAI - Stores vectors in Pinecone with metadata - Connects a Chat Agent that retrieves answers from Pinecone Who’s it for - Developers building chatbots or Q&A systems for structured docs - Teams working with insurance, compliance, or legal PDFs - Anyone who needs to normalize & store documents for semantic search Requirements - Google Drive connected (for source PDFs) - LlamaIndex Cloud account (parsing API key) - Pinecone account (vector DB) - OpenAI account (LLM and embeddings) How to use and customize Update the folder name in google drive trigger node. Place a pdf file in the same folder in google drive. Customize the Normalized Content function node to adjust regex for headers/footers specific to your documents. Adjust chunk size or metadata namespace in the Pinecone node to fit your project needs. ---

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.