FlavorSense AI is a modular, scalable Flask backend for personalized food recommendation.
- User Profile Management: Diet, allergies, health conditions, budget, flavor preferences.
- Recipe Recommendation: Cosine similarity matching based on flavor profiles.
- Meal Planning: Automated 7-day meal plan generation.
- Grocery List: Aggregates ingredients from meal plans.
Flavor intelligence is powered by offline ingredient flavor embeddings derived from FlavorDB2 molecular flavor dataset for computational gastronomy.
The system uses a local dataset (backend/data/flavor_vectors.json) to dynamically calculate recipe flavor profiles based on ingredients, eliminating the need for external flavor APIs.
- Python 3.x
- Flask
- NumPy (for vector math)
-
Install Dependencies
pip install -r backend/requirements.txt
-
Run Server
python backend/app.py
-
Verify
python backend/verify_backend.py
POST /api/recommend: Get top 5 recipe recommendations.POST /api/mealplan: Generate weekly meal plan.POST /api/grocery: Generate grocery list from meal plan. =======
823dbe80fda6ffcfb35d27a208439b1388428bd7