Skip to content

Latest commit

 

History

History
executable file
·
80 lines (56 loc) · 2.46 KB

README.md

File metadata and controls

executable file
·
80 lines (56 loc) · 2.46 KB

Chatbot Web Framework for Response Comparisons and Performance Analysis in FAQs

Project Summary

The objective of this project is to design a full stack web application to compare a variable set of FAQ Chatbot API endpoints. The chatbot platform includes a text input and a speech input for intuitiveness and to cater for real live scenarios. For the context of this project, MSF's Baby Bonus and other topics are used as a test bed for FAQ question and answer matching.

Features

  1. Text and Speech based input methods
  2. Multi FAQ Endpoint selection for response visualization
  3. Response similarity comparison
  4. Recommendation for similar questions

FAQ Matching APIs used

  1. Govtech's askJamie (Benchmark for accuracy comparison)
  2. MICL lab's QA Matching Model
  3. Google's Dialogflow
  4. Rajat QA Matching Model
  5. Rushi's QA Matching Model

Speech to Text API used

  1. AISG's Speech to Text
  2. Google's Speech API

Deployment Considerations

Docker is used to set up 3 microservices React Frontend and NodeJs Backend. A docker-compose file is used to start up all microservices for deployment usage. Docker deployment resources can be found in the Docker branch of the repository.

Project organization:

frontend directory: Written on ReactJS, provides the view of the application
backend directory: Written on NodeJS, provides API endpoints for frontend
dialogflowfunctions: Written on NodeJS, used to upload intentions to dialogflow for NLP training

Master Branch

Running Development
Following directories must be executed in seperate terminals to run application. Cd into the respective directories and execute the command to run it.

  1. Frontend Directory
  2. Backend Directory

Additional Requirement
Create a .env file in the Backend Directory with the following:

DIALOGFLOW_KEYFILENAME_COVID19=
DIALOGFLOW_KEYFILENAME_BABYBONUS=

MICL_ENDPOINT=
RAJAT_ENDPOINT_BABYBONUS=
RAJAT_ENDPOINT_COVID19=
RUSHI_ENDPOINT=
BANI_ENDPOINT=

AISG_CREDENTIALS=
SPEECH_API=
SPEECH_HTTP_API=
SPEECH_HTTP_AUTH=
SPEECH_ENDPOINT=

DB_HOST=localhost
DB_PORT=27017
DB_USER=
DB_PASS=
DB_NAME=faqdatastore

Create a .env file in the Frontend Directory with the following:

REACT_APP_API=

Installation/setup instructions will be provided in each directory.

Models API related information will be available on the README in the backend directory