Build a PDF Q&A system with LlamaIndex, OpenAI embeddings & Pinecone vector DB
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Embeddings OpenAI and Pinecone Vector Store. It also calls api.cloud.llamaindex.ai over HTTP.
How it runs
Trigger: On Google Drive events (file created).
- Download file (Google Drive): download
- Upload to Llama Cloud (HTTP Request): calls api.cloud.llamaindex.ai (POST)
- Wait: waits 30 seconds
- Check Parsing Status (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Extract Markdown from Llama Cloud (HTTP Request): calls an HTTP API
- Wait: waits 60 seconds
- Normalize Text (Code): runs custom JavaScript code
- Store in Pinecone (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Generate Embeddings; document loader: Default Data Loader
Services it uses
HTTP calls to: api.cloud.llamaindex.ai
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.
Nodes used (10)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone
From the author
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…