Repository used for the DOPRO project dealing with food AI.
This repository contains:
a full Taiga export plus all other documents that are part of your project planning, including any project presentation materials.
the full final product, including all files, documentation and presentation materials.

Lange François dcb176a23f [#1] chore: use git stash and clear to resolve deployment smudge conflicts před 3 týdny
.agents 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
.vscode 264d27496d TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag před 1 měsícem
alembic 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
dags 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
docker 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
docs 2efd3d34da [#1] chore: update generated docs and delivery package zip před 3 týdny
k8s 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
local_tools acca3bb900 [#1] fix: resolve multiline matching in git-ident-filter and fix app.py syntax error před 3 týdny
nginx 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
scratch 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
scripts dcb176a23f [#1] chore: use git stash and clear to resolve deployment smudge conflicts před 3 týdny
searxng 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
skills acca3bb900 [#1] fix: resolve multiline matching in git-ident-filter and fix app.py syntax error před 3 týdny
taiga 744ffe8c14 [#1] chore: resolve security leak, configure dynamic versioning filters, update Streamlit and Flask applications to read version from %cd, update unit converter, ingestion, and search features, and export Taiga scrum data před 3 týdny
.dockerignore 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
.gitattributes 744ffe8c14 [#1] chore: resolve security leak, configure dynamic versioning filters, update Streamlit and Flask applications to read version from %cd, update unit converter, ingestion, and search features, and export Taiga scrum data před 3 týdny
.gitignore acca3bb900 [#1] fix: resolve multiline matching in git-ident-filter and fix app.py syntax error před 3 týdny
Final_Presentation.html 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
INSTALL_WSL.md 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
PROJECT_CONTEXT.md 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
Project.pdf a3352c9dc2 docs: regenerate all high-fidelity PDF manuals and update project report catalog před 1 měsícem
README.md 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
Retro Planning.pdf a3352c9dc2 docs: regenerate all high-fidelity PDF manuals and update project report catalog před 1 měsícem
add_logging.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
alembic.ini 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
app.py 73c1012286 [#1] chore: load model dynamically from env before ollama calls před 3 týdny
backup_db.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
check_users.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
configure_zabbix_alerts.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
configure_zabbix_email.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
data_sync.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
delivery.zip 2efd3d34da [#1] chore: update generated docs and delivery package zip před 3 týdny
deploy.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
description.docx d768eadec4 TG-221 #closed - Last commit to sync all the file to ship to the teacher. před 1 měsícem
docker-compose-wsl.yml 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
docker-compose.yml 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
docker-compose_skip.yml 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
download_csv.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
generate_docs.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
ingest_csv.py 744ffe8c14 [#1] chore: resolve security leak, configure dynamic versioning filters, update Streamlit and Flask applications to read version from %cd, update unit converter, ingestion, and search features, and export Taiga scrum data před 3 týdny
init.sql 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
manage_services.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
master_trigger.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
my.cnf 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
myloginpath.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
proper_reset.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
requirements.txt 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
reset.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
rotate_passwords.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
snmp_notifier.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
start_batch_ingest.sh 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny
unit_converter.py 744ffe8c14 [#1] chore: resolve security leak, configure dynamic versioning filters, update Streamlit and Flask applications to read version from %cd, update unit converter, ingestion, and search features, and export Taiga scrum data před 3 týdny
zabbix_telemetry.py 1701828b12 [TG-131] Purge database passwords from tracked files and format application versioning před 3 týdny

README.md

The current version is #ident "@(#)$Format:LocalFoodAI:app.py:%an:%ae:%ad:%cn:%ce:%cd:%H:%D:%N$"

Local Food AI 🍔

A strictly local, privacy-first AI Medical Dietitian and Food Explorer. This project leverages the OpenFoodFacts dataset and local LLMs (Ollama) to provide medically sound dietary advice, recipe parsing, and menu planning without sending any user data to the cloud.

Features

  • Dynamic Medical Profiling: Configure your health profile (e.g., Kidney issues, pregnancy, vegan). The AI dynamically adjusts all responses, recommendations, and warnings based on these exact medical needs.
  • RAG Architecture: The AI is connected to a massively partitioned local MySQL database. When you ask a question or request a meal plan, the AI executes SQL queries autonomously to fetch precise nutritional data.
  • SearXNG Web Integration: When the local Database lacks culinary heuristics, the AI securely queries a local, private instance of SearXNG to answer questions without compromising patient privacy.
  • Plate Builder & Unit Conversion: Input culinary recipes (e.g., "1.5 cups of flour") and the system converts them to metric standard weights based on the product's density.
  • Distributed Microservice Topology: Supports decoupling across VirtualBox, Hyper-V, and WSL2 using Bridged Networking and SNMP container telemetry for Zabbix.

Documentation (Capstone Deliverables)

Please refer to the docs/ folder for detailed guides:

Tech Stack

  • Frontend: Streamlit
  • Database: MySQL 8.0
  • AI Engine: Ollama (Llama 3.2:3B)
  • Web Search: SearXNG
  • Monitoring: Zabbix (SNMPv2c)
  • Deployment: Native Ubuntu, Docker Compose, Hyper-V / VirtualBox
  • Project Management: Taiga (Synced dynamically via Python)

AI Skills & Governance

This project leverages specialized AI skills to maintain code quality, documentation, and strict governance:

  • Code Review: Automatically reviews code changes for correctness, edge cases, style, and performance.
  • Doc Writer: Ensures all documentation and inline comments stay perfectly synchronized with source code changes.
  • Expert Coach: Acts as a principal engineer, enforcing optimal code, modularity, and a mandatory Identity Tag in file headers.
  • Git Commit: Enforces strict Git governance, Taiga tracking (TG-123), and a single main branch workflow. For every commit, a task in Taiga must be associated. If the task does not exist, it must be created and added to a user story and a sprint.
  • Refactor Coach: Refactors code to improve readability, performance, and modularity without changing external behavior.
  • SQL Optimizer: Enforces DBA standards for MySQL, Oracle, and PostgreSQL, ensuring proper indexing, transaction management, and secure access.
  • Test Generator: Generates comprehensive unit and integration tests focusing on boundary conditions and logical coverage.