
Learn to build and deploy retrieval augmented generation solutions from zero to cloud, using OpenAI's API and Pinecone, then scale and deploy on Google Cloud Platform.
Start with module two to grasp embeddings and their similarity, then move through modules three to five on advanced rag techniques, flow routing, and deployment to GCP.
Learn how retrieval augmented generation (rag) works and when to use it, building from scratch with OpenAI's API and pinecone, using embeddings to retrieve relevant documents.
Learn what text embeddings are, how they convert words, sentences, and documents into vectors, and how cosine similarity and vector databases enable retrieval to answer user queries with an LLM.
Explore building a deterministic faq chatbot using a predefined faq database, choosing between a clickable faq page or a chat bubble, and integrating OpenAI embedding API to generate vectors.
Learn to build scalable retrieval augmented generation with OpenAI's embedding api by installing the OpenAI library, creating a client, sending embeddings requests, and handling 1536-dimension vectors.
Learn to use text embeddings and cosine similarity to measure document similarity, and implement an OpenAI embedding function to build a vector database for finding similar text.
Learn to compute cosine similarity with numpy for embedding comparisons, build a vector database, and retrieve the most similar faq to answer questions with a scalable e-commerce chat bot.
Build a simple retrieval-augmented generation chatbot with OpenAI's API, embedding, and an explicit system prompt to answer ecommerce policies, including 30-day returns for ebooks and IT courses.
Construct your first retrieval-augmented generation chatbot using an embedding model, cosine similarity, and a faq context to augment the system prompt and generate accurate answers.
Build a fusion retrieval-augmented generation (rag) system from scratch by generating candidates, retrieving top documents, and applying a reciprocal fusion ranking to produce focused context-driven answers.
Explore HyDE RAG, which generates a hypothetical answer to enrich context before embedding, improving speed and relevance compared to other RAG methods.
Build HyDE RAG from scratch by generating a hypothetical answer, embedding candidates, and retrieving the best-matching context to create an augmented prompt for deployment to GCP.
Learn prompt flow routing in retrieval-augmented generation to improve ranks by classifying user intent (factual, explanation, guidance) and routing to the appropriate prompt or vector databases.
Implement prompt flow routing for retrieval augmented generation from scratch; classify intent into factual or guidance, use system prompts and few-shot prompts, generate json, and explore database routing in videos.
Route a user query to the right vector database in a rag setup. Create and upsert pinecone indices for finance, tech, and product, then generate responses with a language model.
Implement a routing rag by creating three Pinecone indexes and classifying inputs into product, finance, tech, or other to retrieve top three matches.
Compose a simple prompt to classify queries, run a vector query embedding with top 3 results from get index, and use advanced database routing RAG with NS1 namespace and metadata.
Walk through deploying rags with a simple FastAPI template, Dockerization, caching, and environment configs, then run the app on GCP Cloud Run using a RAG model pipeline.
Learn prompt caching for rag applications, using an in-memory cache to serve repeated prompts and cut API costs, while recognizing exact-match limits and pinecone as an alternative.
Test the retrieval augmented generation system locally using docker; build and run the image, verify via postman, and confirm caching behavior before deploying to cloud run.
Deploy your locally working rag service to the cloud using GitHub Actions and Google Cloud Run, enabling the Cloud Run API and continuous deployment.
Welcome to "Mastering Retrieval-Augmented Generation (RAG): From Zero to Hero"!
This course is your all-in-one guide to understanding and implementing Retrieval-Augmented Generation (RAG) — a game-changing approach to enhance AI responses with powerful retrieval capabilities. Through hands-on projects, real-world exercises, and step-by-step tutorials, you'll quickly learn how to leverage RAG architectures to build effective and scalable AI solutions.
This course is designed for AI practitioners, data scientists, machine learning engineers, and developers with a background in Python programming and a basic understanding of machine learning and NLP concepts.
What You'll Learn:
- Core RAG Architecture – Understand how RAG works, from basic concepts to advanced multi-query, Fusion, and HyDE architectures.
- OpenAI Embeddings and Pinecone Integration – Learn how to connect OpenAI embeddings with Pinecone for efficient content retrieval.
- Building RAG Models from Scratch – Implement multi-query and Fusion RAG models with hands-on exercises.
- Advanced RAG Techniques – Explore database and prompt routing, caching, and deployment for optimized RAG solutions.
- Deploying on Google Cloud Platform (GCP) with FastAPI – Deploy your RAG models in a scalable cloud environment with detailed deployment instructions.
Who This Course is For:
This course is ideal for those with a background in software engineering, Python programming, and basic ML knowledge who are eager to dive into RAG applications. It’s packed with exercises to build your expertise from scratch, making it suitable for those new to RAG while being comprehensive enough for seasoned AI practitioners looking to expand their skills.
Join us and become proficient in RAG, from setting up basic architectures to deploying scalable, real-world AI solutions!