An AI-Driven Interactive Chatbot: A Well-Trained Chatbot That Communicates With The Users and Reduces The Manual Interaction
An AI-Driven Interactive Chatbot: A Well-Trained Chatbot That Communicates With The Users and Reduces The Manual Interaction
ISSN No:-2456-2165
This study uses various tech stacks. The process we The era of chatbots can be seen in the past. Now with the
discussed was implemented using LLM (Large Language extreme enhancement of NLP [1] the domain of deep learning
Models) generative AI. Seamless deployment makes it easy has grown immensely. The innovative solution called
to chat and get answers within seconds. transformers is really groundbreaking in the domain of text
data execution. In that sense advancement of a chatbot offers a
Keywords:- Chatbot, Transformers, LLM, Lang chain, Prompt smooth engagement of humans and machines.
Engineering, Mistral 7B, PALM2, Flask
This research refers to the CRISP-ML(Q) [Fig.1][2]
methodology which is open source provided by 360DigiTMG.
Cross Industry Standard Practice for Machine Learning with
Quality Assurance is the full form of CRISP-ML(Q) [2].
Fig.1: CRISP-ML (Q) Methodological Framework, outlining its key components and steps visually. (Source:-Mind Map -
360DigiTMG)
This exploration has taken LLM (large language models) [3] into consideration. Pre-trained LLM models can only answer
whatever data it was trained on. In this research according to the business problem users are supposed to ask queries that are institutes-
specific. Also leveraging only pre-trained models if we proceed to solve the business problem, it will hallucinate [4]. To prevent the
hallucination [4] this research proposes to do cumulative training or we can use a vector store index for embedding the extra
information.
RAM 16 GB
GPU 16 GB
A. Mode Architecture
Fig.2: Architecture Diagram: explanation of the workflow of the chatbot (Source:- https://360digitmg.com/ml-workflow)
This entire Excel sheet was retrieved by Python and converted into a PDF file [Fig.5]. This PDF file data arrangement is very
simple. It consists of the survey in a sequential manner.
After the accomplishment of the successful model, research was concluded with the API (Application Programming Interface)
deployment using Flask and AWS (Amazon Web Service). The entire website was pushed to the ec2 instance. In this research, AWS
was used because of the adjustability and the expandability of the deployment.
Initially, it arrives at a page [Fig.8] where the user can speak with the chatbot and ask doubtful queries. The “Ask” button has to
be pressed once the question has been typed. Once the button is clicked it will reroute to a new page [Fig.9] which will consist of the
response.