I built a RAG chatbot in 45 minutes. No coding. It's a great way to learn or create a solution for an AI PM portfolio. But how does it work? First, RAG isn't just about vector stores. It might involve retrieval from any data source like Google Drive, SQL, or text files. I used a vector store, so I needed to: ๐๐ญ๐๐ฉ ๐: ๐๐๐ง๐๐ซ๐๐ญ๐ ๐๐ฆ๐๐๐๐๐ข๐ง๐ ๐ฌ The data isnโt stored in its original format. Instead, it's split into chunks (e.g., 500-1000 characters each), which are then converted into multi-dimensional vectors and stored in a vector database. ๐๐ญ๐๐ฉ ๐: ๐๐๐ง๐๐ฅ๐ ๐๐๐ญ๐ซ๐ข๐๐ฏ๐๐ฅ, ๐๐๐ง๐๐ซ๐๐ญ๐ข๐จ๐ง, ๐๐ง๐ ๐๐ The users interact with a Lovable interface. When someone asks a question, it's turned into a vector and used to retrieve the most relevant chunks. Finally, an LLM uses retrieved chunks and the original request to generate an answer. That's Vanilla RAG - the simplest possible implementation. In practice, consider: โข ๐๐๐๐ฉ๐ญ๐ข๐ฏ๐ ๐๐๐: Dynamically selects or modifies the retrieval strategy (e.g., choosing the best data source, reformulating the query) based on the request. โข ๐๐ฒ๐๐ซ๐ข๐ ๐๐๐: Combines multiple retrieval approaches, e.g., keyword + semantic search, or merges results from multiple sources. ๐๐ญ๐๐ฉ ๐: ๐๐ฏ๐๐ฅ๐ฎ๐๐ญ๐ ๐๐๐ RAG systems have two distinct components that require different evaluation approaches: retrieval and generation. Traditionally, we evaluate the retrieval part using metrics like Recall@k, Precision@k, or MRR. I loved Jason Liuโs post "There Are Only 6 RAG Evals." He noticed that RAG systems have 3 core components: โข A question (Q) โข Retrieved context (C) โข An answer (A) In his post, he explains how to evaluate each of those combinations: https://lnkd.in/dGgcqKB5 ๐๐ก๐ ๐๐๐๐จ๐ฆ๐ฆ๐๐ง๐๐๐ ๐๐๐๐ก ๐๐ญ๐๐๐ค You can build it virtually for free: โข UI: Lovable (free version is enough) โข Orchestration: n8n (trial / free self-hosted edition) โข LLM: GPT-4o-mini by OpenAI (less than $2 for 100s of requests) โข Embedding model: text-embedding-3-small โข Vector database: Pinecone (free tier, Starter) โข Documents' source: Google Drive --- In my post, I explain how to build a RAG chatbot step-by-step. No coding. This might help you: โข Learn by doing โข Develop a better AI intuition โข Build an AI chatbot for your portfolio Demo, templates, and more with a free trial: https://lnkd.in/dew--RqD --- P.S. Working on AI products? I highly recommend AI Evals for Engineers and PMs cohort by Hamel Hussain and Shreya Shankar. It's the No. 1 course on Maven right now. I've just completed it together with 700+ other students (e.g., Teresa Torres who left a testimonial). It helped me understand why so many AI products fail and what successful teams do differently. The ๐ฅ๐๐ฌ๐ญ ๐ฅ๐ข๐ฏ๐ ๐๐จ๐ก๐จ๐ซ๐ญ starts on July 21. A special $๐๐๐ ๐๐ข๐ฌ๐๐จ๐ฎ๐ง๐ญ code for our community: https://bit.ly/aievals35 | 20 comments on LinkedIn