Secure medical document analysis and processing application.
- Document Processing: Automated parsing of PDF and text-based medical records.
- Entity Extraction: Identifies and profiles medications, dosages, and relevant medical history.
- Contextual Analysis: Interactive interface for querying uploaded document data.
- Data Security: Localized file storage and tracking within the deployment environment.
HealthLoom utilizes a microservices-oriented architecture designed for accurate and performant health data extraction.
The backend is engineered for reliability and high performance, leveraging FastAPI for concurrent request handling and efficient API routing. The core logic is powered by LangGraph, which orchestrates a specialized processing pipeline:
- Ingestion Engine: Implements advanced document parsing with cryptographic hashing to prevent redundant processing of identical files, saving system resources.
- Extraction Pipeline: Dedicated processing nodes designed specifically for medical entity recognition, extracting critical data such as prescriptions, dosages, and contraindications.
- Dynamic Routing: An intelligent routing mechanism that evaluates user queries and directs them to the optimal subsystem (e.g., retrieving specific document context, accessing patient history, or querying general medical knowledge).
- Data Persistence: Utilizes PostgreSQL with async SQLAlchemy for reliable, high-performance tracking of document metadata, health records, and conversation history.
| Component | Technology |
|---|---|
| Frontend | React (Vite), CSS |
| Backend | FastAPI (Python) |
| Database | PostgreSQL |
| AI / LLM | Google Gemini API |
| Processing Pipeline | LangGraph, LangChain |
| Observability | LangFuse |
| Deployment | Docker, Docker Compose |
- Clone the repository.
- Configure
.envvariables if required. - Build and start the containers:
docker-compose up --build
- Access the application at
http://localhost:5173.
Backend:
- Navigate to the
backend/directory. - Install dependencies:
pip install -r requirements.txt
- Start the server:
uvicorn main:app --reload
Frontend:
- Navigate to the
frontend/directory. - Install dependencies and start the development server:
npm install npm run dev
HealthLoom/
├─ backend/ # FastAPI application, LangGraph pipelines, Database schemas
├─ frontend/ # React application, UI components
├─ docker-compose.yml # Container orchestration configuration
├─ README.md # Project documentation
- Improve mobile interface responsiveness.
- Implement multi-user authentication and session management.
- Add data visualization for extracted health metrics.
This project is licensed under the MIT License. See the LICENSE file for details.
