Journal of Cognitive Human-Computer Interaction

UNI – A Retrieval Augmented Generation Powered Virtual Assistant for College Related Queries

Sanjana J., Mahadev Prasad Y. N., Srinivas B., Sharanya S., Madhusudhan M.
Volume 8, Issue 2, pp. 10–14 (2024)
DOI: https://doi.org/10.54216/JCHCI.080203
Online: https://www.americaspg.com/journal/25/article/2903

Abstract

This paper unveils an advanced chatbot engineered to cater specifically to college-related inquiries. Harnessing the power of BARD and incorporating a wake word activation system with automatic speech recognition, the chatbot offers an enhanced user experience marked by both linguistic sophistication and spoken command initiation. The methodology encompasses the nuanced process of pre-training on diverse corpora, fine-tuning to optimize responsiveness to college-specific queries, and the seamless integration of intent classification and entity recognition. These facets collectively empower the chatbot to understand and respond effectively to the intricacies of user inputs. A comprehensive knowledge base is curated to ensure not only accurate information retrieval but also to foster a depth of contextual understanding. This project signifies a pioneering leap in providing an innovative, user-friendly, and ethically driven solution for addressing college-related queries through natural language interactions. By showcasing practical advancements in chatbot technology tailored to the educational landscape, this research contributes to the evolving landscape of intelligent virtual assistants.

Keywords: Virtual assistant; Large language model; Natural language queries; Entity recognition; Wake word activation; Intent classification; Retrieval augmented generation

1. INTRODUCTION

The advent of Large Language Models (LLMs), has opened new avenues for crafting virtual assistants capable of nuanced language understanding and generation. This project harnesses the power of LLMs to deliver a virtual assistant that not only comprehends user inputs with sophistication but also responds in a manner that replicates human-like interactions. A distinctive feature of this virtual assistant lies in its utilization of a wake word activation system, coupled with automatic speech recognition, allowing users to initiate interactions effortlessly through spoken commands.

In recent years, the integration of artificial intelligence and natural language processing technologies has witnessed a transformative impact on human-computer interactions. Within the educational domain, the development of intelligent virtual assistants has emerged as a significant frontier, offering innovative solutions to address user inquiries and enhance overall user experiences. This paper introduces a pioneering project focused on the implementation of a sophisticated chatbot specifically tailored to cater to college-related queries, positioning itself at the intersection of advanced natural language processing techniques and the unique demands of the educational landscape.

By addressing the unique challenges posed by college-related inquiries, this project not only contributes to the growing body of research in natural language processing and virtual assistant technologies but also presents a practical application

Figure 1. Retrieval Augmented Generation.
Figure 1. Retrieval Augmented Generation.

at the forefront of educational technology. The ensuing sections of this paper will delve into the literature reviewed, VA characteristics, and methodology of the implemented chatbot, shedding light on its potential implications and advancements in the landscape.

The integration of Natural Language Processing (NLP) into virtual assistants has witnessed substantial advancements, particularly within educational contexts. This literature review synthesizes key insights from relevant studies that explore the implementation of virtual assistants for addressing collegerelated inquiries.

2.1 Understanding Chatbots

In their comprehensive overview of chatbot technology, Adamopoulou and Moussiades [1] provide foundational insights into the broader landscape of chatbots. While not specifically focused on college-related FAQs, this source lays the groundwork for understanding the evolution, features, and applications of chatbots, setting the stage for a deeper exploration in educational settings.

2.2 Virtual Assistance in Any Context

Janssen et al. [2] present insights into virtual assistance across diverse contexts, emphasizing the adaptability of these technologies. While not specific to colleges, this study contributes valuable perspectives on the broader applications of virtual assistants. Understanding virtual assistance across various domains can inform the design and deployment strategies for a college-related virtual assistant.

2.3 Machine Learning and Chatbots

Suta et al. [3] provide an insightful overview of machine learning in chatbots, directly relevant to the incorporation of NLP in virtual assistants. The study explores the intersection of machine learning and chatbot development, offering insights into methodologies that can boost the performance of a virtual assistant for college-related queries.

