Building RAG for movie recommendations using Qdrant and AI
Workflow Description
A movie recommendation system powered by Retrieval-Augmented Generation (RAG) that combines OpenAI embeddings with Qdrant vector database, delivering personalized suggestions through an intelligent agent that learns from conversation context and memory.
How it works
- 1.Load movie data from GitHub and split content into tokens using Token Splitter
- 2.Convert text segments to vector embeddings with OpenAI and store them in Qdrant
- 3.Receive user queries via Chat Trigger and route them to the AI agent
- 4.Retrieve relevant movies from Qdrant based on vector similarity scoring
- 5.Generate personalized recommendations using OpenAI language model with contextual memory
- 6.Publish results to Twitter/X and respond to user inquiries
Use cases
- Streaming platforms that require intelligent, user-personalized movie recommendations
- Chatbot systems answering movie questions and suggesting films based on user preferences
- Automated analysis of user feedback on social media to continuously improve recommendation quality
Requirements
- OpenAI API key for language models and embedding generation
- Configured Qdrant instance ready for vector storage and retrieval operations
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 (27)
When clicking ‘Test workflow’
Manual Trigger
GitHub
Github
Extract from File
Extract From File
Embeddings OpenAI
OpenAI
Default Data Loader
Document Default Data Loader
Token Splitter
Text Splitter Token Splitter
Qdrant Vector Store
Vector Store Qdrant
When chat message received
Chat Trigger
OpenAI Chat Model
OpenAI
Call n8n Workflow Tool
Tool Workflow
Window Buffer Memory
Memory Buffer Window
Execute Workflow Trigger
Execute Workflow Trigger
Merge
Merge
Split Out
Split Out
Split Out1
Split Out
Merge1
Merge
Aggregate
Aggregate
AI Agent
Agent
Embedding Recommendation Request with Open AI
HTTP Request
Embedding Anti-Recommendation Request with Open AI
HTTP Request
Extracting Embedding
Set
Extracting Embedding1
Set
Calling Qdrant Recommendation API
HTTP Request
Retrieving Recommended Movies Meta Data
HTTP Request
Selecting Fields Relevant for Agent
Set
Sticky Note
Sticky Note
Sticky Note1
Sticky Note