Leveraging the Potential of Large Language Models

Shreya Prasad, Himank Gupta, Arup Ghosh

Abstract


This study focuses on enhancing Natural Language Processing (NLP) in generative AI chatbots through the utilization of advanced pre-trained models. We assessed five distinct Large Language Models (LLMs): TRANSFORMER MODEL, FALCON 7B, LAMINI-FLAN-T5-783M, LLAMA-2-7B, and LLAMA-2-13B to identify the most effective one. Our findings revealed that the LLAMA Model excels in comprehending user queries and delivering precise responses during conversations. The article elucidates the methodology employed to evaluate and select various models for our chatbot. Through rigorous testing, we determined that the LLAMA-2-13B model exhibits enhanced response time and accuracy. Additionally, we employed tools such as Facebook Artificial Intelligence Similarity Search (FAISS) and experimented with user interfaces like Streamlit and Chainlit to enhance the chatbot's user-friendliness. The research underscores the significance of selecting the appropriate model for crafting efficient chatbots. Ultimately, the LLAMA-13B model emerged as the standout performer, showcasing superior performance. Benchmark assessments, including HellaSwag and WinoGrande, which gauge common sense reasoning, were employed to evaluate our chatbot's capabilities. The study concludes that LLAMA-based models hold significant promise for the development of innovative and user-friendly chatbots in the future.

Full Text:

PDF

References


Dahiya, Menal. (2017). "A Tool of Conversation: Chatbot." INTERNATIONAL JOURNAL OF COMPUTER SCIENCES AND ENGINEERING, 5, 158-161.

Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). "Attention is all you need." Advances in neural information processing systems, 30.

Turing, A. M. (2009). "Computing machinery and intelligence." Springer Netherlands, pp. 23-65.

Weizenbaum, J. (1966). "ELIZA—a computer program for the study of natural language communication between man and machine." Communications of the ACM, 9(1), 36-45.

Klopfenstein, L. C., Delpriori, S., Malatini, S., & Bogliolo, A. (2017, June). "The rise of bots: A survey of conversational interfaces, patterns, and paradigms." In Proceedings of the 2017 conference on designing interactive systems, pp. 555-565.

Wallace, R. S. (2009). "The anatomy of ALICE." Springer Netherlands, pp. 181-210.

Marietto, M. D. G. B., de Aguiar, R. V., Barbosa, G. D. O., Botelho, W. T., Pimentel, E., França, R. D. S., & da Silva, V. L. (2013). "Artificial intelligence markup language: a brief tutorial." arXiv preprint arXiv:1307.3091.

Adamopoulou, Eleni & Moussiades, Lefteris. (2020). "An Overview of Chatbot Technology." pp. 373-383. 10.1007/978-3-030-49186-4_31.

Colace, F., De Santo, M., Lombardi, M., Pascale, F., Pietrosanto, A., & Lemma, S. (2018). "Chatbot for e-learning: A case of study." International Journal of Mechanical Engineering and Robotics Research, 7(5), 528-533.

Zellers, R., Holtzman, A., Bisk, Y., Farhadi, A., & Choi, Y. (2019). "Hellaswag: Can a machine really finish your sentence?." arXiv preprint arXiv:1905.07830.

Sakaguchi, K., Bras, R. L., Bhagavatula, C., & Choi, Y. (2021). "Winogrande: An adversarial winograd schema challenge at scale." Communications of the ACM, 64(9), 99-106.

Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M. A., Lacroix, T., ... & Lample, G. (2023). "Llama: Open and efficient foundation language models." arXiv preprint arXiv:2302.13971.




DOI: https://doi.org/10.31449/inf.v48i8.5635

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.