Mahaswad — Maharashtrian Recipe Generator
Description and use
Mahaswad is a local, privacy‑friendly AI recipe generator for authentic Maharashtrian cuisine that matches ingredients to dishes, offers step‑by‑step instructions, bilingual output, and chef notes—all offline.
Problem
A user with a random pantry struggles to find authentic Maharashtrian dishes without ad‑heavy sites or generic AI tools.
Outcome
Mahaswad delivers authentic Maharashtrian recipes offline, eliminating cloud costs and preserving privacy.
Workflow
- 1. User enters available ingredients in Streamlit UI.
- 2. UI sends POST to FastAPI /generate-recipe.
- 3. FastAPI constructs system prompt, calls Ollama chat with gemma2:2b, temperature=0.6, num_predict=1024.
- 4. Response JSON is cleaned of scratchpad tags via regex.
- 5. Streamlit displays dish match, instructions, required additions, language option, and chef note.
Evidence
Mahaswad (महासवाद), a 100% local, privacy-friendly AI recipe generator dedicated to traditional Maharashtrian cuisine.
Uses gemma2:2b via Ollama. No API keys, no cloud, no cost.
FastAPI backend exposes a RESTful /generate-recipe endpoint that structures regional chef system prompts, regulates inference parameters (temperature=0.6, num_predict=1024), and uses regex cleaning to strip out scratchpad reasoning tags before serving structured JSON responses.
Streamlit Frontend (app.py): Provides a clean, responsive web interface for entering ingredients, selecting meal categories (Breakfast, Main Course, Snack, Dessert), choosing regional styles, and toggling output languages.
- Record date: 2026-10-03T10:56:26.112Z