2.4 Other College Enquiry Chatbots

Parkar et al. [4], Shingte et al. [5], and Tiwari et al. [6] discuss AI-based chatbots for college enquiry and educational institutes. These studies are useful for understanding the practical challenges, successes, and considerations involved in implementing AI chatbots designed for handling college-related FAQs.

2.5 Retrieval Augmented Generation

Li et al. [7] present a survey on retrieval-augmented text generation, offering insights into advanced techniques that involve the integration of retrieval mechanisms with text generation. This survey informs the enhancement of virtual assistant capabilities, especially in the context of information retrieval for FAQs. Shuster et al. [8] explore the application of retrieval augmentation in conversation to reduce hallucination. This research is valuable for understanding how retrieval mechanisms can improve the accuracy and reliability of responses generated by virtual assistants, a crucial consideration for handling college-related queries.

2.6 NLP and STT Applications with Chatbots

Inupakutika et al. [9] focus on the integration of NLP and speech-to-text applications with chatbots. This study is particularly pertinent to the implementation of a virtual assistant for college-related FAQs, addressing the fusion of NLP and speech recognition technologies. Understanding the synergy between these technologies significantly contributes to the effectiveness of the implemented system.

In conclusion, the amalgamated insights from these studies form a comprehensive understanding of chatbot and virtual assistant technologies, with a specific focus on their applications in handling college-related inquiries. These findings lay the groundwork for future research endeavors, providing a robust foundation for refining and optimizing virtual assistants tailored for addressing FAQs in a college setting.

3. CHATBOT CHARACTERISTICS

Recognizing the essential attributes of a chatbot holds significance in the design process. These characteristics have been identified by studying people’s expectations for chatbots, employing a methodology that involves comparing past human-human and human-chatbot interactions. As indicated in a chatbot survey, the evolution of chatbot development has progressed from simple pattern matching and “Q&A” styles to more advanced conversational systems. To support the proposed assistant’s core functionalities, the essential characteristics and capabilities are outlined as follows.

3.1 Communication Using Natural Language

Chatbots are expected to comprehend and reply in a manner consistent with human natural language. Presently, these chatbots predominantly employ Machine Learning (ML) in conjunction with Natural Language Processing (NLP) within the realm of Artificial Intelligence (AI). It has been observed that the structure of information-seeking chatbots typically comprises three key components: Natural Language Understanding (NLU) for categorizing the user’s intent, Dialogue Management (DM) for determining the user’s intent, and Natural Language Generation (NLG) for crafting responses in natural language. Following the identification of pertinent answer categories, the chatbot is required to: 1) formulate a suitable, personalized response in natural language, and 2) deliver the response promptly without any delay.

3.2 Reliability

Chatbots are expected to offer information that is not only reliable but also verified by authoritative sources. Ensuring the accuracy and credibility of the information is crucial to instill confidence in users and provide them with trustworthy responses. By relying on verified data from recognized authorities, chatbots contribute to a more secure and reliable exchange of information, promoting user satisfaction and confidence in the accuracy of the provided content.

3.3 Security

Safeguarding the integrity of the chatbot system, security features must be in place to exclusively grant system or database access to authorized users. Validation and sanitization of user inputs constitute essential measures to counter prevalent security threats like SQL injection. These proactive security protocols fortify the chatbot against potential vulnerabilities, reinforcing its capability to ensure a secure and trusted user experience.

4. METHODOLOGY

The methodology for implementing the virtual assistant for college-related FAQs involves a systematic process that encompasses the following key components:

Figure 2. Flowchart.
Figure 2. Flowchart.

4.1 Wake Word Activation

The chatbot incorporates a wake word activation system to listen for a specific trigger phrase. This system employs automatic speech recognition (ASR) to convert spoken words into text, allowing the chatbot to identify when a user wants to initiate a conversation.

4.2 User Interaction Initiation

Upon detecting the wake word, the chatbot system recognizes that a user wants to interact. The ASR system processes the spoken command, converting it into a textual representation for further analysis.

