2

Accessing and Utilizing Models in Amazon Bedrock

This chapter provides a practical guide to accessing Amazon Bedrock and uncovering its generative AI capabilities. We will start with an overview of the different interfaces for invoking Bedrock models, including the console playground, command-line interface (CLI), and software development kit (SDK). Then, we will unveil some of the core Bedrock APIs, along with the code snippets that you can run in your environment. Finally, we’ll demonstrate how to leverage Bedrock within the LangChain Python framework to build customized pipelines that chain multiple models and provide insight into PartyRock, a powerful playground for Amazon Bedrock.

By the end of this chapter, you will be able to run and ...

Get Generative AI with Amazon Bedrock now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.