Skip to content

This project explores a multi-agent RAG pipeline to match patient symptoms with the most relevant specialists, combining semantic search, rule-based logic, and explainable agentic reasoning.

Notifications You must be signed in to change notification settings

kshreya2k/RAG-Powered-Referral-Matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🩺 Specialist Search Agent (SSA) – RAG Pipeline

This project explores a multi-agent, Retrieval-Augmented Generation (RAG)-powered AI system designed to intelligently match patients with medical specialists based on symptoms, location, insurance, and availability.

Developed as part of a technical assignment for the One-Click Referral System, this system parses natural language patient queries and returns a ranked list of specialists with clear, explainable justifications.


πŸš€ Features

  • Natural Language Understanding using zero-shot classification (facebook/bart-large-mnli)
  • Semantic Search over specialist profiles using vector embeddings (HuggingFace models)
  • RAG Pipelines with FAISS, LangChain, and LlamaIndex + Chroma
  • Specialist Ranking based on:
    • Symptom-specialty alignment
    • Insurance compatibility
    • Geographic proximity
    • Next-3-day availability
  • Patient-Friendly Justifications via Falcon-7B (tiiuae/falcon-7b-instruct)
  • Multi-Agent Architecture:
    Specialist Search Agent β†’ Supervisor Agent β†’ Insurance Agent
  • Reflection Loop: Auto re-query on low-confidence results
  • API-ready Placeholder: Simulated logic for real-time availability updates

πŸ“‚ Project Structure

notebooks/
β”œβ”€β”€ Multiagent_RAG_pipeline_final.ipynb  # End-to-end pipeline
data/
β”œβ”€β”€ Mock_Specialist_Dataset.csv          # Metadata for doctors
doc/
β”œβ”€β”€ Shreya Banik-Interview with Sri.pdf         # Task document

About

This project explores a multi-agent RAG pipeline to match patient symptoms with the most relevant specialists, combining semantic search, rule-based logic, and explainable agentic reasoning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published