Core Integrations
Supabase
Backend-as-a-Service providing database, authentication, and file storage
Groq
Ultra-fast LLM inference for medical insights and radiology analysis
LlamaParse
Intelligent PDF parsing for extracting structured data from lab reports
Gladia
Real-time speech-to-text for medical dictation and note-taking
Integration Architecture
The integrations work together to create a seamless workflow:Setup Requirements
Before using MedMitra, you’ll need to set up accounts and obtain API keys for:- Supabase Project - Database, auth, and storage
- Groq API Key - LLM inference
- LlamaParse API Key - Document parsing
- Gladia API Key - Speech-to-text (optional)
All API keys should be stored in environment variables. See individual integration pages for specific setup instructions.
Environment Variables
MedMitra uses environment variables to securely manage API keys and configuration:Backend (.env)
Frontend (.env.local)
Data Flow
Case Creation & Document Processing
- User uploads documents → Stored in Supabase Storage
- PDF lab reports → Processed by LlamaParse
- Radiology images → Analyzed by Groq Vision (LLaVA model)
- All data → Stored in Supabase Database
AI Insights Generation
- Aggregated data → Sent to Groq LLM
- Medical analysis → Case summary, SOAP notes, diagnosis
- Results → Stored in Supabase Database
- Display → Retrieved and shown in frontend
Speech-to-Text Workflow
- User starts dictation → Connects to Gladia WebSocket
- Audio streaming → Real-time transcription
- Final transcript → Added to case notes
Cost Considerations
Each integration has different pricing models:- Supabase: Free tier available, pay for storage/bandwidth
- Groq: Usage-based pricing (very competitive rates)
- LlamaParse: Credit-based system
- Gladia: Pay per audio processing minute
Next Steps
Set up Supabase
Configure database, authentication, and file storage
Configure AI Services
Set up Groq and LlamaParse for AI processing
