Spaces:
Running
Running
A newer version of the Streamlit SDK is available:
1.51.0
Medical Chatbot is Ready! π
Your medical chatbot is now running!
Access the Application
The Streamlit application should be running at: http://localhost:8501
Open this URL in your browser to start chatting with the medical chatbot.
What's Been Done
β Created complete medical chatbot architecture β Configured API keys (Pinecone & Google Gemini) β Installed all dependencies β Set up Pinecone vector database β Loaded 3,012 medical documents from MultiMedQA (MedMCQA dataset) β Integrated with Gemini 1.5 Flash β Started the Streamlit application
Project Files Created
app.py- Streamlit UI for the chatbotmedical_chatbot.py- RAG pipeline with Gemini & citationembedding_service.py- Sentence transformers & Pinecone integrationdata_loader.py- Medical data loading from Hugging Facesetup_database.py- Database initialization scriptconfig.py- Configuration managementrequirements.txt- Python dependenciesREADME.md- Complete documentationQUICK_START.md- Setup guide
Features
- π€ Uses Gemini 1.5 Flash for intelligent responses
- π Semantic search with Sentence Transformers
- π Retrieves relevant medical information
- π Provides citations and sources
- π― Shows confidence scores
- β οΈ Includes medical disclaimers
How to Use
- Open http://localhost:8501 in your browser
- Ask medical questions (e.g., "What are diabetes symptoms?")
- Get answers with:
- Confident responses based on source material
- Citation references
- Confidence scores (High/Medium/Low)
- Similarity scores
Important Notes
- β οΈ This is NOT medical advice
- β οΈ Always consult healthcare professionals
- β οΈ Confidence scores reflect data quality, not medical accuracy
Example Questions
Try asking:
- "What causes chest pain?"
- "How to treat high blood pressure?"
- "What are diabetes symptoms?"
- "Explain heart disease risk factors"
Current Data Source
The chatbot is trained on the MultiMedQA collection from Hugging Face:
- MedMCQA: 3,000+ medical multiple-choice questions and answers
- Source: https://huggingface.co/collections/openlifescienceai/multimedqa
Next Steps
To add more medical data:
- Run
python setup_database.pyto reload data - Modify
data_loader.pyto increase dataset limits - The system currently uses 3,012 medical documents
Enjoy your medical chatbot! π₯