
Course Introduction!!
Visit the GitHub repository for the multi-agent project, download the code, open it in VSCode, and install dependencies with pip install -r requirements.txt.
Explore how ai agents are built with lm memory tool and planning tools, guided by a pocket dictionary mind map that outlines agent patterns and when to use each pattern.
An AI agent autonomously perceives with sensors, reasons in Elm, and acts through tools and memory to solve problems.
Identify four major agent patterns: react agent, plan and execute agent, multi-tool agent, and self-corrective agent. Learn how these patterns plan, act, verify, and adapt for real projects.
Compare Google Gemini models and pricing to choose the right model. Learn about context window, token costs, thinking levels, and grounding with Google search in Python and Langchain.
Generate a Lang Smith API key, configure env variables, and verify loading in the notebook for agent tracing via the Lang Smith dashboard.
Test your Google Gemini API key using the sample code from Google AI Studio, then validate Lang Smith integration and Lang chain setup for multi-agent RAG workflows.
Demystify loop engineering by expanding a react agent into a five-step loop with two models, self-prompting, and memory shared across agents to refine outputs.
Configure a Gemini three notebook with internal Google search, add an external web search tool and a weather API, and set up API keys and environment variables for LangChain v1.
Learn to use Google Gemini 3 and Gemini 2.5 models with Lang chain in Python, compare pricing and token usage, and implement system and user message flow to invoke Gemini.
Learn how AI message structure uses content, text, and content blocks to represent model outputs. Understand tracing, tokens, and how system, human, and tool messages shape responses.
Learn to stream a model's output with LangChain ChatModel, printing chunks in real time to reduce perceived latency, using Gemini two as the underlying model.
Upload files to the Gemini model context, create a 30-minute limb cache from uploaded file parts, and configure a Gemini cache with a financial-analyst system instruction and display name.
Explore production context caching to optimize costs and speed, using cached conversations, unique context identifiers, and Gemini-based models to compare Q1 and Q2 2024 revenue and generate infographics.
Learn how to enable short-term memory by storing chat histories in sqlite, including setting up a sqlite3 connection, a multi-threaded financial agent db, and attaching a checkpoint to persist conversations.
Use guardrails and PII detection with LangChain to redact emails, URLs, IPs, and API keys before the model or after the tool call, with reusable PII middleware for end-to-end privacy.
Generate structured JSON outputs using a Pydantic base model with keys like company, stock symbol, current price, analysis, and recommendation. Use this schema to guide agent responses for fixed-key data.
Learn to craft a structured system prompt for a finance research assistant, connect Yahoo Finance MCP tools, and use stock data like get stock info and historical prices.
Connect Yahoo Finance MCP tools to a Gemini-based agent, building async finance research workflows that invoke tools, assemble messages, and return Apple stock data and latest news.
Create a stock researcher agent using a structured system prompt. Leverage available tools like the finance researcher tool and to-do list middleware to analyze stock performance and provide data-driven recommendations.
Master data extraction from pdfs using the doc link library to convert images, text, and tables into markdown, with metadata filtering and vector db retrieval.
Plan and implement an automated pdf data extraction pipeline with doc ling, converting pdfs to markdown, images, and tables, and organizing outputs into markdown, images, and tables directories.
Design a production-ready document processing pipeline that stores raw data, markdown, images, and tables by pdf name with page-wise context and enforces images of at least 500x500.
Extract metadata from file names to populate document type, company name, fiscal year and quarter, plus runtime metadata like page number and content type for deduplicated vector db storage.
Identify image items in a document with the doc converter, extract full-page images, and save them alongside page numbers. Process single PDFs first, then scale to multiple files.
Extract tables from markdown by identifying lines starting with a pipe operator, capture two preceding paragraphs as context, and save tables with page numbers for LM inference and data generation.
Verify data integrity by confirming PDF extraction into markdown, tables, and images across multiple companies, ensuring accurate ingestion and preparing image descriptions with a vision model for text data.
Load an image as base64 to generate its description. Read, buffer, and encode the image as png base64, then embed it in a prompt for the LLM.
Learn to invoke a language model with structured messages and system prompts to generate image descriptions using Gemini, including a reusable method that processes image paths and outputs markdown data.
Generate image description and save it as a markdown file in an output directory, using the image path metadata (company and document name), creating folders as needed and avoiding duplicates.
Generate and save descriptions for all images in the images directory, converting them to markdown. Track progress and ingest multi-modal data into a vector space for Rag retrieval.
**This course is not for absolute beginners in AI - you should first learn LangChain fundamentals, then LangGraph, and only after that take this Deep Agent & Multi-Agent course for the best learning experience.**
This course is a complete, hands-on guide to building real-world AI agents and deep research (DeepAgent) systems using Google Gemini, LangChain v1, MCP, and modern RAG techniques.
You will start from the absolute basics of AI agents and slowly move towards building advanced autonomous multi-agent systems used for deep financial research. The course is designed in a progressive way so that beginners can follow along, while experienced developers will still learn advanced production-grade patterns.
The focus of this course is not only theory. You will build everything step by step using Python notebooks, real APIs, real documents, and real data pipelines.
What this course covers
You will first understand what an AI agent really is. You will learn different agent patterns, how agents reason, how they take actions, and how to choose the right agent design for a real project.
You will then set up Google Gemini AI Studio and LangSmith properly. This includes creating API keys, understanding pricing, rate limits, and tracing agent executions so you can debug and monitor your agents like a professional.
After that, you will go through a complete Gemini and LangChain bootcamp. You will learn how to use Gemini models in Python, how messages work internally, how streaming responses work, how multimodal inputs are handled, and how to use tools, function calling, reasoning mode, grounding, and context caching to reduce cost and improve performance.
Once the foundations are clear, you will move into LangChain agents. You will build agents with memory, state management, summarization middleware, fallback models, PII protection, planners, streaming responses, and structured outputs using Pydantic.
The course then introduces MCP through a finance use case. You will connect external MCP servers like Yahoo Finance, load them as LangChain tools, and build a complete stock research agent with structured prompts and planners.
Deep RAG and Multimodal Finance Systems
A large part of this course focuses on Deep RAG systems for finance.
You will learn why multimodal RAG is hard, what problems occur with PDFs, tables, images, and long documents, and how to design a reliable deep RAG pipeline.
You will extract data from financial PDFs using Docling. This includes converting PDFs to markdown, extracting tables with context, tracking page numbers, extracting images, and validating data integrity at scale.
You will then generate accurate image descriptions using multimodal Gemini models and store those descriptions in markdown so everything can be handled in a single text-based pipeline.
Next, you will ingest large amounts of multimodal data into Qdrant vector database. You will learn dense search, sparse search, hybrid search, metadata filtering, de-duplication using file hashes, and best practices for chunking and retrieval models.
On top of that, you will build advanced retrieval pipelines using hybrid search and cross-encoder re-ranking for better answer quality.
Building Real Multi-Agent Deep Research Systems
In the final sections, you will build full multi-agent deep research systems from scratch.
You will design autonomous agents that work like an expert research team with orchestrator, researcher, and editor agents. These agents will plan tasks, run deep research, synthesize results, and produce structured outputs.
You will learn how agent states are shared, how tools are injected at runtime, how files are managed by agents, and how prompts are designed differently for orchestrator, researcher, and editor roles.
You will also explore LangChain’s built-in deep agent architecture and build a complete deep finance research agent using sub-agents and a file backend.
Who this course is for
This course is for developers who want to go beyond basic chatbots and build serious AI systems.
It is ideal for:
AI engineers working with LLMs
Backend developers building RAG systems
Data scientists working with documents and research
Finance and analytics professionals interested in AI automation
Anyone who wants to understand how real multi-agent systems are built in production
Basic Python knowledge is recommended, but some prior agent or RAG experience is recommended.
By the end of this course, you will be able to design, build, and debug advanced AI agents, multimodal RAG pipelines, and autonomous multi-agent research systems using Gemini and LangChain.
You will not just understand concepts. You will have built complete, end-to-end systems that you can reuse in real projects, startups, or enterprise environments.