The course provides an overview of generative AI, planning a generative AI project, getting started with Amazon Bedrock, the basics of prompt engineering and the architectural patterns for creating generative AI applications with Amazon Bedrock and LangChain.
Day 1
Module 1: Introduction to Generative AI - The Art of the Possible
- Overview of ML
- Basics of generative AI
- Use cases of generative AI
- Generative AI in practice
- Risks and benefits
Module 2: Planning a generative AI project
- Generative AI basics
- Generative AI in practice
- Generative AI in context
- Steps in the planning of a generative AI project
- Risks and damage limitation
Module 3: First steps with Amazon Bedrock
- Introduction to Amazon Bedrock
- Architecture and use cases
- How to use Amazon Bedrock
- Demonstration: Setting up Bedrock access and using Playgrounds
Module 4: Basics of Prompt Engineering
- Basics of foundation models
- Basics of prompt engineering
- Basic probing techniques
- Advanced prompt techniques
- Model-specific prompt techniques
- Demonstration: Fine-tuning a simple text prompt
- Treatment of prompt abuse
- Attenuation of distortions
- Demonstration: Reducing image distortion
Day 2
Module 5: Amazon Bedrock application components
- Overview of the generative AI application components
- Basic models and the FM interface
- Working with data records and embeddings
- Demonstration: Word embeddings
- Additional application components
- Call-off extended generation (RAG)
- Model fine-tuning
- Safeguarding generative AI applications
- Generative AI application architecture
Module 6: Amazon Bedrock basic models
- Introduction to Amazon Bedrock Foundation models
- Use of Amazon Bedrock FMs for inference
- Amazon Bedrock methods
- data privacy and auditability
- Demonstration: Calling the Bedrock model for text generation with zero-shot prompt
Module 7: LangChain
- Optimizing LLM performance
- Use of models with LangChain
- Construct prompts
- Demonstration: Bedrock with LangChain using a prompt that contains context
- Structuring documents with indices
- Saving and retrieving data with memory
- Use of chains for the sequence of components
- Manage external resources with LangChain agents
Module 8: Architectural patterns
- Introduction to architectural patterns
- Text summary
- Demonstration: Text summarization of small files with Anthropic Claude
- Demonstration: Abstract text summary with Amazon Titan using LangChain
- Answering questions
- Demonstration: Using Amazon Bedrock to answer questions
- Chatbot
- Demonstration: Conversational interface - chatbot with AI21 LLM
- Code generation
- Demonstration: Using Amazon Bedrock models for code generation
- LangChain and agents for Amazon Bedrock
- Demonstration: Integration of Amazon Bedrock models with LangChain agents