How has1elb/datacarelytics works
Project Type & Purpose
• DataCarelytics is a Python-based analytics suite for healthcare data.
• It provides:
• Medical chatbots (two versions)
• Medical-report natural-language analysis
• Tabular-data ML workflows
• Image-based tumor classification
File Structure
Top-level modules each represent a distinct service/component:
• medical_chatbot & medical_chatbot2 – chat interfaces + FAISS vector store
• medical_report_analysis – text-analysis agents & app logic
• tabular_data – data ingestion, preprocessing, ML models
• trt_image – pre-trained H5 models & image classification logic
• main.py (root) – likely an entry-point or orchestrator
• assets/style.css, style.css – shared front-end styling
• requirements.txt – dependencies (e.g., Flask/FastAPI, FAISS, TensorFlow/PyTorch)
Additional Insights (README is minimal, so infer from code)
• medical_chatbot2/create_vectorstore.py builds FAISS indices
• Each sub-folder has app.py or main.py, hinting at micro-app endpoints
• Vector store data lives under vectorstore/db_faiss/
Main Components
a. Client Layer
• Web UI (HTML/CSS) served by each “app.py”
• Could be browser or CLI
b. API Gateway / Orchestrator
• root main.py routes incoming requests to the correct service
c. Services (each as its own module)
1. Chatbot Service v1 (medical_chatbot/app.py + utils.py)
2. Chatbot Service v2 (medical_chatbot2/main.py + vectorstore)
3. Report Analysis Service (medical_report_analysis/app.py + agents.py)
4. Tabular Data Service (tabular_data/data_processing.py + ml_models.py)
5. Image Classification Service (trt_image/main.py)
d. Storage & Models
• FAISS Vector Store (.faiss & .pkl files)
• Pretrained models (.h5 under trt_image)
• Tabular data configs & model artifacts
e. Shared Libraries
• utils.py under various modules
Relationships & Data Flows
• Client → API Gateway (main.py) → specific service
• Chatbot services query/update FAISS vector store
• Report Analysis and Tabular Data services read input from client or data sources, run models, return results
• Image service loads H5 models in memory, processes uploads, returns predictions
• All services may share common configs or auth middleware
Architectural Patterns
• Modular (micro-app) services
• Separation of concerns: each domain in its own package
• Data-flow pipelines (e.g., vectorstore build → query → chat response)
• ML model hosting and inference