Generative AI resembles a magic box that creates content on demand. Amazon Bedrock offers a fully managed workshop for these magic boxes. This chapter introduces you to both concepts and prepares you to build AI applications. We'll cover the basics, explore Bedrock's architecture, and make our first API call.
Generative AI algorithms create original content resembling their training data. Unlike traditional AI that analyzes existing information, generative AI produces new data. A traditional chatbot uses pre-defined answers, while a generative chatbot creates unique, contextual responses.
Common applications include conversational chatbots, image generators, code completion tools, content creation systems, and even drug discovery platforms. These applications demonstrate how generative AI creates new data instances rather than just classifying or predicting information.
Foundation Models are large, pre-trained AI systems adaptable to specific tasks. They learn general-purpose representations from massive unlabeled datasets. Think of them as "generalists" that can become "specialists" through fine-tuning.
The Transformer architecture enabled FMs by processing sequential data efficiently. Transformers use "attention" mechanisms to weigh word importance, similar to how humans focus on key phrases. This approach captures context effectively.
FMs generate coherent text, create images from descriptions, translate languages, and write code. However, they have limitations. "Hallucination" occurs when models generate factually incorrect outputs. "Bias" happens when models reflect societal biases from training data.
Amazon Bedrock provides managed access to Foundation Models from leading AI companies. It eliminates infrastructure management and simplifies AI application development. As of mid-2024, Bedrock offers models from Amazon, AI21 Labs, Anthropic, Cohere, Meta, Mistral AI, and Stability AI.