Skip to content

tmq077/GA_Capstone_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

168 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone Project: "DonateFoodGoWhere" - Chatbot for donating specific food items in Singapore

Problem Statement

In 2022, Singapore generated 813 million kg of food waste, accounting for 11% of total waste generated. Annually, each household throws away $258 worth of food, equivalent of 52 plates of nasi lemak (assuming each plate cost $5). The amount of food waste has grown by 20% over the past 10 years, and is expected to rise further. At current rate of waste disposal, Singapore will need a new incineration plant every 7-10 years, and a new landfill every 30-35 years.

Households contribute around half of the food waste generated. As part of Singapore’s Zero Waste Masterplan, one key component of food waste management strategies is encouraging members of public to donate excess food. Organisations that accept food donations have specific wish list of food items and donation requirements, and it is time-consuming for individuals to find the right organisation for the food they wish to donate.

This project aims to explore how we can help link individuals up with organisations, by developing a chatbot for individuals to enquire about donating specific food items, and find out where and how to donate, along with the relevant donation instructions.

Resources:


Data Used

Data is saved from the website of various organisations that accept food donation, in PDF and html format. These are in webpages.


Python Notebook Description

  • rag_finetuning: Workflow for implementing RAG and Fine-tuning, and evaluation of the model pipeline
  • foodbot.py: Deployment of chatbot in streamlit

Conclusion

  • To build a custom chatbot, this project explored the use of OpenAI's ChatGPT Large Language Model (GPT-3.5-Turbo), Retrieval Augmented Generation (RAG), and Fine-tuning.
  • The RAG + GPT-3.5-Turbo model pipeline yields an answer relevancy of 0.97 and faithfulness of 0.87, indicating the model is able to generate concise and informative answers that are derived from the external dataset with minimal hallucinations.
  • With this model pipeline, a chatbot is developed and deployed on streamlit (https://donatefoodgowhere.streamlit.app/) to help individual food donors find the right organisations for donating their specific food items, along with additional donation information.

Resources

How chatbot works:

RAG and Fine-tuning

Evaluation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors