- Project Overview
- Features
- Technologies Used
- Architecture
- Installation
- Usage
- Prototype Video
- Contributing
- License
- Contact
Patients and healthcare providers need an intelligent assistant to provide accurate medical information, preliminary assessments, and support in healthcare management. There is a need for up-to-date information on medical conditions, treatments, and medications.
Develop a general chatbot where patients can input symptoms and receive preliminary assessments and recommendations. Additionally, the system should assist patients in scheduling appointments with healthcare providers. Providing personalized health advice and reminders based on individual health data and preferences can improve patient outcomes.
- Accuracy: The chatbot should provide reliable and accurate information, avoiding false or misleading content.
- Chat History: Users should have access to their chat history for at least one week.
-
Medical Information Retrieval:
- Utilizes a knowledge base containing a book of signs and symptoms of diseases.
- Provides accurate responses to user queries about medical conditions, treatments, and medications.
-
Voice Interaction:
- Voice Input: Users can speak their symptoms or queries.
- Text-to-Speech: Responses can be listened to using Azure Speech services.
-
Doctor Finder:
- Integrates HERE API to locate nearby doctors based on the user's address.
-
Chat History Management:
- Stores all chat interactions in MongoDB, allowing users to access their chat history for up to a week.
- Framework: Streamlit, Crew AI
- Language Models: LangChain, GroQ Model
- Database: Pinecone (Vector Database), MongoDB
- APIs: HERE API, Azure Speech
- Other Tools: RAG (Retrieval-Augmented Generation)
- User Interface: Built with Streamlit, providing an interactive chat interface.
- Natural Language Processing: LangChain and GroQ model handle user queries.
- Knowledge Base: Vector database in Pinecone stores and retrieves information from a comprehensive medical book.
- Voice Features: Azure Speech services manage voice input and text-to-speech functionalities.
- Doctor Finder: HERE API locates nearby healthcare providers based on user input.
- Data Storage: MongoDB stores chat histories securely.
- Python 3.10 or higher
- Git
- MongoDB account
- Pinecone account
- HERE API account
- Azure Speech account
-
Clone the Repository:
git clone https://github.com/yourusername/medical-chatbot.git cd medical-chatbot -
Create and Activate a Virtual Environment:
conda create -n myenv
conda activate myenv- Install requirements.txt
pip install -r requirements.txt- Create a .env file
PINECONE_API_KEY=your_pinecone_key
MONGODB_URI=your_mongodb_uri
HERE_API_KEY=your_here_api_key
AZURE_SPEECH_KEY=your_azure_speech_key
- Run the application
streamlit run app.py