BACK TO HUB
// CASE STUDY :: AI & LLM

Medical Assistant LLM

HIPAA-compliant patient triage and clinical query parser using local LLMs.

// Abstract & Intent

An offline clinical assistant powered by fine-tuned open-weights models. It parses patient queries, extracts medical entities (symptoms, drugs, dosages), and returns structured triage severity levels without transferring sensitive patient health information to public cloud APIs.

// The Problem

Sending patient health data to external cloud-hosted AI models violates medical privacy regulations and risks data leaks.

// The Solution

Fine-tuned a Llama-3-8B model using Low-Rank Adaptation (LoRA) on curated clinical dialogue datasets, and deployed it locally via Ollama with a Next.js clinician dashboard.

// System Technologies

PythonPyTorchLoRAHugging FaceOllamaNext.jsFastAPI

// Architecture & Process Flow

1

Clinician Dashboard

A secure web UI for text inputs and structured patient charts.

2

Local LLM Layer

Fine-tuned Llama-3 model running locally using Ollama inference.

3

Entity Extraction Module

Post-processes model output to isolate clinical terms.

4

Triage Classifier

Rates patient status into low, medium, or high severity categories.

// Technical Obstacles & Solutions

[OBSTACLE_01]Local inference latency on consumer-grade hardware. Solved by quantizing the model to 4-bit weights, reducing response time under 1.5 seconds per query.

// Quantifiable Results

  • •Achieved high accuracy in symptom parsing and entity extraction.
  • •Engineered an offline-first system preserving complete data privacy.
  • •Visualized structured clinical summaries in a physician-oriented UI.