Skip to content

beatriangu/NutriPrompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

56 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯¦ NutriPrompt

NutriPrompt is an AI decision-support architecture designed to transform nutrition planning into a contextual, validated and explainable workflow.

NutriPrompt is not a meal-plan generator.

It is a production-oriented AI system built to demonstrate how modern GenAI products should be designed:

  • context-aware
  • retrieval-augmented
  • validation-first
  • resilient
  • explainable
  • execution-ready

Built with Django, Python, RAG, OCR, multi-provider LLM orchestration, validation engines, PDF generation, and structured output pipelines.

Its purpose is simple:

to show how AI moves from content generation into intelligent product systems.

Python Django OpenAI Gemini OCR RAG


πŸš€ Live Demo

Public Technical Demo

πŸ‘‰ https://nutriprompt-live.streamlit.app

This public Streamlit demo exposes NutriPrompt’s internal AI workflow in a recruiter-friendly and technical format:

  • structured intake
  • RAG orchestration
  • OCR processing
  • validation layers
  • AI Copilot explainability
  • structured outputs

🧠 What This Project Demonstrates

NutriPrompt is an AI Systems Engineering project.

It demonstrates:

  • Prompt Engineering for controlled generation
  • Retrieval-Augmented Generation (RAG)
  • OCR ingestion and structured parsing
  • Validation layers before inference
  • Multi-provider LLM orchestration
  • Fallback resilience strategies
  • Explainable outputs
  • Human-readable + machine-readable reports
  • Product-oriented AI UX design
  • Context-first AI workflows

This reflects how real-world AI systems move beyond prompting into structured, reliable and explainable pipelines.


πŸ’Ό Business Value

NutriPrompt demonstrates how AI can:

  • reduce planning friction
  • improve recommendation consistency
  • validate restrictions before execution
  • increase personalization quality
  • reduce user decision fatigue
  • transform static advice into actionable workflows

This is not just about nutrition.

It is about building AI products that solve operational problems reliably.


🌍 Why This Architecture Matters Beyond Nutrition

NutriPrompt’s architecture is transferable.

The same workflow pattern can be applied to:

  • healthcare decision-support
  • legal document analysis
  • HR screening workflows
  • customer support copilots
  • insurance validation systems
  • procurement workflows
  • industrial compliance systems

This makes NutriPrompt a reusable AI systems pattern.

Not a niche app.


✨ Product Vision

Nutrition planning is not a content generation problem.

Reliable AI nutrition systems must understand:

  • personal goals
  • digestive conditions
  • ingredient compatibility
  • dietary restrictions
  • food preferences
  • budget limitations
  • real-life constraints
  • execution friction

NutriPrompt treats nutrition as an intelligent workflow problem.

Not as a chatbot.

That distinction changes everything.

Its architecture enriches every request before generation.

This produces:

βœ… grounded outputs βœ… hallucination-resistant pipelines βœ… explainable decision flows βœ… compatibility-aware planning βœ… resilient multi-provider orchestration βœ… production-grade AI workflows


🎯 Why I Built This

I built NutriPrompt to explore how AI systems evolve beyond content generation into decision-support architectures.

The goal was never to generate meal plans.

The goal was to design a system that demonstrates:

  • structured reasoning
  • domain grounding
  • retrieval orchestration
  • explainability
  • resilient fallbacks
  • product-oriented thinking
  • real-world execution

This project reflects how I approach AI product design:

connecting business, data and technology into usable systems.


πŸ— System Architecture

User Input
      ↓
Structured Intake Forms
      ↓
Profile Analysis
      ↓
RAG Knowledge Retrieval
      ↓
Prompt Builder
      ↓
Gemini API
      ↓ (Fallback)
OpenAI API
      ↓
Structured JSON Output
      ↓
Nutrition Rules Engine
      ↓
Validation Layer
      ↓
HTML Rendering
      ↓
Shopping Intelligence
      ↓
PDF Generation
      ↓
AI Copilot Layer

πŸ“Έ Product Walkthrough

1. Smart Nutrition Intake

Transforms structured user input into contextual AI workflows:

  • goals
  • digestive symptoms
  • restrictions
  • food preferences
  • budget logic
  • lifestyle context

Home


2. Generated Nutrition Plan

Produces:

  • weekly meal plans
  • compatibility-aware recommendations
  • tupper adaptation
  • explainable profile tags
  • downloadable PDF

Generated Plan


3. Shopping Intelligence Layer

Transforms recommendations into execution:

  • categorized shopping lists
  • grouped ingredients
  • optimized planning
  • action-ready outputs

Shopping List


⚑ Core AI Capabilities

  • Personalized Nutrition Planning
  • Retrieval-Augmented Generation (RAG)
  • OCR + Ingredient Intelligence
  • Validation Engine
  • Shopping Intelligence
  • AI Copilot Explainability
  • Multi-provider resilience
  • Structured outputs

⚑ Resilient AI Orchestration

Gemini API
      ↓
OpenAI Fallback
      ↓
Structured Mock Generation

Benefits:

  • stable demos
  • graceful degradation
  • provider independence
  • predictable outputs

βš™ Design Principles

NutriPrompt was intentionally designed around:

  • Controlled generation over open prompting
  • Retrieval before inference
  • Validation before recommendation
  • Explainability over black-box generation
  • Provider abstraction
  • Structured outputs
  • Service-oriented architecture
  • Product-first UX thinking

These principles reflect modern AI product architecture.


βš™οΈ Technology Stack

Layer Technology
Backend Django
Language Python 3.13
AI Providers Gemini API + OpenAI API
Retrieval Custom Nutrition RAG
OCR Tesseract OCR
Data JSON
PDF Rendering WeasyPrint
Frontend HTML + CSS
Demo Layer Streamlit
Testing Django Test Framework

πŸ§ͺ Test Coverage

Current validation includes:

  • prompt generation
  • knowledge retrieval
  • validation logic
  • OCR processing
  • context injection
  • structured outputs
  • shopping generation
python manage.py test

17 automated tests passing


πŸ›  Installation

git clone https://github.com/beatriangu/NutriPrompt.git
cd NutriPrompt

python3 -m venv venv
source venv/bin/activate

pip install -r requirements.txt

Run Django:

python manage.py runserver

Run Streamlit demo:

streamlit run streamlit_demo/app.py

⚠ Disclaimer

NutriPrompt provides informational guidance only.

It does not replace medical, nutritional or healthcare advice.

Outputs should be reviewed by qualified professionals.


πŸ‘©β€πŸ’» Author

Bea Lamiquiz

🌐 Portfolio: https://bchill.net πŸ’» GitHub: https://github.com/beatriangu πŸ’Ό LinkedIn: https://www.linkedin.com/in/bealamiquiz/


🀝 Let's Connect

I build AI systems at the intersection of:

  • Product
  • Data
  • Business Logic
  • Generative AI

Open to:

  • AI Product roles
  • Applied AI opportunities
  • Technical collaborations
  • AI architecture discussions
  • Product strategy conversations

Releases

No releases published

Packages

 
 
 

Contributors