PantryChef GenAI — Smart Food Recipe Generator from Available Ingredients
Zero-waste culinary AI platform turning whatever is in your kitchen or fridge into grounded, nutrition-verified regional Indian & global recipes.
Problem Statement
Indian urban households throw away 25–30% of fresh vegetables, dairy, and pantry staples every week simply because deciding what to cook with leftover ingredients — while respecting Veg, Jain, Vegan, Diabetic, High-Protein, Gluten-Free, or allergy needs in a 20-minute prep window — feels mentally exhausting. Ordinary recipe sites force you to buy missing groceries, while generic AI chatbots routinely invent ingredients you do not own, miscalculate cooking times, or suggest unsafe allergy substitutions.
Solution Architecture
Built a production Python 3.12 + FastAPI SSE + LangGraph Culinary Agent grounded over a 50,000+ recipe & Indian nutrition vector store (Qdrant SQ8 + BM25 Hybrid RAG). Users type available items, paste a grocery bill, or snap a fridge photo; the agent normalizes local names (paneer, besan, methi, kadi patta), enforces strict Pydantic v2 structured recipe schemas with exact pantry-match percentages, and guarantees allergen-safe zero-waste cooking plans.
Architecture Highlights
- Python 3.12 + FastAPI async streaming gateway with SSE token chunks & structured Pydantic v2 outputs
- Hybrid Retrieval: Qdrant SQ8 quantized dense vectors + BM25 sparse fusion + Cross-Encoder reranking
- LangGraph stateful workflow with deterministic allergen guardrail node & fallback retry loop
- Semantic Redis prompt cache + token budget router reducing per-request inference cost by 58%
- Observability via Langfuse traces, OpenTelemetry spans, and Locust TTFT load benchmarks
Tech Stack & Metrics
Verified Benchmarks
- {"label":"RAGAS Faithfulness","value":"94.8%"}
- {"label":"P95 TTFT Latency","value":"410 ms"}
- {"label":"Token Cost Reduction","value":"-58%"}
- {"label":"Allergen Safety Pass","value":"100%"}
Deployment: FastAPI + Uvicorn Workers • Qdrant + Redis • Docker Compose • GitHub Actions CI
Builder Role: Generative AI Application Engineer (MAA-GAIP-2026-B03)