Coder Social home page Coder Social logo

zhenghongpeng / amazon-bedrock-custom-langchain-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from build-on-aws/amazon-bedrock-custom-langchain-agent

0.0 0.0 0.0 18.06 MB

Learn to build custom prompts and tools for LangChain agents

Home Page: https://community.aws/posts/amazon-bedrock-custom-langchain-agent

License: MIT No Attribution

Python 100.00%

amazon-bedrock-custom-langchain-agent's Introduction

Amazon Bedrock Custom LangChain Agent

Create a custom LangChain agent dubbed "Agent AWS" that queries the AWS Well-Architected Framework and deploys Lambda functions, all backed by Amazon Bedrock and housed in a Streamlit chatbot.

Agent AWS

Prerequisites

Before you begin, make sure you have the following:

  • AWS Account: You'll need an AWS account with access to Claude via Amazon Bedrock.
  • Lambda Role: Create an IAM role with Lambda execution permissions.
  • S3 Bucket: Create an S3 bucket to store assets like Python deployment zips for Lambda.
  • Python 3.9 or higher

Export these in your terminal:

export LAMBDA_ROLE=arn:aws:iam::ACCOUNT_ID:role/YourLambdaExecutionRole  
export S3_BUCKET=your_s3_bucket_name_here

Installation

Clone this repository:

git clone https://github.com/build-on-aws/amazon-bedrock-custom-langchain-agent.git

Navigate into the project directory:

cd amazon-bedrock-custom-langchain-agent

Install the required Python packages:

pip install -r requirements.txt

Usage

Run the Streamlit app:

streamlit run agent_aws_st.py

You can also run the agent in the terminal:

python agent_aws.py

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-bedrock-custom-langchain-agent's People

Contributors

amazon-auto 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.