How It Works
A transparent look at SMANU's retrieval-based AI workflow.
SMANU uses a Retrieval-Augmented Generation (RAG) architecture — meaning answers come from a curated knowledge base, not from general AI knowledge. This ensures responses are accurate, grounded, and educational.
Your Context
You provide your current situation — school day, at home, on a budget — along with what foods are available to you and any dietary preferences.
Context parameters include: situation type, available foods, budget range, dietary restrictions.
Your Question
You submit a plain-language question about nutrition — anything from "what should I eat for lunch?" to "what is the glycemic index?"
Questions are processed in natural language without requiring special formatting or keywords.
Knowledge Retrieval
SMANU searches the structured nutrition knowledge base using vector semantic retrieval via Astra DB, finding the most relevant chunks of information.
Retrieval is powered by Astra DB vector embeddings and routed through an IBM Langflow pipeline.
Context-Aware Reasoning
The AI model receives both your context and the retrieved knowledge chunks. It generates an answer grounded strictly in the retrieved evidence.
Responses are generated by OpenAI GPT-4o-mini, constrained to only use retrieved knowledge — no hallucination.
Structured Answer
You receive a clear, structured response with sections for the main answer, reasoning, practical suggestions, and source citations.
Every answer includes source citations linking back to the knowledge base entries used.
Pipeline Overview
Phase 2 Note: Astra DB vector retrieval and IBM Langflow pipeline integration are planned for the next development phase. The UI currently demonstrates the full workflow structure.