GithubHelp home page GithubHelp logo

dilipjagannathan / complex-reasoning-with-react-and-langchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from giuseppe-zappia/complex-reasoning-with-react-and-langchain

0.0 0.0 0.0 7.01 MB

Complex Reasoning with ReAct and LangChain

Jupyter Notebook 100.00%

complex-reasoning-with-react-and-langchain's Introduction

Complex Reasoning with ReAct using Langchain Agents and Amazon Bedrock

In this workshop, you will learn how to use multiple different techniques and models to build a ReAct based framework. ReAct is an approach to problem solving with large language models based on 2 main premises: Reasoning and Action. With ReAct, you combine reasoning, through chain-of-thought, with the ability to perform actions through a set of tools. This enables the model to (Re)ason through the input request to determine what steps need to be performed, and uses the available tools to perform (ACT)ions as part of a step-by-step resolution.

More details on ReAct can be found in this research paper: ReAct: Synergizing Reasoning and Acting in Language Models and the Google AI Blog

Workshop Environment Setup

Before beginning, you'll need to 1/ open your lab account 2/ setup access to the Amazon Bedrock model's used in this workshop 3/ go into Amazon SageMaker Studio and then clone the github repo that will be used for the remainder of the workshop.

Please follow the detailed steps below to access your workshop AWS account:

  1. To access your lab environment, log in to bit.ly link your instructor provided

  2. Click Email One-Time Password (OTP) button.

EE-1

  1. Enter your own email account and click the Send passcode button.

EE-1

  1. In your email inbox, check for the email subject "Your one-time passcode email" and copy the passcode. Paste the copied passcode as shown below, then press the Sign in button.

EE-1

  1. Review the Terms and Conditions, scrolling down to click I agree with the Terms and Conditions. Click Join event

EE-1

  1. On the bottom left under AWS account access, select Open AWS console (us-west-2)

EE-2

Please follow the detailed steps below to setup access to the Amazon Bedrock models that will be used for the workshop:

  1. From the AWS console, search for and click on Amazon Bedrock, then click Get started

  2. From the left menu, scroll down & select Model access

Bedrock-1

  1. Click Manage model access

Bedrock-2

  1. You'll be using two models for this workshop so first select Anthropic - Claude 3 Sonnet.

Bedrock-3

  1. From the same page, select Llama 2 Chat 13B

Bedrock-4

  1. Click Save changes

Please follow the detailed steps below to access Amazon SageMaker Studio:

  1. From the AWS console, search for and click on Amazon SageMaker

Studio-1

  1. From the Amazon SageMaker console, select Studio on the left-hand menu

Studio-2

  1. Click Open Studio using the pre-populated default user as shown below. Note: Your username may be different than the image.

Studio-3

  1. Click View JupyterLab spaces

Studio-4

  1. Click Create JupyterLab space

Studio-4

  1. Enter a name for your space, then click Create space

Studio-4

  1. Click Run space

Studio-4

  1. It will take a few minutes to create your space but once it's ready you'll see the Open JupyterLab button. Click Open JupyterLab.

Studio-4

Clone the github repository that will be used for the workshop:

  1. From inside your JupyterLab environment, open a terminal environment by clicking Terminal

Studio-4

  1. From the terminal, clone the github repo by copying and pasting the command below inside the terminal session

git clone https://github.com/giuseppe-zappia/complex-reasoning-with-react-and-langchain

Studio-5

  1. You'll now see the cloned github repository on the left hand pane of your Studio environment. Double-click the folder complex-reasoning-with-react-and-langchain

  2. Double-click the notebook called ReAct-bedrock.ipynb. When the select kernel pop-up appears, keep Python 3 (ipykernel) and click Select

Studio-5

  1. The rest of the workshop will be performed in your notebook.

HAPPY BUILDING!!

complex-reasoning-with-react-and-langchain's People

Contributors

seigenbrode avatar giuseppe-zappia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.