Vigyata.AI
Is this your channel?

Build Your First RAG Agent from Scratch | n8n + Lovable + Supabase | Complete Tutorial

530 views· 30 likes· 32:40· Dec 16, 2025

🛍️ Products Mentioned (3)

Want to build your first RAG using n8n. In todays video we will be building a RAG system using n8n. We will build our frontend on lovable and will connect our ai agent using apis. 👋 Welcome to Decoding Digital Code the Future. Build with AI. 🚀 On this channel, you’ll learn about: AI tools & automation,Enterprise Softwares,Software Engineering Coding tutorials (Python,react,node,angular, JavaScript & more) Building & selling websites Productivity & tech hacks 🔗 Stay Connected: Instagram: https://www.instagram.com/digitaldecoding Discord : https://discord.gg/62UPa5Kg Website: https://www.dailyai.co.in/ Get Lovable : https://lovable.dev/invite/11UGYP0 📧 Business Inquiries: meettechtalker@gmail.com 👉 Don’t forget to Like, Comment & Subscribe for more! #AI #Coding #Automation #WebDev #Productivity

About This Video

आज की वीडियो में मैंने बिल्कुल scratch से अपना पहला RAG (Retrieval Augmented Generation) agent बनाया—backend n8n पे, frontend Lovable पे, और vector store Supabase में। Goal simple है: एक chatbot जो वही जवाब दे जो आपने अपने documents में दिया है (website side वाले knowledge bot जैसा). मैंने RAG को pizza shop वाले example से break किया—question पूछो, notebook (knowledge) से relevant info निकले, फिर answer generate हो—यही retrieval + generation है। फिर practical build में मैंने एक PDF (SOP/rules) Google Drive में upload करके n8n से download कराया, उसको chunks में split किया, OpenAI embeddings से vectors में convert किया, और Supabase के vector table (documents) में store किया। उसके बाद webhook-based agent flow बनाया: Lovable से POST request आती है, n8n का AI Agent query उठाता है, Supabase vector store से top matches retrieve करता है, OpenAI chat model से strictly उसी context पर answer बनवाता है, और JSON response वापस UI में दिख जाता है। अगर JSON में newline की वजह से error आए तो मैंने बीच में JS node से parsing fix भी दिखाया।

Frequently Asked Questions

🎬 More from Decoding Digital