4.3 Intent Classification and Entity Recognition

The pre-trained language model performs intent classification to understand the user’s goal or purpose in the interaction. It categorizes user inputs into specific intent categories, such as asking for information, making a request, or expressing a preference. Simultaneously, entity recognition identifies and extracts specific details or entities from the user’s input. For example, it recognizes faculty names, departments, or other relevant information.

4.4 Dialog Management

The chatbot uses a dialog management system, potentially based on state machines or rule-based approaches, to organize the flow of conversation. It maintains context, manages conversation states, and generates coherent responses based on the identified intent and extracted entities.

4.5 Information Retrieval

When the user’s query requires specific information, the chatbot retrieves relevant data from its knowledge base. This could include details about colleges, admission processes, course offerings, and other related information.

4.6 Response Generation

The language model generates a natural language response based on the identified intent, extracted entities, and retrieved information. The response is crafted to provide accurate and contextually relevant answers to the user’s query.

5. CONCLUSION

In this paper, we have presented an innovative project focused on the implementation of a virtual assistant tailored specifically for college-related FAQs, leveraging advanced Natural Language Processing (NLP) techniques. The development of the chatbot, rooted in the capabilities of BARD and a wake word activation system, aims to address the unique challenges posed by inquiries within the educational domain. Our methodology encompasses comprehensive pre-training, finetuning, and the integration of intent classification and entity recognition to enhance the chatbot’s language understanding capabilities. The literature review provided a contextual foundation, drawing from studies that explore the broader landscape of chatbot technology, the integration of NLP in virtual assistants, and recent advancements in retrievalaugmented text generation. By incorporating insights from diverse sources, we have positioned our project within the evolving field of intelligent virtual assistants, specifically tailored for college-related queries. The continuous improvement strategy, involving real-world deployment and user feedback analysis, ensures the adaptability and responsiveness of the chatbot to the evolving needs of users. Ethical considerations embedded in the design prioritize user privacy, reflecting a commitment to responsible AI deployment.

6. FUTURE ENHANCEMENTS

As we look ahead, there are several avenues for future research and development:

1. Enhanced Knowledge Base: Further enrichment of the knowledge base with dynamic, real-time updates to accommodate evolving information and changes within the college environment.

2. Multi-Modal Integration: Exploration of multi-modal capabilities, including image and document processing, to enable the chatbot to handle a broader range of user inquiries.

3. Trustworthiness and Explainability: Incorporation of mechanisms to enhance the trustworthiness and explainability of the chatbot’s responses, addressing user concerns and ensuring transparency in the decision-making process.

4. User Experience Optimization: Iterative enhancements to the user interface and experience to make interactions more intuitive, personalized, and aligned with user preferences.

5. Collaboration with Educational Institutions: Collaborative efforts with educational institutions to integrate the chatbot seamlessly into existing systems, providing tailored support for students, faculty, and staff.

6. Integration with Academic Resources: Integration with academic resources such as course catalogs, syllabi, and academic calendars to provide more comprehensive and accurate responses to academic inquiries.

7. Advanced Conversational Capabilities: Exploration of advanced conversational capabilities, including sentiment analysis and emotional intelligence, to enable more nuanced and empathetic interactions.

In conclusion, this project marks a significant step towards the development of intelligent virtual assistants tailored for educational settings. The outlined future works aim to propel the system’s capabilities further, ensuring it remains at the forefront of addressing college-related queries through natural language interactions. The collaboration between technology and education holds vast potential, and the ongoing refinement of our virtual assistant seeks to unlock new possibilities for enhanced user support and engagement within the academic realm.

