CHAPTER 3Building Applications with the Amazon Bedrock API
Many practitioners have found a variety of uses for generative AI—whether it be to act as a personal assistant, helping them generate content, and many more uses. Embedding involves the integration of the APIs used to call the foundational models (FMs) into the applications the users are working with.
In the previous chapter, we looked at prompt engineering, which you must learn before working with APIs because it provides a deep understanding of how to effectively communicate with the model to get accurate and relevant responses. This foundational knowledge ensures that users can optimize their interactions, making the most of the API's capabilities and achieving better outcomes in their applications.
In this chapter, we'll delve into how to start using the Amazon Bedrock API for your own use cases, laying the foundation for when you will later build full-fledged applications with integrated generative AI capabilities. We'll walk through the foundational concepts necessary to use the API and how to call the API, and we'll then implement a couple of solutions with it, such as a food recommender and an image generator.
Working with the Amazon Bedrock API is straightforward. However, the real value lies in the unified access to various FMs. Bedrock allows developers to work with multiple high-performing models with a single API call, simplifying the integration process. Whether for text generation, image processing, or ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access