Development of a ChatBot model for health telecare: Integration of LangChain, embeddings with OpenAI, and Pinecone using the question answering technique

Main Article Content

O. Cárdenas
https://orcid.org/0000-0001-6570-8040
S. Falconi
https://orcid.org/0000-0002-1536-4099
E. Tusa
https://orcid.org/0000-0002-9408-5134
A. Rodríguez
https://orcid.org/0009-0005-6895-3806

Abstract

This study was dedicated to the development of an advanced model for a medical ChatBot, aimed at optimizing Telecare in healthcare. Cutting-edge technologies such as LangChain, Embeddings with OpenAI, and Pinecone were incorporated, applying Question Answering techniques to enhance user-Bot interaction. Google Colab was essential, serving as the main environment for both running the code and the ChatBot, in addition to facilitating intensive data processing. The methodology involved a manual and rigorous data collection from official medical sources to ensure the accuracy and reliability of the information integrated into the ChatBot. The results showed a notable variability in response times between GPT-3.5-turbo and GPT-4, with a comprehensive cost evaluation to analyze the profitability of both models in specific medical contexts. In conclusion, the study provided significant insights into the implementation and efficacy of advanced medical ChatBot models, revealing crucial considerations about optimizing response times and cost evaluations in the development of innovative Telecare solutions in healthcare.

Article Details

How to Cite
Cárdenas, O., Falconi , S., Tusa , E., & Rodríguez, A. (2024). Development of a ChatBot model for health telecare: Integration of LangChain, embeddings with OpenAI, and Pinecone using the question answering technique. Journal of Applied Research and Technology, 22(3), 389–402. https://doi.org/10.22201/icat.24486736e.2024.22.3.2367
Section
Articles
Author Biographies

O. Cárdenas, Universidad Técnica de Machala, Carrera de Tecnologías de la Información, Machala, Ecuador

  • Systems Engineer.
  • Telecommunications.

S. Falconi , Universidad de Almería, Facultad de Ciencias Médicas, Almería, España

  • University Professor at the Technical University of Machala, Nursing Program
  • Licensed in Nursing
  • Master's in Epidemiology
  • Doctoral Candidate at the University of Almería