Chapter 3: AI Agents, RAG, and Reasoning Models
Lab 1: Retrieval Augmented Generation (RAG)
In this lab, you’ll use Langchain to build a RAG agent which answers questions by searching in wikipedia, and generating an answer based on the search results.
Lab 2: Calculator Agent
In this lab, you’ll use Langchain to build a calculator agent which takes in a math question, extracts the equation, uses the calculator API to solve it, and formulates an answer using the LLM.
Lab 3: Math or Fact Agent
In this lab, you’ll use Langchain to build an agent that identifies if your question is a fact, a math question, or neither. If it’s a fact, it looks it up in Wikipedia (using RAG). If it’s a math question, it uses the calculator API to solve it. If it’s neither, it responds “I don’t know”.