This repository contains simple and practical examples of Generative AI on AWS using Amazon Bedrock.
It is designed for:
- Learning and experimentation
- Demos and workshops
- Proofs of concept (PoCs)
The repository keeps everything minimal, readable, and easy to extend, focusing on core Generative AI patterns such as chatbots and Retrieval-Augmented Generation (RAG).
Generative AI enables applications to generate new content such as text, summaries, and conversational responses.
AWS provides managed services to build Generative AI solutions securely and at scale, including:
- Amazon Bedrock – Serverless access to foundation models
- Amazon SageMaker – ML experimentation and training
- AWS Lambda & API Gateway – Serverless APIs
- Amazon S3 – Document storage
- AWS IAM & KMS – Security and encryption
This repository focuses primarily on Amazon Bedrock.
A typical Generative AI flow on AWS includes:
- User input (CLI / Notebook / Application)
- Prompt orchestration
- Optional context injection (RAG)
- Model inference via Amazon Bedrock
- Response generation
- Security, monitoring, and governance
- Python 3.10+
- An AWS account with access to Amazon Bedrock
- Bedrock model access enabled in your region (request access)
- AWS credentials configured (
aws configureor~/.aws/credentials)
1. Clone and install dependencies
git clone https://github.com/Lazaro549/aws-ai-generative.git
cd aws-ai-generative
pip install .2. Configure your environment
cp .env.example .envEdit .env with your values:
AWS_REGION=us-east-1
AWS_PROFILE=default
BEDROCK_MODEL_ID=anthropic.claude-3-sonnet-20240229-v1:03. Verify Bedrock access
python scripts/check_bedrock_access.py4. Run an example
# Chatbot
python examples/chatbot/app.py
# RAG
python examples/rag/query.py.
├── examples/ # Simple Generative AI examples
│ ├── chatbot/ # Amazon Bedrock chatbot
│ └── rag/ # Basic RAG implementation
│
├── notebooks/ # Jupyter notebooks for experimentation
│
├── prompts/ # Reusable prompt templates
│
├── scripts/ # Helper scripts (setup, validation)
│
├── docs/ # Lightweight documentation
│
├── .env.example # Environment variable template
├── pyproject.toml # Project dependencies
├── .gitignore
├── LICENSE
└── README.md
If you'd like to support this project:
-
🇦🇷 ARS (Argentina)
Alias:lazaro.503.alaba.mp -
🌎 USD (Argentina only, local transfers)
Alias:ahogada.duras.foca
