Build a self-updating RAG system with OpenAI, Qdrant and Google Drive
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Embeddings OpenAI, Google Drive, Qdrant Vector Store and Google Gemini Chat Model. It also calls collections over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Create collection (HTTP Request): calls collections (PUT)
- Clear collection (HTTP Request): calls an HTTP API (POST)
- Set file_id (Edit Fields (Set)): sets 1 field: file_id
- Question and Answer Chain: answers questions over your documents (RAG), with model: Google Gemini Chat Model; retriever: Vector Store Retriever
- Search files (Google Drive): work with file folder
- Delete points by file_id (HTTP Request): calls an HTTP API (POST)
- Get file (Google Drive): download
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Update file (Qdrant Vector Store): stores documents in the Qdrant vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Get files (Google Drive): download
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: collections
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 (15)
- Manual Trigger
n8n-nodes-base.manualTrigger - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - HTTP Request
n8n-nodes-base.httpRequest - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Wait
n8n-nodes-base.wait - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Vector Store Retriever
@n8n/n8n-nodes-langchain.retrieverVectorStore - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger
From the author
This workflow implements a Retrieval-Augmented Generation (RAG) system that integrates Google Drive and Qdrant. This setup creates a powerful, self-updating knowledge base that provides accurate, context-aware answers to user queries. --- Key Advantages…