Logo Lanfrica

ruqayyahnabage/wash_services_rag_chatbot

Domaine:

natural language processing

Type de record:

software
Créateur:
ruq
Hôte:
A repository containing code that was used to train a RAG chatbot on WASH services in Nigeria # RAG Chatbot Trained to Answer Questions on Water, Sanitation and Hygiene Services in Nigeria A repository containing code that was used to train a RAG chatbot on WASH services in Nigeria. The paper describing the project can be found here. The dataset curated for this project can also be found on HuggingFace at this link for easy integration into your projects. ### Files in Repo The baseline.ipynb notebook is the initial naive RAG. The qa_extraction.ipynb notebook contains the notebook where the question and answer pairs used as test data where extracted. The raw_q_and_a folder contains the questions and answers in different levels before they were edited and compiled into the final 90 Q&A Pairs in test_data.pkl and if you prefer to have them in json format they can be found in the dataset.json ### Introduction There are numerous communities in Nigeria which do not have access to basic Water, Sanitation and Hygeine (WASH) Services. In a bid to mitigate this and work towards the UN's Sustainable Development Goal 6; "Clean Water and Sanitation for All" the Nigerian government collaborates with several stakeholders; multilateral and bilateral agencies, and NGOs. These organizations often need access to data about the existing facilities. Although the data exists from surveys conducted to catalogue that information and also in the form of reports, it is not easily accessible and accessing a specific piece of information that you are looking for quickly is not possible. This work uses Retrieval Augmented Generation (RAG) to leverage the power of Large Language Models (LLM) without the associated cost of fine-tuning or retraining the LLM to provide a Chatbot trained on the relevant WASH services data; so as to provide relevant information quickly without having to spend hours looking for the information. The LLM's pretraining will also enable it to not just provide the facts, but to also put them in context by providing extra explanation about the information it re …