Project 13 · Generative AI
GenAI
PharmAssistAI
LLM Pharmaceutical Knowledge Assistant
01 Abstract
LLM Pharmaceutical Knowledge Assistant
A retrieval-augmented assistant for pharmaceutical questions that grounds Claude responses in FDA drug labels and clinical guidelines, with citation attribution and medical-safety guardrails.
02 Highlights
Methods & contributions
- Grounded RAG — semantic chunking of FDA label sections, hybrid search, and MMR re-ranking over ChromaDB.
- Citations — answers attribute back to source label sections with cosine-similarity retrieval.
- Safety — medical guardrails and refusal handling for unsafe or out-of-scope queries.
- Streaming UX — token-streamed responses over WebSocket with rate limiting.
03 Architecture
Data flow
query → embed → ChromaDB hybrid search → MMR re-rank
→ Claude (grounded prompt) → streamed answer + citations
04 Stack