A strictly local, privacy-first Food AI that acts as a clinical dietitian. It provides complete nutritional analysis, recipe formulation, and menu planning based on dynamic user health profiles (e.g., pregnancy, kidney disease, specific diets). No user data leaves the server.
192.168.130.170).docker/ and k8s/.mistral:latest).mysql_config_editor login paths (app_reader, app_auth).app.py).To bypass InnoDB row limits and optimize for massive data ingestion (~24GB OpenFoodFacts), the database is vertically partitioned:
products_core (Base data, FULLTEXT indexing)products_allergensproducts_macros (Strict DOUBLE datatypes)products_vitaminsproducts_mineralsCRITICAL NOTE: The frontend and AI RAG tools interact with a unified VIEW named products that elegantly LEFT JOINs these partitions.
The Ollama mistral model is fully integrated with Streamlit using Tool Calling:
search_nutrition_db. The AI can autonomously execute SQL queries against the local database to pull exact nutritional macros.local_web_search. The AI can anonymously search the web if the DB lacks recipe ideas.sys_prompt. The AI dynamically acts as a specialized dietitian for that precise condition (e.g., automatically flagging raw meats as forbidden for pregnancy).unit_converter.py parses natural language strings (e.g., "1.5 cups") and converts them to metric grams based on product density.docker/zabbix) continuously monitors the host, database, and application health. The Python components (app.py, ingest_csv.py) natively emit encrypted SNMPv3 traps on key events (logins, heavy SQL queries, ingestion milestones).docs/ folder.pysnmp logic into core Streamlit and backend workflows for real-time telemetry alerting.search_nutrition_db for data fetching.Generated by Antigravity.