With the Amazon Bedrock serverless experience, you can quickly get started, easily experiment with FMs, privately customize FMs with your own data, and seamlessly integrate and deploy them into your applications using AWS tools and capabilities.
This repository contains examples to get you started with the core Amazon Bedrock APIs for each of the foundational model providers.
- Getting Started with Bedrock Converse API - Notebook - Example notebook to illustrate the basics of the Converse API
- Getting Started with Bedrock Converse API - Streamlit demo - Streamlit demo to illustrate the basics of the Converse API
- Model Choice with Bedrock Converse API - Streamlit demo - Streamlit demo to illustrate the model choice with the Converse API
- Model Choice with Bedrock Converse API - Demo script - Script demo to illustrate the model choice with the Converse API
- Getting Started with the API - Simple example using the REST API
- Example using the Python SDK - Simple example using the Python SDK
- Streaming your responses - Example that streams your response from Bedrock
- Using Embeddings models from Amazon - Syntax for using Amazon Titan Embeddings
- Using Text models from Amazon - Syntax for using Amazon Titan Text
- Using models from Anthropic - Syntax for using models from Anthropic - Claude
- Using models from Stability - Syntax for using models from Stability - Stable Diffusion
- Using models from AI21 Labs - Syntax for using models from AI21 Labs - Jurassic
- Using models from Cohere - Syntax for using models from Cohere - Command
- Anthropic Multi-Model Models - Syntax Multi-Modal models from Anthropic Claude v3 Models
- Single and Mult-turn text generation with Messages API - Examples to illustrate the new Claude Messages API
We welcome community contributions! Please ensure your sample aligns with AWS best practices, and please update the Contents section of this README file with a link to your sample, along with a description.