Building a RAG Chatbot for Movie Recommendations with Qdrant and OpenAI

This workflow builds an intelligent movie recommendation chatbot that utilizes retrieval-augmented generation technology, combined with the Qdrant vector database and OpenAI's AI capabilities, to provide personalized movie recommendations. Through natural language understanding, the system can parse users' positive and negative preferences, intelligently generating movie recommendations that match their tastes, thereby enhancing the accuracy and flexibility of the recommendations and helping users easily find their desired films. It is suitable for scenarios such as online streaming platforms, content communities, and customer service systems.

Workflow Diagram
Building a RAG Chatbot for Movie Recommendations with Qdrant and OpenAI Workflow diagram

Workflow Name

Building a RAG Chatbot for Movie Recommendations with Qdrant and OpenAI

Key Features and Highlights

This workflow constructs a movie recommendation chatbot based on Retrieval-Augmented Generation (RAG) technology, integrating the Qdrant vector database with OpenAI’s powerful AI capabilities to deliver precise and personalized movie recommendations. By leveraging the IMDB movie dataset, movie descriptions are semantically embedded into vectors stored in Qdrant, enabling users to input both positive and negative preferences in natural language. The system intelligently generates the top three movie recommendations tailored to the user’s taste.

Core Problems Addressed

Traditional movie recommendation systems often rely on fixed tags or ratings, making it difficult to comprehend complex user preference expressions. This workflow addresses the challenges of recommendation accuracy and personalization when users express vague or multi-dimensional preferences by combining natural language understanding with vector similarity search, thereby providing a smarter and more flexible recommendation experience.

Application Scenarios

  • Personalized movie recommendations for online streaming platforms
  • Integration of intelligent recommendation features in movie communities or chatbots
  • Assisting content curators in selecting relevant movie resources
  • Supporting movie-related inquiries in AI assistants or customer service systems

Main Process Steps

  1. Manually trigger the workflow to initiate execution
  2. GitHub node fetches the IMDB Top 1000 movies CSV file
  3. Extract file content, parsing movie titles, release years, and descriptions
  4. Text splitting and data loading to segment movie descriptions
  5. Generate text embeddings of movie descriptions using OpenAI models
  6. Store embeddings and metadata in the Qdrant vector database
  7. Listen to chat message triggers to receive user queries along with positive and negative preference examples
  8. Use OpenAI to generate vector representations of the query and counter-examples
  9. Invoke Qdrant recommendation API to compute recommendations based on vector similarity
  10. Retrieve detailed metadata of recommended movies
  11. AI Agent generates natural language responses based on recommendations and returns them to the user

Involved Systems or Services

  • GitHub: Source for movie data files
  • OpenAI API: Text embedding generation and chat model processing
  • Qdrant Vector Database: Storage of movie vectors enabling efficient similarity search
  • n8n Workflow Automation Platform: Orchestration and node-triggered execution

Target Users and Value Proposition

  • Developers of video content platforms seeking rapid integration of intelligent movie recommendation features
  • AI and data science enthusiasts interested in learning RAG technology and vector database applications
  • Product managers of customer service and intelligent assistant solutions aiming to enhance user experience
  • Movie lovers who want precise, personalized recommendations based on semantic understanding

This workflow combines advanced AI text comprehension with vector retrieval technology to create an efficient and intelligent movie recommendation chatbot solution, helping users effortlessly discover movies they love and enhancing their viewing experience.