Development of a Medical Chatbot Using Generative AI and Retrieval-Augmented Techniques
Abstract
Quick and accurate access to medical information is crucial for patients and healthcare professionals alike. Traditional search engines often fail to concise and context-specific responses to medical queries. This paper introduces a medical chatbot that combines large language models (LLMs) with retrieval-augmented generation (RAG) techniques to generate reliable and contextually relevant answers. The system integrates the Mistral-7B-Instructv0.3 model hosted on Hugging Face and uses Pinecone, a vector database, for efficient semantic search. Built using the Flask web framework, the chatbot retrieves the most relevant medical texts, constructs dynamic prompts, and generates accurate, user-friendly responses. Experiments with common medical questions demonstrate the chatbot’s ability to deliver timely, medically sound answers, highlighting the advantages of combining retrieval mechanisms with generative models in healthcare applications.
Read the paper
Related studies
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.