RAG with andOpenAI
Workflow Description
An advanced Retrieval-Augmented Generation system integrating OpenAI with Qdrant vector database. It extracts documents from Google Drive, intelligently splits them into chunks, stores embeddings in a vector store, and answers queries using contextual memory for precise responses.
How it works
- 1.Trigger workflow via manual activation or webhook request
- 2.Extract and load documents from Google Drive using the Document Data Loader
- 3.Split text into optimized chunks using Token-based Text Splitter
- 4.Generate embeddings with OpenAI and persist them in Qdrant Vector Store
- 5.Execute AI Agent to search and retrieve relevant context from vector database
- 6.Respond to user queries with Buffer Window memory maintaining conversation context
Use cases
- Intelligent search engine for internal documentation and digital repositories
- AI-powered customer support system backed by dynamic knowledge base
- Document analysis and answer generation based on actual stored content
Requirements
- Active OpenAI API key for embeddings and language model operations
- Running Qdrant vector database instance or cloud connection with indexed data
- Google Drive access with file read permissions and proper authentication
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (23)
AI Agent
Agent
Vector Store Tool
Tool Vector Store
Qdrant Vector Store
Vector Store Qdrant
Embeddings OpenAI
OpenAI
Sticky Note4
Sticky Note
Sticky Note
Sticky Note
When clicking ‘Test workflow’
Manual Trigger
Create collection
HTTP Request
Refresh collection
HTTP Request
Get folder
Google Drive
Download Files
Google Drive
Default Data Loader
Document Default Data Loader
Token Splitter
Text Splitter Token Splitter
Sticky Note3
Sticky Note
Qdrant Vector Store1
Vector Store Qdrant
Embeddings OpenAI1
OpenAI
Sticky Note5
Sticky Note
Respond to ElevenLabs
Webhook
OpenAI
OpenAI
Listen
Webhook
Window Buffer Memory
Memory Buffer Window
OpenAI Chat Model
OpenAI
Sticky Note6
Sticky Note