Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a reflection AI agent from scratch using raw Python without relying on frameworks like LangChain, LangGraph, CrewAI, or AutoGen. Discover how reflection enables large language models to inspect and improve their own outputs when handling complex queries that require deeper "thinking." Explore the core components of a reflection system including the Generator that produces initial responses and the Reflector that evaluates and suggests improvements. Follow along with a complete implementation that demonstrates how to create a Reflection Agent class and test its capabilities. Access the accompanying Jupyter notebook on GitHub to practice building this self-improving AI system that enhances response quality through iterative refinement.
Syllabus
0:00 - Intro
1:16 - What is simple reflection
3:10 - Implementation
5:12 - Generator
8:36 - Reflector
14:06 - Reflection Agent class
24:18 - Testing the Reflection Agent
Taught by
AI Bites