An AI-powered fashion recommendation system that demonstrates the integration of AWS Bedrock and Anthropic Claude for personalized style suggestions.
This demo showcases:
- Real-time fashion recommendations using multiple AI models
- Image-based clothing analysis
- Interactive shopping experience
- User preference learning
- AWS Bedrock and Claude integration
- Frontend: React + TypeScript + Vite
- Backend: Node.js + TypeScript microservices
- AI Services: AWS Bedrock + Anthropic Claude
- Node.js 18+
- AWS Account with Bedrock access
- Anthropic API key
- AWS CLI configured
- Clone the repository:
git clone https://github.com/aws-samples/generative-ai-ml-latam-samples.git
cd samples/wardrobe-ai
- Set up environment variables:
# Backend (.env)
ANTHROPIC_API_KEY=your_anthropic_api_key
AWS_REGION=your_aws_region
- Install dependencies and start:
# Backend
cd packages/backend
npm install
npm run dev
# Frontend
cd packages/frontend
npm install
npm run dev
- Add clothing images:
mkdir -p packages/backend/public/pictures
# Add your .jpeg images to the pictures directory
- 👕 AI-powered style analysis
- 🛍️ Personalized recommendations
- 🎯 Preference tracking
- 🛒 Shopping cart integration
- 🖼️ Image-based suggestions
GET /api/startchat # Initialize chat session
POST /api/bestItemHandler # Handle favorite item selection
POST /api/chatResponseHandler # Process shopping cart updates
wardrobe-ai/
├── packages/
│ ├── frontend/ # React frontend
│ │ ├── src/
│ │ └── public/
│ └── backend/ # Node.js backend
│ ├── src/
│ │ └── microservices/
│ │ └── chatbot/
│ └── public/
│ └── pictures/ # Clothing images
// Add new endpoint
@RequestHandler<HttpRequest>("METHOD:/path")
public async newHandler(request: HttpRequest): Promise<HttpResponse> {
// Implementation
}
cd packages/frontend
npm run dev
- Configure AWS CLI:
aws configure
- Enable Bedrock access in your AWS account
ANTHROPIC_API_KEY=required
AWS_REGION=required
PORT=8082
See CONTRIBUTING for security notification procedures.
This project is licensed under the MIT-0 License. See the LICENSE file.
See the Contributing Guide.