Recipe System
Recipe Management: Complete recipe management system with automated nutrition calculation from ingredient composition. Each recipe includes preparation time, difficulty level, cuisine type, and serving information. Recipes are automatically tagged with allergens based on ingredients.
Recipe Features:
- Ingredient Tracking - Precise ingredient quantities with unit conversion support
- Nutrition Calculation - Automatic nutrition calculation based on ingredients
- Difficulty Levels - Easy, Medium, Hard, Professional classifications
- Preparation Time - Cooking and prep time estimates
- Yield Tracking - Number of servings and portion sizes
- Instructions - Step-by-step cooking instructions
- Cuisine Types - Indian, Italian, Mediterranean, Asian, etc.
Search Capabilities
SEMANTIC Vector similarity search with configurable thresholds
KEYWORD Full-text search across names, descriptions, and tags
FILTER Advanced filtering by nutrition, allergens, diet type, and more
COMBINATION Hybrid search combining semantic and keyword approaches
API Endpoints
GET /api/v1/foods?q=chicken&limit=10 - Search foods
GET /api/v1/foods/{food_id} - Get food details
GET /api/v1/recipes?cuisine=indian&limit=20 - Search recipes
GET /api/v1/recipes/{recipe_id} - Get recipe details
GET /api/v1/activities?mets=5-7 - Search activities by intensity
GET /api/v1/activities/{activity_id} - Get activity details
POST /api/v1/foods/semantic-search - Semantic search endpoint
GET /api/v1/foods/allergens/{allergen} - Find foods with specific allergen