MatKompis (“Food Buddy”) is a conversational AI assistant that provides personalized meal recommendations and nutritional insights using real Swedish supermarket data and LLM-powered reasoning.
It combines intent detection, retrieval-augmented generation (RAG), and local dataset lookups to deliver realistic and context-aware food suggestions.
The system allows users to chat about what they want to eat (“I want a high-protein lunch under 600 kcal”) and receive meal ideas, ingredient lists, and nutritional breakdowns — all grounded in real product data.
💬 “Your AI friend for healthier, smarter, and more sustainable eating.”
- User Input via Gradio Chat UI
- FastAPI Backend receives
/askrequests - Gemini API (Intent Classification) identifies query type
- Meal recommendation / recipe query
- Nutrition or price query
- SentenceTransformer Models
all-MiniLM-L6-v2: for recipe semantic matchingKBLab/sentence-bert-swedish-cased: for Swedish text embedding
- String Lookup Modules
- Recipe dataset lookup
- Product dataset lookup
- Gemini API (RAG Answer Generation) synthesizes final response
- Response Displayed in Gradio interface
- 🍽️ Personalized Meal Recommendations
- 🧮 Nutritional Estimation (kcal, protein, carbs, fat)
- 🛒 Integration with ICA & Hemköp Datasets
- 🧠 LLM-powered Understanding (Gemini / OpenAI)
- 🧾 RAG Architecture with Sentence Embeddings
- 🧑🍳 Local Recipe & Product Lookup
git clone https://github.com/alireza1420/MatKompis.git
cd MatKompi2️⃣ Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # or on Windows: venv\Scripts\activate3️⃣ Start the FastAPI backend AND launch Gradio
uvicorn app:main --port 8000
gradio client.py
