Medical Procedures RAG System

Overview

A Retrieval-Augmented Generation pipeline that interprets clinical questions and returns evidence-based procedure suggestions backed by citations from trusted medical sources. Built as decision support for healthcare professionals — not a replacement for clinical judgment. Outcome: A clinical decision-support tool that returns ranked procedure suggestions with citations and contraindication alerts. Intended to support, not replace, healthcare professional verification.

Architecture & Pipeline

flowchart LR
    n0["
Clinical Question
Healthcare professional
"] n1["
Intent Classifier
Python · LangChain
"] n2["
Hybrid Vector Search
Clinical guidelines · BioBERT embeddings
"] n3["
Context Builder
RAG pipeline
"] n4["
LLM
Llama / Mistral
"] n5["
Safety Filters
Contraindication alerts
"] n6["
Cited Response
FastAPI
"] n0 --> n1 n1 --> n2 n2 --> n3 n3 --> n4 n4 --> n5 n5 --> n6 classDef step0 fill:#f1f5f9,stroke:#64748b,color:#1e293b,stroke-width:2px,rx:10,ry:10; classDef step1 fill:#ecfeff,stroke:#06b6d4,color:#1e293b,stroke-width:2px,rx:10,ry:10; classDef step2 fill:#f0fdfa,stroke:#0d9488,color:#1e293b,stroke-width:2px,rx:10,ry:10; classDef step3 fill:#ecfdf5,stroke:#10b981,color:#1e293b,stroke-width:2px,rx:10,ry:10; classDef step4 fill:#fffbeb,stroke:#f59e0b,color:#1e293b,stroke-width:2px,rx:10,ry:10; class n0 step0; class n1 step1; class n2 step1; class n3 step2; class n4 step3; class n5 step3; class n6 step4;

End-to-end flow derived from this project's scope and tech stack. Tap View Fullscreen for a larger view, or scroll horizontally on small screens.

Key Features

  • Medical query processor with intent classification
  • Vector database of clinical guidelines and research
  • Hybrid search RAG pipeline
  • Secure API with safety filters and contraindication alerts
  • Optional demo interface
  • Tech Stack:** Python, LangChain, Llama / Mistral, BioBERT, FastAPI, Docker