How manishkondoju/health_compass works
Health Compass is a Streamlit medical-information platform whose main user flow turns a health question into a safety-checked, source-cited RAG response. Its data-preparation path collects trusted-source pages, cleans and chunks them, then indexes them for retrieval. The README also describes document analysis, profile personalization, symptom tracking, specialist matching, medication support, and health-assistant features. Some feature modules were not sampled; those branches reflect documented capabilities, and their internal calls are not inferred.
Main entry points: app.py Streamlit app · rag_pipeline.py RAG pipeline · healthcare_assistant.py Healthcare assistant · document_analyzer_enhanced.py Medical documents
Components 21
User experience
- Streamlit app
src/app.py - Medical documents
src/utils/document_analyzer_enhanced.py - Healthcare assistant
src/utils/healthcare_assistant.py
Health knowledge
- RAG pipeline
src/rag/rag_pipeline.py - Safety checks
src/utils/safety.py - Vector search
src/rag/vector_db.py - OpenRouter LLM
src/rag/openrouter_client.py - Text processing
src/processors/text_processor.py - CDC scraper
src/scrapers/cdc_scraper.py - MedlinePlus scraper
src/scrapers/medlineplus_scraper.py
Personal health guidance
- Symptom tracker
src/utils/symptom_tracker.py - Specialist matcher
src/utils/specialist_matcher.py - Symptom navigator
src/utils/symptom_navigator.py - Health tools
src/utils/health_tools.py - Health news
src/utils/news_aggregator.py
Personal health data
- User profile
src/utils/user_profile.py - Medication tracker
src/utils/medication_tracker.py - Health journals
src/utils/health_journal.py - Smart journal
src/utils/smart_journal.py
Other components
- Health user
- Health websites
Connections 27
- Health user → Streamlit app: uses
readme.md - Streamlit app → RAG pipeline: submits queries
src/app.py - RAG pipeline → Vector search: retrieves context
src/rag/rag_pipeline.py - RAG pipeline → OpenRouter LLM: generates answer
src/rag/rag_pipeline.py - RAG pipeline → Safety checks: checks safety
src/rag/rag_pipeline.py - RAG pipeline → Streamlit app: returns citations
readme.md - Health websites → CDC scraper: provides pages
src/scrapers/cdc_scraper.py - Health websites → MedlinePlus scraper: provides pages
src/scrapers/medlineplus_scraper.py - CDC scraper → Text processing: stores raw pages
src/scrapers/cdc_scraper.py - MedlinePlus scraper → Text processing: stores raw pages
src/scrapers/medlineplus_scraper.py - Text processing → Vector search: indexes chunks
run_pipeline.py - Health user → Medical documents: uploads reports
readme.md - Streamlit app → Medical documents: renders analyzer
src/app.py - Streamlit app → Healthcare assistant: renders assistant
src/app.py - Streamlit app → Symptom tracker: renders tracking
src/app.py - Streamlit app → Specialist matcher: renders matching
src/app.py - Streamlit app → User profile: manages profile
src/app.py - Streamlit app → Symptom navigator: offers guidance
readme.md - Streamlit app → Medication tracker: tracks medications
readme.md - Streamlit app → Health journals: offers journaling
- Streamlit app → Smart journal: offers smart journal
- Streamlit app → Health tools: offers health tools
- Streamlit app → Health news: offers health news
- Medical documents → RAG pipeline: queries knowledge
src/utils/document_analyzer_enhanced.py - Specialist matcher → RAG pipeline: enriches recommendations
src/utils/specialist_matcher.py - Healthcare assistant → User profile: personalizes responses
- Healthcare assistant → Medication tracker: checks interactions