How It Works
Architecture

How It Works

A transparent look at SMANU's retrieval-based AI workflow.

account_tree

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.

01
badge

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.

info

Context parameters include: situation type, available foods, budget range, dietary restrictions.

02
record_voice_over

Your Question

You submit a plain-language question about nutrition — anything from "what should I eat for lunch?" to "what is the glycemic index?"

info

Questions are processed in natural language without requiring special formatting or keywords.

03
dataset

Knowledge Retrieval

SMANU searches the structured nutrition knowledge base using vector semantic retrieval via Astra DB, finding the most relevant chunks of information.

info

Retrieval is powered by Astra DB vector embeddings and routed through an IBM Langflow pipeline.

04
psychology

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.

info

Responses are generated by OpenAI GPT-4o-mini, constrained to only use retrieved knowledge — no hallucination.

05
assignment_turned_in

Structured Answer

You receive a clear, structured response with sections for the main answer, reasoning, practical suggestions, and source citations.

info

Every answer includes source citations linking back to the knowledge base entries used.

Pipeline Overview

1Your Question
2Knowledge Retrieval
3Relevant Context
4AI Response

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.