
Build a production-grade rag pipeline with Postgres pgvector for company knowledge base and ecommerce semantic search, including vectorization, chunking, ingestion, vector indexes, Redis caching, Evals, and reranking.
Install Visual Studio Code, Docker Desktop, and PGAdmin to run the RAG projects, and set up OpenAI, Langsmith, and Cohere API keys for embeddings, tracing, and re-ranking.
Download a zip of the lecture resources, unzip to access the slides used in this course, including a Keynote file for Mac and a PowerPoint file for Windows.
Download the lecture resources zip, unzip to access completed projects and skeleton projects, and drag the company knowledge assistant into Visual Studio Code as you follow the hands-on lectures.
Discover why PostgreSQL with pgvector is a complete, cost-efficient, open source vector search platform for rag apps, enabling vector similarity with SQL filters in one database.
Describe building a company knowledge assistant using a vectorization ingestion pipeline, embeddings in a vector store, and a rag pipeline to answer questions from PDFs, docs, and md files.
Derive a category from the file's relative path and attach it to each document's metadata before storing it in the vector store, defaulting to general when no category exists.
Add metadata filtering to the rag pipeline by introducing a new category parameter in rag.py, updating the store.asRetriever search arguments to apply a category filter before embedding-based search.
Pass the category from the API layer into the answerWithDocsAsync method to ensure the answer uses data from the guides folder.
Examine metadata filtering in action using LangChain: add a category column during vectorization, ingest guides data into a vector store, and query against the category-tagged metadata.
demonstrate agentic rag, exposing the rag pipeline through an mcp server to let an agent fetch claims, compare with policy, and approve or reject hr expenses.
Update the expense policy by replacing the pdf in data policies folder, then re-ingest to apply the 10,000 threshold pre-approval rule and no pre-approval below 10,000, and verify ingestion results.
Download the resources, replace api.py, and add claim_data.json and policy_agent.py to set up the rag app using fast mcp. Expose rest endpoints via a streamable http app at /mcp.
Install the MCP server and agent dependencies by updating the requirements file. Install MCP, langchain__mcp__adapters, streamlet, and langgraph in a virtual environment or via docker.
Implement the MCP tools to run a ragg pipeline that returns answer, sources, and context, and complete two dummy tools that print and return approved or rejected.
Test the MCP server by relaunching the app, connecting via Postman to localhost:8000/mcp, and validating the rag_ask, approve, reject tools and the MCP health endpoint.
Walk through implementing a policy-driven human resources expense compliance agent with an mcp-based workflow to fetch policies, evaluate claims, and output json decisions.
Create an agent by fetching tools from the MCP URL using streamable_http, configuring an OpenAI LLM with a chosen model and temperature, and constructing the agent with create_agent.
Explore agentic rag in action by running a streamlit app, loading claim_data.json, and observing a rag pipeline approve or reject travel claims based on pre-approval and 10,000 INR limit.
Retrieval-Augmented Generation (RAG) is one of the most powerful ways to make Large Language Models (LLMs) smarter, more reliable, and production-ready. Instead of depending only on what the model “knows,” RAG allows us to fetch relevant knowledge from external sources and provide precise, up-to-date answers.
In this hands-on course, you’ll go beyond the basics and actually build RAG pipelines step by step using LangChain, the leading framework for LLM applications. Whether you are a developer, data scientist, or AI enthusiast, this course will give you the practical skills to design, implement, and optimize real-world RAG projects.
What You’ll Learn
Real-World Project: Build two end-to-end RAG Projects on Company Data and E-Commerce Semantic Search.
Caching Strategies: Use embedding and response caching to reduce cost, latency, and improve efficiency.
Indexing: Explore Flat, IVF Flat, HNSW, and disk-based indexes; learn which one to use for your dataset.
Reranking: Improve answer precision using similarity scores, cross-encoders, and LLM-based reranking.
Evaluations (Evals & Ragas): Measure faithfulness, relevance, and retrieval quality with Ragas metrics.
Metadata: Use metadata filters to make retrieval precise, context-aware, and production-ready.
Why Take This Course?
It’s hands-on — you won’t just learn theory; you’ll build working RAG pipelines.
You’ll learn best practices for scaling from demo to production.
Content is designed for real-world applications in enterprise, startups, and research.
You’ll walk away with code, skills, and confidence to build your own RAG-powered apps.
Who This Course Is For
Developers and data scientists interested in LangChain and LLM applications.
AI/ML engineers who want to deploy production-ready RAG systems.
Professionals curious about vector databases, embeddings, and retrieval systems.
Anyone who wants to go beyond ChatGPT and build AI that leverages their own data.
By the end of this course, you’ll have the knowledge and hands-on experience to design and implement efficient RAG pipelines with LangChain — and the skills to apply them to your own projects or business use cases.