How srivenkateshmani/food-recommendation-system works
This is a Python CLI food recommendation system: it loads and normalizes a JSON food dataset, indexes food descriptions in a cosine-similarity vector collection, then lets users search and view recommendations, including cuisine and calorie filters. An enhanced RAG chatbot and query-comparison capability are also present, though the default startup flow launches the basic chatbot. The graph follows shown calls and documented behavior; the RAG model’s external service connection is supported by its configuration, while unsampled implementation details are omitted.
Main entry points: main.py Application startup · chatbot.py Interactive chatbot · search_handlers.py Search handlers · rag.py RAG responses
Components 14
Startup and data
- Application startup
main.py - Food dataset
data/FoodDataSet.json - Data normalization
src/data_loader.py
Vector indexing
- Document ingestion
src/ingestion.py - Collection setup
src/vector_store.py - Chroma collection
Search experience
- Interactive chatbot
src/chatbot.py - Search handlers
src/search_handlers.py - Similarity retrieval
src/retrieval.py - Results display
src/display.py
Enhanced RAG
- RAG responses
src/rag.py - Granite model config
src/config.py
Other components
- CLI user
- IBM Watsonx.ai
Connections 17
- CLI user → Application startup: starts
README.md - Application startup → Data normalization: loads data
main.py - Data normalization → Food dataset: reads JSON
src/data_loader.py - Application startup → Collection setup: creates collection
main.py - Application startup → Document ingestion: populates collection
main.py - Application startup → Interactive chatbot: starts chatbot
main.py - Collection setup → Chroma collection: creates
src/vector_store.py - Document ingestion → Chroma collection: adds documents
src/ingestion.py - CLI user → Interactive chatbot: enters query
src/chatbot.py - Interactive chatbot → Search handlers: dispatches search
src/chatbot.py - Search handlers → Similarity retrieval: requests results
src/search_handlers.py - Similarity retrieval → Chroma collection: queries
src/retrieval.py - Search handlers → Results display: formats results
src/search_handlers.py - Interactive chatbot → RAG responses: offers RAG mode
src/chatbot.py - RAG responses → Similarity retrieval: retrieves matches
src/rag.py - RAG responses → Granite model config: uses model
src/rag.py - Granite model config → IBM Watsonx.ai: configures inference
src/config.py