
Discover how to leverage Amazon Bedrock with Python to select and run text and image generation models, and implement retrieval augmented generation with vector databases and embeddings.
Install boto3 and configure AWS credentials by creating an IAM user and a credentials file. Test access by running a notebook to list S3 buckets.
Learn how Amazon Bedrock provides a managed gen ai platform with text, chat, and image models from Amazon, open source, and partners, including RAG and agents, via boto3 in Python.
Explore text generation parameters in Amazon Bedrock, including max token length, temperature, top P, and stop sequences, and learn how Titan and Llama 2 models differ in json configuration.
Learn to connect to Amazon Titan via Bedrock runtime using boto3, and invoke Titan Text Express V1 with JSON input and generation options such as temperature, top_p, and max tokens.
learn to call the llama 2 model on amazon bedrock with boto3, noting prompts versus input text and model-specific parameter names. understand licensing thresholds above 700 million monthly active users.
Code along reads a call transcript, uses Bedrock runtime to summarize it in three sentences, and lists sales action items, while exploring prompt engineering and retrieval augmented generation concepts.
Extract text from a pdf with python and pypdf2, then prompt an Amazon Bedrock model to answer the paid time off policy question: how many working days (25).
Learn to extract text from a corporate travel policy PDF using Pypdf2, clean newlines, and craft a Bedrock Titan prompt with context to answer user questions.
Explore image generation on Amazon Bedrock with Titan and SD XL models, mastering prompts, CFG scale, seed, and image size; learn via the AWS console playground and model-specific nuances.
Explore Stability AI image generation on Amazon Bedrock using Boto3, crafting prompts with positive and negative weights, and tuning width, height, steps, seed, and CFG scale.
Explore Amazon's Titan image generator on Bedrock to transform text prompts into images, tune quality, height and width, and enable image variation with text to image and image variation features.
Explore image inpainting with the Titan image generator, using a source image and a mask to repaint selected areas, with prompts, negative prompts, and mask creation via OpenCV in Python.
Generate a dish and recipe from an ingredients list using a language model, then create an image and a watercolor variation with Titan image generation on Bedrock Runtime.
Connect to the bedrock runtime with boto3, craft prompts to turn ingredients into a dish and recipe, then generate a Quiche Lorraine image and apply a watercolor style.
Understand retrieval augmented generation using text embeddings and cosine similarity to retrieve documents and augment a language model prompt, offering cheaper results than fine-tuning and potential local deployment.
Discover how to implement retrieval augmented generation on Amazon Bedrock by embedding text, building a vector store, retrieving the most relevant context via cosine similarity, and prompting an LLM.
Walk through the Rag exercise notebook to build a Titan embedding function, read sports articles with pandas, compute cosine similarity, and form an LM with Rag to answer prompts.
Implement a rag workflow with Amazon Bedrock Titan embeddings, read and embed article texts with pandas, compute cosine similarity, and retrieve context for Titan Text Express v1.
Welcome to this course on Amazon Bedrock. This program has been expertly crafted to immerse you in the world of Amazon's AI platform, Bedrock, emphasizing practical Python applications. Suitable for both AI novices and seasoned practitioners, this course promises to deepen your understanding and provide hands-on experience in AI.
The course journey commences with an enlightening Section 1, offering an introduction to the course layout, essential resources, and FAQs. This foundational segment is essential for equipping you with the necessary tools and knowledge about Amazon Bedrock, including detailed installation and setup instructions to kickstart your AI adventure.
In Section 2, we delve into the complexities of Amazon Bedrock's text models. You'll explore critical text processing parameters and work with Amazon Titan and Llama 2, Bedrock's advanced text modeling tools. This section combines theoretical knowledge with practical application, featuring a project on call transcript analysis and exercises to enhance your skills in extracting and processing information from PDFs.
Section 3 transports you to the fascinating world of AI-powered image generation. It covers the essentials of image creation with Stability AI parameters and Amazon's Boto3, including Titan's capabilities in this area. The section's highlight is the Recipe Code Along Project, where you will creatively and technically generate a visual recipe guide.
The course culminates in Section 4, focusing on Retrieval Augmented Generation (RAG). This advanced topic is pivotal in AI, and you'll learn about its practical applications and benefits, particularly how Amazon Bedrock integrates embeddings and large language models in RAG.