AWS in Plain English

New AWS, Cloud, and DevOps content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

Bedrock unveiled: A Quick Lambda example

--

One of the most awaited AWS releases of 2023 is finally Generally Available (GA): Amazon Bedrock, a fully managed service to build generative AI applications with foundation models (FMs).

This article shows how to enable Bedrock FMs and utilize them, for example, in Lambda functions. The use case is part of an AI assistant I created in a previous article.

The main difference with previous app is in the usage of the AI21Labs Jurassic model (via Bedrock) over the plain OpenAI model, and the resulting architecture will look like this:

Revisited architecture for the AI speaker assistant

In future articles, I will show how to index your own documents

and apply Retrieval Augmented Technique, make sure you check them out!

Setup Bedrock

Bedrock provides a set of pre-defined FMs, which you can use to query against:

To use such FMs in Bedrock, you first must enable them:

--

--

Published in AWS in Plain English

New AWS, Cloud, and DevOps content every day. Follow to join our 3.5M+ monthly readers.

Written by Antonio Lagrotteria

Engineering Manager | Full-Stack Architect | Team/Tech Lead with a passion for frontend, backend and cloud | AWS Community Builder

Responses (2)

Write a response