Note Wisdom
Notes on Stanford CME 295 Lecture 7, where a frozen LLM gets connected to outside systems. Covers why RAG beats retraining, how two-stage retrieval and reranking work, how tool calling and ReAct agent loops are built, and where the arguments felt thin.
Institution: Stanford
Original Course: Stanford CME295 Transformers & LLMs | Autumn 2025 | Lecture 7 - Agentic LLMs
Instructor Bio: This lecture is co-delivered by **Afshine Amidi** and **Shervine Amidi**, adjunct faculty at Stanford University's Institute for Computational and Mathematical Engineering (ICME). Afshine Amidi earned his engineering degree from École Centrale Paris in 2016 and a Master of Science from the Massachusetts Institute of Technology in 2017. He currently leads LLM initiatives for promotional writing at Netflix, and previously held roles at Uber and at Google on the Gemini team. He co-authors widely used technical study guides on machine learning, transformers, and algorithms. Shervine Amidi holds B.S. and M.S. degrees in engineering from École Centrale Paris (2016), as well as an M.S. in Computational and Mathematical Engineering from Stanford University (2019). He is a Senior Machine Learning Engineer at Netflix, and previously worked at Google DeepMind on the Gemini team, Google Assistant, and Uber's data science division. He has served as a teaching assistant for multiple core Stanford CS courses and has been an adjunct lecturer at the university since 2021.
Course Description: This lecture examines the emerging paradigm of agentic LLMs — systems where language models act as autonomous agents capable of planning, executing, and iterating on complex tasks. It covers tool use and function calling, explaining how LLMs can invoke external APIs, execute code, query databases, and interact with software systems. The lecture explores agent architectures including ReAct (Reasoning + Acting), reflection and self-correction loops, multi-agent collaboration systems, and planning frameworks for long-horizon tasks. It also discusses the challenges of agentic systems, including error propagation, tool selection, reliability, and safety considerations for autonomous LLM-driven workflows.
All contents below are exclusive to the paid Word file, NOT available on this web page
get_current_room_temperature. Observe reads the result — 65°F, colder than expected. Plan decides to raise it. Act calls the thermostat with an increment. Observe confirms, the loop exits, and the model reports back that it raised the temperature by five degrees.Skip hours of watching lectures. Get organized notes, exam prep materials and problem solutions all in one Word file.
Click to see everything included
All contents below are exclusive to the paid Word file, NOT available on this web page

