How bpbpublications/practical-generative-ai-on-aws works
This repository is a companion collection of Jupyter examples for the book *Practical Generative AI on AWS*, not a single application. A reader follows chapter examples to explore Bedrock APIs, knowledge-base RAG, agents, open-source frameworks, model customization and evaluation, and SageMaker JumpStart. The graph preserves those documented learning branches and the sampled agent helper and action functions. Most notebook internals were not sampled, so links from examples to AWS services reflect README descriptions rather than inspected notebook calls.
Main entry points: agents_helper_util.py Agent Helper · Example61.ipynb Agent API Examples · Example41.ipynb API Example 41 · Example42.ipynb API Example 42
Components 33
Bedrock APIs
- API Example 41
Chapter 04/Example41.ipynb - API Example 42
Chapter 04/Example42.ipynb - API Example 43
Chapter 04/Example43.ipynb - API Example 44
Chapter 04/Example44.ipynb
Knowledge Bases
- RAG Example 51
Chapter 05/Example51.ipynb - RAG Example 52
Chapter 05/Example52.ipynb - KB Utilities
Chapter 05/utility.py
Managed Agents
- Agent API Examples
Chapter 06/agents-with-api/Example61.ipynb - Console Agent
Chapter 06/agents-with-console/Example62.ipynb - Strands Example
Chapter 06/agents-with-api/Example63.ipynb - Agent Helper
Chapter 06/agents-with-api/agents_helper_util.py - Agent Configuration
Chapter 06/agents-with-api/constants.py - Order Actions
Chapter 06/agents-with-api/order_lambda.py - Return Actions
Chapter 06/agents-with-api/returnrefund_lambda.py
Agent Frameworks
- LangChain Examples
Chapter 07/Example71.ipynb - LlamaIndex Examples
Chapter 07/Example72.ipynb - Advanced Workflows
Chapter 07/Example73.ipynb - Indexing Features
Chapter 07/Example74.ipynb - Multi-Agent Example
Chapter 07/Example75.ipynb
Models And Evaluation
- Bedrock Customization
Chapter 08/Example81.ipynb - Model Customization
Chapter 08/Example82.ipynb - RAG Evaluation
Chapter 11/Example111.ipynb
SageMaker JumpStart
- JumpStart Models
Chapter 13/Example131.ipynb - JumpStart Deployment
Chapter 13/Example132.ipynb - JumpStart Fine-Tuning
Chapter 13/Example133.ipynb
Other components
- Reader
- Amazon Bedrock
- Bedrock Knowledge Bases
- Bedrock Agents
- AWS Lambda
- Amazon DynamoDB
- Open-Source Frameworks
- SageMaker JumpStart
Connections 46
- Reader → API Example 41: runs
README.md - Reader → API Example 42: runs
README.md - Reader → API Example 43: runs
README.md - Reader → API Example 44: runs
README.md - Reader → RAG Example 51: runs
README.md - Reader → RAG Example 52: runs
README.md - Reader → Agent API Examples: runs
README.md - Reader → Console Agent: runs
README.md - Reader → Strands Example: runs
README.md - Reader → LangChain Examples: runs
README.md - Reader → LlamaIndex Examples: runs
README.md - Reader → Advanced Workflows: runs
README.md - Reader → Indexing Features: runs
README.md - Reader → Multi-Agent Example: runs
README.md - Reader → Bedrock Customization: runs
README.md - Reader → Model Customization: runs
README.md - Reader → RAG Evaluation: runs
README.md - Reader → JumpStart Models: runs
README.md - Reader → JumpStart Deployment: runs
README.md - Reader → JumpStart Fine-Tuning: runs
README.md - API Example 41 → Amazon Bedrock: uses APIs
README.md - API Example 42 → Amazon Bedrock: uses APIs
README.md - API Example 43 → Amazon Bedrock: uses APIs
README.md - API Example 44 → Amazon Bedrock: uses APIs
README.md - RAG Example 51 → Bedrock Knowledge Bases: demonstrates RAG
README.md - RAG Example 52 → Bedrock Knowledge Bases: demonstrates RAG
README.md - Agent API Examples → Bedrock Agents: creates agents
README.md - Console Agent → Bedrock Agents: creates agents
README.md - Agent API Examples → Agent Helper: uses helpers
README.md - Agent Helper → Agent Configuration: imports settings
Chapter 06/agents-with-api/agents_helper_util.py - Agent Helper → Order Actions: packages Lambda
Chapter 06/agents-with-api/agents_helper_util.py - Agent Helper → AWS Lambda: creates functions
Chapter 06/agents-with-api/agents_helper_util.py - Agent Helper → Amazon DynamoDB: creates table
Chapter 06/agents-with-api/agents_helper_util.py - Order Actions → Amazon DynamoDB: reads and writes
Chapter 06/agents-with-api/order_lambda.py - Return Actions → Bedrock Agents: handles action events
README.md - Strands Example → Open-Source Frameworks: uses Strands
README.md - LangChain Examples → Open-Source Frameworks: uses LangChain
README.md - LlamaIndex Examples → Open-Source Frameworks: uses LlamaIndex
README.md - Advanced Workflows → Open-Source Frameworks: uses frameworks
README.md - Indexing Features → Open-Source Frameworks: uses LlamaIndex
README.md - Multi-Agent Example → Open-Source Frameworks: uses Strands
README.md - Bedrock Customization → Amazon Bedrock: customizes models
README.md - RAG Evaluation → Amazon Bedrock: evaluates RAG
README.md - JumpStart Models → SageMaker JumpStart: uses models
README.md - JumpStart Deployment → SageMaker JumpStart: deploys models
README.md - JumpStart Fine-Tuning → SageMaker JumpStart: fine-tunes models
README.md