Upload and index files in Pinecone with Google Drive and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Pinecone Vector Store, Embeddings OpenAI and Google Drive.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- 2. Code - Calculate Chunk and Batch Size (Code): runs custom JavaScript code
- 3. Google Drive - Upload File (Google Drive): uses Google Drive
- 4. Google Drive - Download File (Google Drive): download
- 5. Pinecone - Store Document Chunks (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Data Loader - Split Pages and Tag Source
- 6. Respond - Confirm Upload (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Other OpenAI + Google Drive templates (628) · Other OpenAI + Pinecone templates (128) · Other Google Drive + Pinecone templates (65)
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 (8)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow accepts file uploads via a webhook, archives the originals in Google Drive, then chunks and embeds the content with OpenAI before indexing it into a Pinecone vector database for retrieval. How it works 1. Receives a file upload…