Labmate is an AI-powered medical report reader that extracts key metrics from your lab reports and explains them in simple, plain English with natural lifestyle recommendations.
🔗 Live Demo (Update with actual live URL if different)
⚠️ Disclaimer: This tool provides general educational information based on AI analysis. It is not medical advice, diagnosis, or treatment. Always consult a qualified doctor before making any health decisions.
- Upload PDF: Securely upload your blood tests, lipid panels, or other medical reports.
- Extract Text: Automatically extracts text from the PDF (Note: PDF must be text-searchable. Scanned images without OCR will not work).
- Groq Structured Extraction: Uses Llama 3.3 via Groq to parse the text and structure the data.
- Report UI: Beautiful, easy-to-read interface showing status (high/low/normal) and lifestyle-only suggestions.
| Technology | Description |
|---|---|
| Next.js 16 | React framework (App Router) |
| pdf-parse | Extracts text from PDF files |
| Groq Llama 3.3 | Blazing fast AI inference for structured extraction |
| Tailwind CSS | Utility-first styling |
| Recharts | For potential future data visualization |
| Framer Motion | UI animations |
-
Clone the repository and install dependencies:
npm install
-
Set up your environment variables by copying the example file and adding your Groq API key:
cp .env.example .env.local
Note: Without a valid
GROQ_API_KEY, the application will return mock data for testing the UI. -
Start the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
The application follows a simple flow:
upload-> User uploads a PDF.POST /api/parse-pdf-> The backend parses the PDF text (usingpdfText.substring(0, 10000)to stay within AI context limits) and sends it to the Groq API for structured extraction.report/[id]-> The structured data is presented to the user.