No history yet

Introduction to AWS Bedrock

Your AI Toolkit

Imagine you want to build an application that uses generative AI. You could spend months and a lot of money developing your own powerful AI model. Or, you could use a pre-built one. But which one? There are many great models out there, each with different strengths.

This is where Amazon Bedrock comes in. Think of it as a universal remote for top-performing AI models. Instead of learning to use a dozen different systems, you get a single, unified way to access a whole catalog of them.

Amazon Bedrock is a fully managed service that provides a unified API to access a wide range of high-performing foundation models (FMs) from leading AI companies like Anthropic, Cohere, Meta, Mistral AI, AI21 Labs, Stability AI, and Amazon.

The term "fully managed" is key. It means Amazon Web Services (AWS) handles all the complicated, behind-the-scenes infrastructure. You don't have to worry about servers, uptime, or managing complex software. You just focus on building your application.

Core Functionalities

Bedrock is designed to make it easy to experiment and build. Its core features revolve around three main ideas: choosing a model, customizing it, and using it in the real world.

Model Selection First, you get to choose your tool. Bedrock offers a curated list of what are called foundation models (FMs). These are powerful, general-purpose AI models created by companies like Anthropic (maker of Claude), Cohere, and Amazon itself. You can test different models to see which one works best for your specific need, whether that's writing marketing copy, summarizing documents, or creating images.

Customization Sometimes, a general-purpose model isn't quite enough. You might need it to understand your company's specific jargon or write in a particular style. Bedrock allows you to privately fine-tune these models using your own data. This process adapts the model to your specific domain without you having to build a new one from scratch.

Inference Once you've picked and perhaps customized a model, you need to use it. The process of getting a response from a model is called inference. Bedrock provides the infrastructure to run inference at any scale. Whether one person or one million people are using your application, Bedrock handles the demand automatically. This ensures your application is fast and reliable.

Connecting with Other AWS Services

Bedrock doesn't operate in isolation. Its real power comes from its integration with the broader AWS ecosystem. You can easily connect Bedrock to other services to build sophisticated applications.

For example, you could store your documents in Amazon S3 (a storage service), use AWS Lambda (a serverless computing service) to call the Bedrock API, and have a model analyze that data. This seamless connection lets you build robust, end-to-end AI workflows.

Lesson image

One of the most powerful integrations is Knowledge Bases for Amazon Bedrock. This feature lets you connect a foundation model directly to your company's private data sources. The model can then use this information to answer questions and provide more accurate, context-aware responses. This technique is known as Retrieval-Augmented Generation (RAG). Instead of just relying on its pre-trained knowledge, the model can "look up" current, proprietary information before generating an answer.

With Amazon Bedrock Knowledge Bases, you can give FMs and agents contextual information from your company’s private data sources for RAG to deliver more relevant, accurate, and customized responses.

Key Concepts

As you work with Bedrock, you'll encounter a few important terms.

Foundation Model

noun

A large, pre-trained, general-purpose AI model that can be adapted for a wide variety of tasks.

These are the base models provided by AWS and its partners within Bedrock.

Inference

noun

The process of using a trained machine learning model to generate an output (a prediction or response) based on new input data.

Essentially, "inference" is the act of putting the model to work.

Fine-tuning

noun

The process of further training a pre-trained foundation model on a smaller, specific dataset to adapt it for a particular task or domain.

This is how you specialize a general model for your needs.

RAG

other

Stands for Retrieval-Augmented Generation. A technique where an AI model retrieves information from an external knowledge source before generating a response.

This makes the model's responses more accurate and up-to-date.

Quiz Questions 1/6

What is the primary function of Amazon Bedrock?

Quiz Questions 2/6

In the context of Amazon Bedrock, what is the process of adapting a general-purpose foundation model to a specific domain using your own private data called?

With these foundational concepts, you now have a solid overview of what Amazon Bedrock is and how it helps developers build generative AI applications.