References

  1. E. Adamopoulou and L. Moussiades, “An overview of chatbot technology,” in IFIP International Conference on Artificial Intelligence Applications and Innovations, 2020, pp. 373–383.
  2. A. Janssen, J. Passlick, D. Rodríguez Cardona, and M. H. Breitner, “Virtual assistance in any context: A taxonomy of design elements for domain-specific chatbots,” Business & Information Systems Engineering, vol. 62, pp. 211–225, 2020.
  3. P. Suta, X. Lan, B. Wu, P. Mongkolnam, and J. H. Chan, “An overview of machine learning in chatbots,” Interna- tional Journal of Mechanical Engineering and Robotics Research, pp. 502–510, 2020.
  4. R. Parkar, Y. Payare, K. Mithari, J. Nambiar, and J. Gupta, “Ai and web-based interactive college enquiry chatbot,” in 2021 13th International Conference on Electronics, Computers and Artificial Intelligence (ECAI). IEEE, 2021, pp. 1–5.
  5. K. Shingte, A. Chaudhari, A. Patil, A. Chaudhari, and S. Desai, “Chatbot development for educational institute,” 2021, available at SSRN 3861241.
  6. R. Tiwari, R. Khandelwal, Y. Agrawal, V. Tiwari, and W. Bisen, “Ai chatbot for college enquiry,” 2023, available at SSRN 4422268.
  7. H. Li, Y. Su, D. Cai, Y. Wang, and L. Liu, “A survey on retrieval-augmented text generation,” 2022, arXiv preprint arXiv:2202.01110.
  8. K. Shuster, S. Poff, M. Chen, D. Kiela, and J. Weston, “Retrieval augmentation reduces hallucination in conver- sation,” 2021.
  9. D. Inupakutika, M. Nadim, G. R. Gunnam, S. Kaghyan, D. Akopian, P. Chalela, and A. G. Ramirez, “Integration of nlp and speech-to-text applications with chatbots,” Electronic Imaging, vol. 2021, no. 3, pp. 35–1, 2021.
  10. M. U. Hadi, R. Qureshi, A. Shah, M. Irfan, A. Za- far, M. B. Shaikh, N. Akhtar, J. Wu, S. Mirjalili et al., “Large language models: A comprehensive survey of its applications, challenges, limitations, and future prospects,” 2023, authorea Preprints.
  11. K. Moore, S. Zhong, Z. He, T. Rudolf, N. Fisher, B. Victor, and N. Jindal, “A comprehensive solution to retrieval-based chatbot construction,” Computer Speech & Language, vol. 10, 2023.
  12. Pooja, M. K. Mukhija, and S. K. Alaria, “Smart city’s security model for management of image data on cloud,” Journal of Cognitive Human-Computer Interaction, vol. 2, no. 1, pp. 8–14, 2022.
  13. P. K., T. C., and P. M., “Apparel recommendation engine using inverse document frequency and weighted average word2vec,” Journal of Cognitive Human-Computer Interaction, vol. 1, no. 2, pp. 46–56, 2021.
  14. M. Mittal, G. Battineni, D. Singh, T. S. Nagarwal, and P. Yadav, “Web-based chatbot for frequently asked queries (faq) in hospitals,” Journal of Taibah University Medical Sciences, pp. 740–746, 2021.
  15. M. Sumithra, B. Buvaneswar, J. Judith, D. Mary, R. Punitha, and S. Pavithraa, “Innovation for better education system using artificial intelligence,” Journal of Cognitive Human-Computer Interaction, vol. 2, no. 1, pp. 19–28, 2022.
  16. M. Sumithra, V. P. Chezhian, K. Raj Kumar, and S. Nithish Kumar, “Automated attendance system using real time face recognition and mysql database,” Journal of Cognitive Human-Computer Interaction, vol. 2, no. 1, pp. 15–18, 2022.
  17. P. Rajmohan, U. S. Rishisarvesh, G. Ponkumar, R. Naveen, R. S. Pragathish, P. Santhosh, K. D. Arun, and S. Moinudeen, “Transformer analyzer bot,” Journal of Cognitive Human-Computer Interaction, vol. 3, no. 2, pp. 16–20, 2022.
  18. S. Li, S. Park, I. Lee, and O. Bastani, “Trac: Trustwor- thy retrieval augmented chatbot,” 2023, arXiv preprint arXiv:2307.04642.