Enabling Complex Reasoning and Action with ReAct, LLMs, and LangChain


ReAct is an approach that uses human reasoning traces to create action plans which determine the best action to take from a selection of available tools that are external to the LLM. This methodology mimics human chain of thought processes combined with the ability to engage with an external environment to solve problems and reduce the likelihood of hallucinations and reasoning errors.

In this workshop, you will learn how to employ the ReAct technique to allow an LLM to determine where to find information to service different types of user queries, using LangChain to orchestrate the process. You’ll see how to it uses Retrieval Augmented Generation (RAG) to answer questions based on external data, as well as other tools for performing more specialized tasks to enrich the output of your LLM.

All demo code and presentation material will be provided, as well as a temporary Amazon SageMaker Studio environment to build and deploy in.

Session Outline:

Module 1: Overview of Retrieval Augmented Generation (RAG)
Module 2: Introduction to ReAct, and LangChain
Module 3: Building a ReAct workflow with LangChain

Prerequisite and Background Knowledge Needed:

Basic Python knowledge
Basic GenAI/ML Understanding


Giuseppe Zappia is a Principal Solutions Architect at Amazon Web Services (AWS), where he focuses on helping customers leverage AWS to achieve their desired outcomes. He has over 22 years of experience in software development, systems design, and cloud architecture. Giuseppe has a focused area of depth in machine learning and is an active contributor to ML initiatives at Amazon, through published content and speaking events. He is a regular at the AWS ML/Analytics meetup group in Denver, a speaker at re:Invent 2022, and a guest on the Generative AI on AWS YouTube episode “Retrieval-Augmented Generation (RAG) using LangChain and Pinecone - The RAG Special Episode” . When not working on technical projects, Giuseppe is either deep into video games or building his next LEGO set.

Open Data Science




Open Data Science
One Broadway
Cambridge, MA 02142

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Consent to display content from - Youtube
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google