Templates / Building RAG chatbot for movie recommendations with Qdrant and Open AI

Building RAG chatbot for movie recommendations with Qdrant and Open AI

Needs changes

by Jenny ✓ · 36,798 views · created 2024-09-28 · Engineering, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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 GitHub, Embeddings OpenAI, Qdrant Vector Store and OpenAI Chat Model. It also calls api.openai.com and edcc6735-2ffb-484f-b735-3467043828fe.europe-west3-0.gcp.cloud.qdrant.io:6333 over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. GitHub: get (file)
  2. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Call n8n Workflow Tool); memory: Window Buffer Memory
  3. Embedding Recommendation Request with Open AI (HTTP Request): calls api.openai.com (POST)
  4. Embedding Anti-Recommendation Request with Open AI (HTTP Request): calls api.openai.com (POST)
  5. Extract from File: extracts data from a file
  6. Extracting Embedding (Edit Fields (Set)): sets 1 field: positive_example
  7. Extracting Embedding (Edit Fields (Set)): sets 1 field: negative_example
  8. Qdrant Vector Store: stores documents in the Qdrant vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  9. Merge: merges the data from its input branches
  10. Calling Qdrant Recommendation API (HTTP Request): calls edcc6735-2ffb-484f-b735-3467043828fe.europe-west3-0.gcp.cloud.qdrant.io:6333 (POST)

…plus 6 more steps. See the full node list below.

Services it uses

GitHubEmbeddings OpenAIQdrant Vector StoreOpenAI Chat Model

HTTP calls to: api.openai.com, edcc6735-2ffb-484f-b735-3467043828fe.europe-west3-0.gcp.cloud.qdrant.io:6333

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (18)

From the author

Create a recommendation tool without hallucinations based on RAG with the Qdrant Vector database. This example is based on movie recommendations on the IMDB-top1000 dataset. You can provide your wishes and your "big no's" to the chatbot, for example: "A movie…

Excerpt from Jenny 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.