Giter VIP home page Giter VIP logo

amazon-bedrock-quick-start's Introduction

Quickly build Generative AI applications with Amazon Bedrock

This repository contains code samples for building diverse AI applications using Amazon Bedrock's foundation models. Learn how to accelerate projects in image and text generation and beyond.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Installation

Clone the repo

git clone https://github.com/build-on-aws/amazon-bedrock-quick-start.git

Install required packages

pip install -r requirements.txt

Usage

This repository contains various code samples demonstrating how to build AI applications using Amazon Bedrock's foundation models. Here's how to use each:

Image Generation

To generate images using Stable Diffusion, run the following command:

streamlit run sd_sample_st.py

This will launch a Streamlit app where you can enter text prompts to generate corresponding images.

Text Examples

Run this Python script to see different text-based applications like text summarization, code generation, and Q&A:

python text_examples.py

This script will output results for each of these applications, showcasing the versatility of foundation models in text-based tasks.

Chatbot

To interact with a chatbot built using Amazon Bedrock, LangChain, and Streamlit, run:

streamlit run chat_bedrock_st.py

This launches a Streamlit app where you can have a conversation with the chatbot, witnessing AI-powered conversational capabilities firsthand.

RAG Example

To see how Retrieval Augmented Generation (RAG) works with LangChain, execute:

python rag_example.py

This will demonstrate how RAG augments foundation models by retrieving and incorporating external data into the generated content.

Security

See CONTRIBUTING for more information.

License

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

amazon-bedrock-quick-start's People

Contributors

aws-banjo avatar amazon-auto avatar cobusbernard 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.