Spaces:
Sleeping
Sleeping
File size: 2,439 Bytes
0a5c991 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# 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 chatbot
- `medical_chatbot.py` - RAG pipeline with Gemini & citation
- `embedding_service.py` - Sentence transformers & Pinecone integration
- `data_loader.py` - Medical data loading from Hugging Face
- `setup_database.py` - Database initialization script
- `config.py` - Configuration management
- `requirements.txt` - Python dependencies
- `README.md` - Complete documentation
- `QUICK_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
1. Open http://localhost:8501 in your browser
2. Ask medical questions (e.g., "What are diabetes symptoms?")
3. 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:
1. Run `python setup_database.py` to reload data
2. Modify `data_loader.py` to increase dataset limits
3. The system currently uses 3,012 medical documents
Enjoy your medical chatbot! π₯
|