I built RAG Search for a Youtube Channel

In this showcase, I demonstrate how you can build a RAG setup specifically for searching over Youtube content and a n8n-hosted frontend to use it.

Hey there :wave: I’m Jim and if you’ve enjoyed this article then please consider giving me a “like” and follow on Linkedin or X/Twitter. For more similar topics, check out my other AI posts in the forum.


I’ve been really enjoying the n8n @ scale - Office Hours LiveStreams (thanks Angel & Marcus!) lately and if you haven’t seen it, I highly recommend checking out them out if you’re considering a more serious move to n8n for your team or organisation.

The livestream format is highly interactive with questions collected prior to the show but also a lot more pouring in from the live chat. I am noticing however that there were quite a few repeat questions which were answered in the previous stream. This is not necessary the audience’s fault as there will always be a flux of new people and we can’t expect them to know which episodes to catch up on.

Typically, you would advise the viewers with repeat questions to search until you realise Youtube channel search is actually quite bad! Frustrated, I decided to try build my own Youtube search on the livestream transcripts using a simple RAG approach in n8n.

Initially, this template only searched the n8n @ scale office hour livestream recordings but I later decided to extend it to other videos across the channel. This turned out to be a great way to explore n8n videos I haven’t watched yet!

:rocket: Check out the demo here: https://jimleuk.app.n8n.cloud/webhook/n8n_videos


The Stack

Apify for Youtube Transcripts (Apify.com)

As you may know, I’m a big fan of Apify for their range and quality of their scrapers. The Youtube scrapers are particularly good - really easy to use and can help overcome some of the official youtube API usage limitations.
(Psst! My promo code is still active until the end of May 2025! Use 20JIMLEUK to get 20% off any subscription for 2 months)

Qdrant for Vector Store (Qdrant.tech)

Still my favourite vector store due to the awesome search and filtering APIs that come built-in. For this template, I used Qdrant’s Search Groups API to great effect - this ensures more videos get shown in the results compared to naive similarity search.

N8N for everything else! (n8n.io)

One cool feature of n8n is how it is also able to handle both simple backend and frontend tasks. Alongside the vectorise workflow, this template also includes a 2 webhook triggers; 1 to serve the Web UI to perform searches and 1 which acts as an API endpoint to return search results dynamically.


The Template

I’m releasing this n8n template for free and you can grab a copy on my creator page. Let me know if you run into any issues!
:warning: Requires n8n version 1.80+


Conclusion

Building a Youtube RAG workflow isn’t new I’d admit but a powerful skill to add to your AI arsenal. Hopefully this template can shed some light on how you can build your own using n8n!

Also big thanks to the n8n team for the putting together the quality videos and streams for the community :pray: Keep up the great work!

if you’ve enjoyed this article then please consider giving me a “like” and follow on Linkedin or X/Twitter. For more similar topics, check out my other AI posts in the forum.

Still not signed up to n8n cloud? Support me by using my n8n affliate link.

Need more AI templates? Check out my Creator Hub for more free n8n x AI templates - you can import these directly into your instance!

4 Likes

This awesome. Thank you

1 Like

Thank you for sharing this.
It is my first time using n8n, so I want to ask if I have to pay any cost for the API or if it’s totally free?

1 Like

Hey @Th_y_Nguy_n

  • Apify has a free tier where they give you a recurring $5 credit on your account every month (doesn’t roll over however!). The Youtube scraper is $5/1000 video so you can get quite a lot of done without actually paying for the service.

  • Qdrant is open-source and you can self-host but if you want to go with their cloud offering, they also offer a free tier which is more than enough for small data + low-traffic site like my demo. API calls to your qdrant cloud instance are also free.

So yes, technically you can run this workflow for free!

1 Like

Thank you, I appreciate that much

1 Like

an alternative to Apify could be n8n-nodes-supadata, it’s also free and a plus it doesn’t require configuring a HTTP node manually

Do you go on discord and help the novice learn n8n. I am trying to learn how it works rather than just copy and paste. @Diablo Loco in discord