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 d9d13b39a7 [TG-130] Add heuristic allergen detection fallback for Plate Builder to resolve missing DB tags 4 settimane fa
.agents 3658516989 TG-221 #closed - some file change due to refresh of md files. 1 mese fa
.vscode 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
alembic 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
dags a9ab205772 TG-201: Integrate Apache Airflow orchestration for background CSV reload 1 mese fa
docker b5b7ace535 [TG-127] Final UI tweaks, Allergen SQL joins, PDF fixes, and Cookie race condition fixes 4 settimane fa
docs a4147ac4a7 [TG-125] Phase 3 Security, Llama 3.2 11B, and Network Mode 1 mese fa
k8s 3658516989 TG-221 #closed - some file change due to refresh of md files. 1 mese fa
nginx 91ae5f9faa TG-199: Fix Nginx 502 port and AI meal planner logic bugs 1 mese fa
scratch 76bd55c52d TG-203: Finalize system hardening, deprecation fixes, DR, and Taiga sync 1 mese fa
scripts 55fb68b808 [TG-129] Polishing edge cases: float64 fix, plate allergens, thinking stream, and session cookie persistence 4 settimane fa
searxng 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
taiga 53a0cb4d52 TG-221 #closed - Last commit to sync all the file to ship to the teacher. 1 mese fa
.dockerignore d97797349f fix: remove GPU reservation, change MySQL port to avoid collision, add dockerignore 2 mesi fa
.gitattributes c27dd6f411 TG-85: enable export-subst for Format string git identification 2 mesi fa
.gitignore 2562f19701 TG-193: Add scratch directory to gitignore 1 mese fa
Final_Presentation.html 3658516989 TG-221 #closed - some file change due to refresh of md files. 1 mese fa
INSTALL_WSL.md f43eafce1b docs: add WSL installation runbook, WSL compose file with shifted ports, and Taiga JSON export 1 mese fa
PROJECT_CONTEXT.md 6b4f427ef6 docs: add historical Taiga Agile export and document it in README and project context 1 mese fa
Project.pdf 385d492786 docs: regenerate all high-fidelity PDF manuals and update project report catalog 1 mese fa
README.md 40e81ce358 [TG-125] Phase 2: Cookies, Plate Macros, Zip Export scripts, and Identity Headers 1 mese fa
Retro Planning.pdf 385d492786 docs: regenerate all high-fidelity PDF manuals and update project report catalog 1 mese fa
add_logging.py 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
alembic.ini 79e1835d2c Optimize horizontal partitioning to slice into 8-column chunks bypassing InnoDB limits 2 mesi fa
app.py d9d13b39a7 [TG-130] Add heuristic allergen detection fallback for Plate Builder to resolve missing DB tags 4 settimane fa
backup_db.sh 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
check_users.py ab6577f344 Add check users script 2 mesi fa
configure_zabbix_alerts.py a4147ac4a7 [TG-125] Phase 3 Security, Llama 3.2 11B, and Network Mode 1 mese fa
configure_zabbix_email.py 09c07aee72 TG-196: Full security refactor, Taiga sync, and Data pipeline automation 1 mese fa
data_sync.sh 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
delivery.zip a4147ac4a7 [TG-125] Phase 3 Security, Llama 3.2 11B, and Network Mode 1 mese fa
deploy.sh 942215fc72 TG-21: Update deploy.sh to include requests connectivity dependency. 2 mesi fa
description.docx 53a0cb4d52 TG-221 #closed - Last commit to sync all the file to ship to the teacher. 1 mese fa
docker-compose-wsl.yml f43eafce1b docs: add WSL installation runbook, WSL compose file with shifted ports, and Taiga JSON export 1 mese fa
docker-compose.yml 3658516989 TG-221 #closed - some file change due to refresh of md files. 1 mese fa
docker-compose_skip.yml 3658516989 TG-221 #closed - some file change due to refresh of md files. 1 mese fa
download_csv.sh 6554145d0d fix: resolve pip encoding issue and add exec permissions to download script 2 mesi fa
generate_docs.py 24ad2b9c06 [TG-125] Fix Ollama model namespace to llama3.2-vision:11b 1 mese fa
git_id.txt b5b7ace535 [TG-127] Final UI tweaks, Allergen SQL joins, PDF fixes, and Cookie race condition fixes 4 settimane fa
git_version.txt b5b7ace535 [TG-127] Final UI tweaks, Allergen SQL joins, PDF fixes, and Cookie race condition fixes 4 settimane fa
ingest_csv.py 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
init.sql 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
manage_services.sh 78b93a0f55 docs: Hardening, hybrid landscape, documentation index, and US-203 Taiga tasks alignment 1 mese fa
master_trigger.sh d1c44bc989 Deployment Finalization: Vitamin schemas, Green UI, and Taiga tools 2 mesi fa
my.cnf 86c76e282d TG-1: Fix MySQL 8.0 startup crash by removing premature validate_password plugin config 2 mesi fa
myloginpath.py 4112b60d71 Add untracked project files and configs 2 mesi fa
proper_reset.sh 8ebd71c7b1 Add proper reset 2 mesi fa
requirements.txt 55fb68b808 [TG-129] Polishing edge cases: float64 fix, plate allergens, thinking stream, and session cookie persistence 4 settimane fa
reset.sh 48e7f5fdf2 TG-442: Sync resilience configurations, resolve SearXNG crash, and update docs with dynamic custom Git log ID and tag 1 mese fa
rotate_passwords.py 09c07aee72 TG-196: Full security refactor, Taiga sync, and Data pipeline automation 1 mese fa
snmp_notifier.py a4147ac4a7 [TG-125] Phase 3 Security, Llama 3.2 11B, and Network Mode 1 mese fa
start_batch_ingest.sh 433d123181 Fix python virtual env paths 2 mesi fa
unit_converter.py 40e81ce358 [TG-125] Phase 2: Cookies, Plate Macros, Zip Export scripts, and Identity Headers 1 mese fa

README.md

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.