The Intelligent Moroccan Cuisine Companion
An AI-powered recipe assistant revolutionizing how you discover and adapt Moroccan cuisine.
Built with Retrieval-Augmented Generation (RAG) and powered by Tavily Search API and Llama (Groq/TUF), CuisineRAG offers personalized recipe recommendations while honoring culinary traditions.
⚠️ Under Development:
This is an academic research project in its early stages, with exciting features rolling out in 2024.
Last Updated: December 2024
CuisineRAG is more than a recipe assistant—it’s a blend of Morocco’s rich culinary heritage and cutting-edge AI. Designed to meet the needs of modern food enthusiasts, it provides:
- Instant access to authentic Moroccan recipes through real-time AI-driven search.
- Culturally informed adaptations of recipes for various dietary preferences.
- Seamless, human-like interactions that guide users through a culinary journey.
✨ Preserve Tradition: Celebrate the essence of Moroccan cuisine while embracing dietary inclusivity.
✨ Empower Choices: Dynamically adapt recipes with substitutions that fit your lifestyle.
✨ Leverage Innovation: Rely on the latest AI technology to transform how you cook and eat.
- Real-time Search: Powered by the Tavily Search API, CuisineRAG fetches the freshest and most relevant Moroccan recipes online.
- Curated Database: A robust offline recipe library ensures availability even without internet access.
- Caching: Frequently accessed recipes are stored locally for lightning-fast retrieval.
- Advanced ingredient substitutions tailored to dietary restrictions like vegan, gluten-free, keto, and more.
- AI algorithms ensure recipes retain nutritional balance and authentic Moroccan flavors.
- Built-in cultural safeguards to preserve the soul of traditional Moroccan dishes.
- Conversational AI: Ask questions, get recipe clarifications, or explore cooking tips naturally.
- Multi-turn Dialogues: Smoothly handle complex or multi-step cooking queries.
- Smart Suggestions: Get ingredient recommendations based on your pantry and preferences.
CuisineRAG adapts Moroccan recipes to fit a variety of dietary lifestyles, supporting:
✓ Vegan/Vegetarian
✓ Gluten-free
✓ Keto
✓ Low-fat
✓ Diabetic-friendly
✓ Low-sodium
🧑🍳 Example: Transform a traditional chicken pastilla into a keto-friendly delight without compromising on flavor or texture.
Component | Tech Stack |
---|---|
Backend | Python 3.8+, FastAPI, SQLAlchemy,Llamaindex, Langchain |
AI/ML | Llama (Groq/TUF), Sentence Transformers |
Caching | Redis |
Database | SQL + Qdrant |
Search | Tavily Search API |
- Retrieval-Augmented Generation (RAG): Combines real-time search results with offline data for unmatched flexibility.
- Semantic Understanding: Uses sentence transformers for deep contextual awareness of user queries.
- Adaptation Engine: Dynamically adjusts recipes while preserving cultural authenticity.
Metric | Result |
---|---|
Average Recipe Retrieval Time | < 10 seconds |
Recipe Adaptation Accuracy | 95% |
User Satisfaction Score | 4.0/5.0 |
Average Response Time | < 12 seconds |
- Python 3.8+
- Minimum 8GB RAM
- 20GB storage space
- (Optional) CUDA-compatible GPU for faster AI processing
# Clone the repository
git clone https://github.com/yourusername/CuisineRAG.git
cd CuisineRAG
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # For Linux/Mac
.\venv\Scripts\activate # For Windows
# Install dependencies
pip install -r requirements.txt
# Start the application
python app.py
2024 (Q4)
- 🌐 Multi-language support (Arabic, French).
- 📱 Mobile app development.
- 🥗 Advanced nutritional analysis features.
2025 (Q1)
- 🗣 Voice interaction capabilities.
- 🖼 AI-powered recipe image generation.
- 🌍 Community contributions for user-uploaded recipes.
CuisineRAG is crafted by a passionate team of engineers and food lovers:
- Mouad AIT HA - AI Architecture & Backend Development
- Abdelaali LAMRANI - RAG Implementation & API Integration
- Ismail LAKHLOUFI - Recipe Database Management & RAG Implementation
Made with ❤️ by the CuisineRAG Team
Your journey to delicious, adaptable recipes starts here. 🍴