
Course Introduction!
Set up a cross-platform JNI environment for Windows, Linux, and Mac OS by configuring python environments (anaconda or virtual env), vscode, git, and CUDA PyTorch with WSL2 resources.
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.
Differentiate large language models from AI agents, and explore the engine of autonomy, the think and answer loop. Present a four-type agent taxonomy and a theoretical blueprint.
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.
Choose the right agent architecture by task characteristics: use react for simple queries, plan and execute tasks for complex ones, multi tool for diverse tools, or self-corrective for reliability.
Master Google Gemini AI Studio and Lang Smith; set up API keys, claim Google Cloud credits, enable agent tracing, generate video with Nano Banana Pro, and test environment variables.
Explore google ai studio to test google gemini three, and generate images with nano banana and videos with vivo 3.1. Save chats to google drive and adjust settings for testing.
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.
uncover gemini 3 and langchain bootcamp basics, compare gemini 3 with gemini 2, and learn to generate infographic outputs by analyzing PDFs and images with multi-modal tools and tool calling.
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 LangChain message types and ChatGoogleGenerativeAI to connect the Gemini three model with Google Generative AI, handling environment variables and LLM messages in a multi-agent workflow.
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.
learn to analyze local image files by encoding them to base64 with mime types, then pass the data to Gemini models for analysis using Python.
Analyze a pdf with Google Gemini 3 by encoding the pdf in base64 and setting mime type to pdf. Extract key financial highlights from this quarterly report.
Attach tools to the Gemini model for live web search via the llama web search API, using an API key and Python library.
Create a weather tool with a get weather function decorated as a light chain tool, using an API key from the environment to fetch current weather by location.
Create a reusable tools module by converting scripts into a package with __init__.py for use across notebooks. Bind tools to the Gemini model and observe tool calls versus agent execution.
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.
Generate professional ai infographic images for finance presentations using Google's Nano Banana Pro model via LangChain, handling multimodal data with 16 by 9 aspect ratio and 4K resolution.
Explore how agent states evolve through tool calls and Langsmith tracing, with web search, weather, and stock price queries shaping start-to-end node workflows in Langchain and Gemini rag.
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.
Learn to control total model and tool calls in a LangChain powered agent using model call limit, tool call limit, and model fallback middlewares, with per-thread and per-run configurations.
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.
Integrate a to-do list planner as the planning layer for a multi-agent system, enabling the agent to generate and execute steps before answering.
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.
Build a multi-agent finance research workflow by linking a stock researcher agent with an MCP agent through a to-do planner middleware and Yahoo Finance MCP server.
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 the Yahoo Finance MCP server with a multi-server MCP client, then implement an async get_tools method to fetch and print tool names for the agent.
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.
End-to-end testing of the stock researcher agent and the MCP agent in a multi-agent RAG setup. Demonstrates planning, tool use, and stock market data analysis with tabular comparisons and recommendations.
Explore multimodal rag design for financial documents, focusing on storing and retrieving images within a vector database while balancing accuracy, cost, simplicity, and scalability under real constraints.
Explore five multimodal rag design strategies, focusing on a low-cost, text-only embedding approach with no image inference, converting images and videos to text descriptions using a single collection.
Ingest and convert pdf data into a searchable format, extracting metadata, images, and tables as markdown. Implement a hybrid retrieval system using cosine similarity, bm25, and reranking with cross encoders.
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.
Learn to convert a PDF to a doc link converter using a PDF pipeline with page and image generation, adjust image scale, and export markdown or tables.
Convert pdf data to markdown with a doc link converter, extracting images and tables, and export with a page break placeholder to preserve page numbers for vector DV.
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 and save PDF pages as images by validating size over 500 and assigning page numbers from provenance. Store as PNG using Doc Link and Pillow.
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.
Track the table number in markdown illustrates detecting tables in markdown data with the pipe operator, eliminating empty lines, and associating each table with its page context.
Learn to extract markdown tables with context by locating the pipe operator, collecting table lines, capturing the two preceding context lines, and returning content with the next index.
Convert bulk pdf data by packaging into a single extract_pdf_content method, reading all pdfs from a data directory, and automatically producing markdown, images, and tables through a batch conversion.
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.
Explore generating image descriptions with the Gemini vision model, converting images to markdown, and storing captions in the meta folder to power a multi-modal rag pipeline and bulk processing.
Describe images using Gemini multimodal LLMs, export PDF image data, and build a vector store of descriptions by configuring environment variables and using a structured image prompt for multimodal reasoning.
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.