AI tool that converts complex medical PDFs into plain-language explanations using RAG + LLMs.
Patients routinely leave hospitals with reports they can't understand. This tool bridges that gap using retrieval-augmented generation.
git clone https://github.com/YOUR_USERNAME/medical-report-simplifier
cd medical-report-simplifier
python3 -m venv venv && source venv/bin/activate
pip3 install -r requirements.txt
echo "OPENAI_API_KEY=your-key" > .env
streamlit run app/main.pyLangChain · PyMuPDF · BioBERT embeddings · FAISS · GPT-4o-mini · Streamlit
PDF → Section-aware parser → Chunker → BioBERT embeddings → FAISS vector store → GPT-4o-mini (RAG) → Safety guardrails → UI
- Section-aware chunking over fixed token splits — medical reports have semantic sections. Splitting by section before chunking improves retrieval precision.
- BioBERT embeddings — domain-specific model understands medical synonyms (HbA1c = glycated hemoglobin) that generic models miss.
- Guardrail layer — post-processes every LLM response to catch and neutralise diagnosis-style phrasing before it reaches the user.