A simplified implementation of an AI-powered wine blending assistant built on Val Town.
The Terroir Harmony AI Blend Designer is a custom AI application designed for boutique winemakers. It leverages AI to propose wine blend compositions, predict sensory profiles, and assess market suitability.
This Val Town implementation uses:
├── backend/
│ ├── index.ts # Main API entry point
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ └── routes/
│ ├── blends.ts # Blend generation endpoints
│ ├── data.ts # Data management endpoints
│ └── static.ts # Static file serving
├── frontend/
│ ├── index.html # Main HTML template
│ ├── index.tsx # React app entry point
│ └── components/
│ ├── App.tsx # Main app component
│ ├── BlendGenerator.tsx
│ ├── DataUpload.tsx
│ └── BlendHistory.tsx
├── shared/
│ └── types.ts # Shared TypeScript types
└── data/
└── sample_data.json # Sample wine data
🚀 Live Application: The Terroir Harmony AI Blend Designer is now running at: https://spooky--ed5633146df111f09a7d0224a6c84d84.web.val.run
The application comes pre-loaded with:
This Val Town implementation successfully delivers:
✅ Complete Backend API - Fully functional REST API with all endpoints
✅ AI Blend Generation - GPT-4 powered wine blend recommendations
✅ Database Integration - SQLite with comprehensive wine data schema
✅ React Frontend - Modern, responsive user interface
✅ Data Management - File upload and processing capabilities
✅ Sample Data - Pre-loaded vineyard blocks for immediate testing
✅ Blend History - Track and evaluate blend performance
✅ Market Analysis - AI-powered market positioning insights
🍷 Generate Wine Blends: Select vineyard blocks and get AI-optimized blend ratios
📊 View Sensory Predictions: Detailed aroma, taste, and mouthfeel forecasts
💰 Market Intelligence: Consumer appeal scores and pricing recommendations
📈 Performance Tracking: Record actual results vs. predictions
🍇 Vineyard Management: Add and manage vineyard block data
📁 Data Upload: Process chemical analysis files
GET /
- Main application interfacePOST /api/blends/generate
- Generate new blend compositionsGET /api/blends
- List historical blendsPOST /api/data/upload
- Upload chemical analysis dataGET /api/data/vineyard-blocks
- Get vineyard block data