A powerful AI-powered food diet companion built with Mistral's agent SDK that helps users with goal setting, logging the food, food recommendations, daily progress, and restaurant recommendations based on their daily diet goals.
Features
- π½οΈ Diet Goal Setting: Set and update your daily diet goals throughout the day.
- π₯ Food Recommendations: Get personalized meal suggestions based on your diet goals.
- π Food Logging: Log your meals as you consume them to keep track of your intake in relation to your goals.
- π Daily Progress: View your progress and get a nutritional analysis of your food intake throughout the day.
- π΄ Restaurant Recommendations: Discover restaurants based on your preferences and dietary interests.
Architecture
Example Queries
# Diet Goal Setting
"Set my calorie goal to 2000 calories, 100g protein, 100g carbs, 100g fibre."
# Food Logging
"Log the food for breakfast - I had 2 eggs, 1 slice of bread, and 1 cup of coffee."
# Meal Recommendation
"Provide recommendations for dinner based on the goals."
# Restaurant Recommendation
"Recommend me some restaurants in paris that serve good grilled chicken."
# Daily Progress
"What is the progress so far for the day?. Provide Nutrition analysis."
Prerequisites
- Python 3.10 or higher
- API Keys:
Installation
- Clone the repository:
git clone https://github.com/mistralai/cookbook.git
cd mistral/agents/agents_api/food_diet_companion
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables:
export MISTRAL_API_KEY=<your-mistral-api-key>
- Run the application:
chainlit run agent.py
Usage
- Open your browser and navigate to
http://localhost:8000
- Start chatting with the assistant using natural language