LLM & RAG application / Project notes
Healthcare AI Assistant - RAG with Safety Guardrails
Overview
I co-developed a retrieval-based healthcare assistant built with LangChain. It answers questions from a curated healthcare knowledge base and from uploaded PDFs, using Hugging Face sentence-transformer embeddings and FAISS for retrieval, with an index scoped to each session. It supports Gemini and Groq-hosted models, streams responses, keeps conversational memory and health-profile context, and cites its sources.
My work included safety checks for emergency detection, preventing diagnosis and prescription advice, handling off-topic requests, and validating the model's answer after generation. I covered the prompt and safety workflows with Pytest.
The problem
Give grounded answers from health documents without letting an LLM diagnose, prescribe, or answer outside its scope.
The result
Built a RAG assistant with PDF ingestion, session-scoped indexing, streaming, citations, layered safety guardrails and automated tests for the prompt and safety behaviour.
RAG, LLM guardrails, Healthcare AI, Streaming